orx
1.14
Portable Game Engine
|
Data Structures | |
struct | orxFILE_INFO |
Macros | |
#define | orxFILE_KU32_FLAG_INFO_DIRECTORY 0x00000008 |
#define | orxFILE_KU32_FLAG_INFO_HIDDEN 0x00000004 |
#define | orxFILE_KU32_FLAG_INFO_NORMAL 0x00000001 |
#define | orxFILE_KU32_FLAG_INFO_READONLY 0x00000002 |
#define | orxFILE_KU32_FLAG_OPEN_APPEND 0x40000000 |
#define | orxFILE_KU32_FLAG_OPEN_BINARY 0x80000000 |
#define | orxFILE_KU32_FLAG_OPEN_READ 0x10000000 |
#define | orxFILE_KU32_FLAG_OPEN_WRITE 0x20000000 |
Typedefs | |
typedef struct __orxFILE_t | orxFILE |
Functions | |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Close (orxFILE *_pstFile) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Delete (const orxSTRING _zFileName) |
orxDLLAPI orxBOOL orxFASTCALL | orxFile_Exists (const orxSTRING _zFileName) |
orxDLLAPI void orxFASTCALL | orxFile_Exit () |
orxDLLAPI void orxFASTCALL | orxFile_FindClose (orxFILE_INFO *_pstFileInfo) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_FindFirst (const orxSTRING _zSearchPattern, orxFILE_INFO *_pstFileInfo) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_FindNext (orxFILE_INFO *_pstFileInfo) |
orxDLLAPI const orxSTRING orxFASTCALL | orxFile_GetApplicationSaveDirectory (const orxSTRING _zSubPath) |
orxDLLAPI const orxSTRING orxFASTCALL | orxFile_GetHomeDirectory (const orxSTRING _zSubPath) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_GetInfo (const orxSTRING _zFileName, orxFILE_INFO *_pstFileInfo) |
orxDLLAPI orxS64 orxFASTCALL | orxFile_GetSize (const orxFILE *_pstFile) |
orxDLLAPI orxS64 orxFASTCALL | orxFile_GetTime (const orxFILE *_pstFile) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Init () |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_MakeDirectory (const orxSTRING _zName) |
orxDLLAPI orxFILE *orxFASTCALL | orxFile_Open (const orxSTRING _zFileName, orxU32 _u32OpenFlags) |
orxDLLAPI orxS32 orxCDECL | orxFile_Print (orxFILE *_pstFile, const orxSTRING _zString,...) |
orxDLLAPI orxS64 orxFASTCALL | orxFile_Read (void *_pReadData, orxS64 _s64ElemSize, orxS64 _s64NbElem, orxFILE *_pstFile) |
orxDLLAPI orxSTATUS orxFASTCALL | orxFile_Remove (const orxSTRING _zFileName) |
orxDLLAPI orxS64 orxFASTCALL | orxFile_Seek (orxFILE *_pstFile, orxS64 _s64Position, orxSEEK_OFFSET_WHENCE _eWhence) |
orxDLLAPI void orxFASTCALL | orxFile_Setup () |
orxDLLAPI orxS64 orxFASTCALL | orxFile_Tell (const orxFILE *_pstFile) |
orxDLLAPI orxS64 orxFASTCALL | orxFile_Write (const void *_pDataToWrite, orxS64 _s64ElemSize, orxS64 _s64NbElem, orxFILE *_pstFile) |
File / file system module Module that handles file / file system access
#define orxFILE_KU32_FLAG_INFO_DIRECTORY 0x00000008 |
#define orxFILE_KU32_FLAG_INFO_HIDDEN 0x00000004 |
#define orxFILE_KU32_FLAG_INFO_NORMAL 0x00000001 |
#define orxFILE_KU32_FLAG_INFO_READONLY 0x00000002 |
#define orxFILE_KU32_FLAG_OPEN_APPEND 0x40000000 |
#define orxFILE_KU32_FLAG_OPEN_BINARY 0x80000000 |
#define orxFILE_KU32_FLAG_OPEN_READ 0x10000000 |
#define orxFILE_KU32_FLAG_OPEN_WRITE 0x20000000 |
Closes an oppened file
[in] | _pstFile | File's pointer to close |
Deletes a file
[in] | _zFileName | Full file's path to delete |
orxDLLAPI orxBOOL orxFASTCALL orxFile_Exists | ( | const orxSTRING | _zFileName | ) |
Checks if a file/directory exists
[in] | _zFileName | Concerned file/directory |
orxDLLAPI void orxFASTCALL orxFile_FindClose | ( | orxFILE_INFO * | _pstFileInfo | ) |
Closes a search (frees the memory allocated for this search)
[in] | _pstFileInfo | Information returned during search |
orxDLLAPI orxSTATUS orxFASTCALL orxFile_FindFirst | ( | const orxSTRING | _zSearchPattern, |
orxFILE_INFO * | _pstFileInfo | ||
) |
Starts a new file search: finds the first file/directory that will match to the given pattern (ex: /bin/foo*)
[in] | _zSearchPattern | Pattern used for file/directory search |
[out] | _pstFileInfo | Information about the first file found |
orxDLLAPI orxSTATUS orxFASTCALL orxFile_FindNext | ( | orxFILE_INFO * | _pstFileInfo | ) |
Continues a file search: finds the next occurrence of a pattern, the search has to be started with orxFile_FindFirst
[in,out] | _pstFileInfo | Information about the last found file/directory |
orxDLLAPI const orxSTRING orxFASTCALL orxFile_GetApplicationSaveDirectory | ( | const orxSTRING | _zSubPath | ) |
Gets current user's application save directory using linux separators (without trailing separator)
[in] | _zSubPath | Sub-path to append to the application save directory, orxNULL for none |
orxDLLAPI const orxSTRING orxFASTCALL orxFile_GetHomeDirectory | ( | const orxSTRING | _zSubPath | ) |
Gets current user's home directory using linux separators (without trailing separator)
[in] | _zSubPath | Sub-path to append to the home directory, orxNULL for none |
orxDLLAPI orxSTATUS orxFASTCALL orxFile_GetInfo | ( | const orxSTRING | _zFileName, |
orxFILE_INFO * | _pstFileInfo | ||
) |
Retrieves a file/directory information
[in] | _zFileName | Concerned file/directory name |
[out] | _pstFileInfo | Information of the file/directory |
Retrieves a file's size
[in] | _pstFile | Concerned file |
Retrieves a file's time of last modification
[in] | _pstFile | Concerned file |
Makes a directory, works recursively if needed
[in] | _zName | Name of the directory to make |
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 |
Prints a formatted string to a file
[in] | _pstFile | Pointer to the file descriptor |
[in] | _zString | Formatted string |
orxDLLAPI orxS64 orxFASTCALL orxFile_Read | ( | void * | _pReadData, |
orxS64 | _s64ElemSize, | ||
orxS64 | _s64NbElem, | ||
orxFILE * | _pstFile | ||
) |
Reads data from a file
[out] | _pReadData | Buffer that will contain read data |
[in] | _s64ElemSize | Size of 1 element |
[in] | _s64NbElem | Number of elements |
[in] | _pstFile | Pointer to the file descriptor |
Removes a file or an empty directory
[in] | _zFileName | Concerned file / directory |
orxDLLAPI orxS64 orxFASTCALL orxFile_Seek | ( | orxFILE * | _pstFile, |
orxS64 | _s64Position, | ||
orxSEEK_OFFSET_WHENCE | _eWhence | ||
) |
Seeks to a position in the given file
[in] | _pstFile | Concerned file |
[in] | _s64Position | Position (from start) where to set the indicator |
[in] | _eWhence | Starting point for the offset computation (start, current position or end) |
Tells the current position of the indicator in a file
[in] | _pstFile | Concerned file |
orxDLLAPI orxS64 orxFASTCALL orxFile_Write | ( | const void * | _pDataToWrite, |
orxS64 | _s64ElemSize, | ||
orxS64 | _s64NbElem, | ||
orxFILE * | _pstFile | ||
) |
Writes data to a file
[in] | _pDataToWrite | Buffer that contains the data to write |
[in] | _s64ElemSize | Size of 1 element |
[in] | _s64NbElem | Number of elements |
[in] | _pstFile | Pointer to the file descriptor |