moved files around

This commit is contained in:
ejcoumans
2006-05-25 19:18:29 +00:00
commit e061ec1ebf
1024 changed files with 349445 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
/*
Copyright (C) 2005-2006 Feeling Software Inc.
MIT License: http://www.opensource.org/licenses/mit-license.php
*/
#ifndef _FU_FILE_H_
#define _FU_FILE_H_
class FCOLLADA_EXPORT FUFile
{
public:
enum Mode
{
READ,
WRITE
};
private:
FILE* filePtr;
public:
FUFile(const char* filename, Mode mode);
FUFile();
~FUFile();
bool IsOpen() { return filePtr != NULL; }
// Retrieve the file length
uint32 GetLength();
// Writes/Reads in a piece of the file from/into the given buffer
bool Read(void* buffer, size_t length);
bool Write(const void* buffer, size_t length);
// Flush/close the file stream
void Flush();
void Close();
};
#endif // _FU_FILE_H_