moved files around
This commit is contained in:
40
Extras/FCollada/FUtils/FUFile.h
Normal file
40
Extras/FCollada/FUtils/FUFile.h
Normal 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_
|
||||
Reference in New Issue
Block a user