Data Structures | |
| struct | orxFILE_INFO |
Defines | |
| #define | orxFILE_KU32_FLAG_INFO_DIR 0x00000008 |
| #define | orxFILE_KU32_FLAG_INFO_HIDDEN 0x00000004 |
| #define | orxFILE_KU32_FLAG_INFO_NORMAL 0x00000001 |
| #define | orxFILE_KU32_FLAG_INFO_RDONLY 0x00000002 |
| #define | orxFILE_KU32_FLAG_OPEN_APPEND 0x00000004 |
| #define | orxFILE_KU32_FLAG_OPEN_BINARY 0x00000008 |
| #define | orxFILE_KU32_FLAG_OPEN_READ 0x00000001 |
| #define | orxFILE_KU32_FLAG_OPEN_WRITE 0x00000002 |
Typedefs | |
| typedef struct __orxFILE_t | orxFILE |
Functions | |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Close (orxFILE *_pstFile) |
| orxDLLAPI orxBOOL orxFASTCALL | orxFile_Exists (const orxSTRING _zFileName) |
| orxDLLAPI void orxFASTCALL | orxFile_Exit () |
| orxDLLAPI void orxFASTCALL | orxFile_FindClose (orxFILE_INFO *_pstFileInfo) |
| orxDLLAPI orxBOOL orxFASTCALL | orxFile_FindFirst (const orxSTRING _zSearchPattern, orxFILE_INFO *_pstFileInfo) |
| orxDLLAPI orxBOOL orxFASTCALL | orxFile_FindNext (orxFILE_INFO *_pstFileInfo) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFile_GetInfo (const orxSTRING _zFileName, orxFILE_INFO *_pstFileInfo) |
| orxDLLAPI orxS32 orxFASTCALL | orxFile_GetSize (const orxFILE *_pstFile) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Init () |
| orxDLLAPI orxFILE *orxFASTCALL | orxFile_Open (const orxSTRING _zFileName, orxU32 _u32OpenFlags) |
| orxDLLAPI orxS32 orxCDECL | orxFile_Print (orxFILE *_pstFile, orxSTRING _zString,...) |
| orxDLLAPI orxU32 orxFASTCALL | orxFile_Read (void *_pReadData, orxU32 _u32ElemSize, orxU32 _u32NbElem, orxFILE *_pstFile) |
| orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Seek (orxFILE *_pstFile, orxS32 _s32Position) |
| orxDLLAPI void orxFASTCALL | orxFile_Setup () |
| orxDLLAPI orxS32 orxFASTCALL | orxFile_Tell (const orxFILE *_pstFile) |
| orxDLLAPI orxU32 orxFASTCALL | orxFile_Write (void *_pDataToWrite, orxU32 _u32ElemSize, orxU32 _u32NbElem, orxFILE *_pstFile) |
File / file system module Module that handles file / file system access
| #define orxFILE_KU32_FLAG_INFO_HIDDEN 0x00000004 |
| #define orxFILE_KU32_FLAG_INFO_NORMAL 0x00000001 |
| #define orxFILE_KU32_FLAG_INFO_RDONLY 0x00000002 |
| #define orxFILE_KU32_FLAG_OPEN_APPEND 0x00000004 |
| #define orxFILE_KU32_FLAG_OPEN_BINARY 0x00000008 |
| #define orxFILE_KU32_FLAG_OPEN_READ 0x00000001 |
| #define orxFILE_KU32_FLAG_OPEN_WRITE 0x00000002 |
Closes an oppened file
| [in] | _pstFile | File's pointer to close |
| orxDLLAPI orxBOOL orxFASTCALL orxFile_Exists | ( | const orxSTRING | _zFileName ) |
Returns orxTRUE if a file exists, else orxFALSE.
| [in] | _zFileName | Full File's name to test |
| orxDLLAPI void orxFASTCALL orxFile_Exit | ( | ) |
Exits from the File Module
| orxDLLAPI void orxFASTCALL orxFile_FindClose | ( | orxFILE_INFO * | _pstFileInfo ) |
Closes a search (free the memory allocated for this search).
| [in] | _pstFileInfo | Informations returned during search |
| orxDLLAPI orxBOOL orxFASTCALL orxFile_FindFirst | ( | const orxSTRING | _zSearchPattern, |
| orxFILE_INFO * | _pstFileInfo | ||
| ) |
Starts a new search. Find the first file that will match to the given pattern (e.g : /bin/toto* or c:\*.*)
| [in] | _zSearchPattern | Pattern to find |
| [out] | _pstFileInfo | Informations about the first file found |
| orxDLLAPI orxBOOL orxFASTCALL orxFile_FindNext | ( | orxFILE_INFO * | _pstFileInfo ) |
Continues a search. Find the next occurence of a pattern. The search has to be started with orxFile_FindFirst
| [in,out] | _pstFileInfo | (IN/OUT) Informations about the found file |
| orxDLLAPI orxSTATUS orxFASTCALL orxFile_GetInfo | ( | const orxSTRING | _zFileName, |
| orxFILE_INFO * | _pstFileInfo | ||
| ) |
Retrieves information about a file
| [in] | _zFileName | Files used to get information |
| [out] | _pstFileInfo | Returned file's information |
| orxDLLAPI orxS32 orxFASTCALL orxFile_GetSize | ( | const orxFILE * | _pstFile ) |
Retrieves a file's size
| [in] | _pstFile | Concerned file |
| orxDLLAPI orxSTATUS orxFASTCALL orxFile_Init | ( | ) |
Inits the File Module
| orxDLLAPI orxFILE* orxFASTCALL orxFile_Open | ( | const orxSTRING | _zFileName, |
| orxU32 | _u32OpenFlags | ||
| ) |
Opens a file for later read or write operation
| [in] | _zFileName | Full file's path to open |
| [in] | _u32OpenFlags | List of used flags when opened |
| orxDLLAPI orxS32 orxCDECL orxFile_Print | ( | orxFILE * | _pstFile, |
| orxSTRING | _zString, | ||
| ... | |||
| ) |
Prints a formatted string to a file
| [in] | _pstFile | Pointer on the file descriptor |
| [in] | _zString | Formatted string |
| orxDLLAPI orxU32 orxFASTCALL orxFile_Read | ( | void * | _pReadData, |
| orxU32 | _u32ElemSize, | ||
| orxU32 | _u32NbElem, | ||
| orxFILE * | _pstFile | ||
| ) |
Reads data from a file
| [out] | _pReadData | Pointer where will be stored datas |
| [in] | _u32ElemSize | Size of 1 element |
| [in] | _u32NbElem | Number of elements |
| [in] | _pstFile | Pointer on the file descriptor |
Seeks to a position in the given file
| [in] | _pstFile | Concerned file |
| [in] | _s32Position | Position (from start) where to set the indicator |
| orxDLLAPI void orxFASTCALL orxFile_Setup | ( | ) |
File module setup
| orxDLLAPI orxS32 orxFASTCALL orxFile_Tell | ( | const orxFILE * | _pstFile ) |
Tells the current position of the indicator in a file
| [in] | _pstFile | Concerned file |
| orxDLLAPI orxU32 orxFASTCALL orxFile_Write | ( | void * | _pDataToWrite, |
| orxU32 | _u32ElemSize, | ||
| orxU32 | _u32NbElem, | ||
| orxFILE * | _pstFile | ||
| ) |
writes data to a file
| [in] | _pDataToWrite | Pointer where will be stored datas |
| [in] | _u32ElemSize | Size of 1 element |
| [in] | _u32NbElem | Number of elements |
| [in] | _pstFile | Pointer on the file descriptor |
1.5.6