orx 1.16
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 _u32Flags) |
orxDLLAPI orxS32 orxCDECL | orxFile_Print (orxFILE *_pstFile, const orxSTRING _zString,...) |
orxDLLAPI orxS64 orxFASTCALL | orxFile_Read (void *_pBuffer, orxS64 _s64ElemSize, orxS64 _s64NbElem, orxFILE *_pstFile) |
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 *_pBuffer, 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 opened file
[in] | _pstFile | Concerned file |
Deletes a file or an empty directory
[in] | _zFileName | Full file path to delete |
|
extern |
Checks if a file/directory exists
[in] | _zFileName | Concerned file/directory |
|
extern |
Exits from the File Module
|
extern |
Closes a search (frees the memory allocated for this search)
[in] | _pstFileInfo | Information returned during search |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
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 |
|
extern |
Retrieves a file/directory information
[in] | _zFileName | Concerned file/directory name |
[out] | _pstFileInfo | Information of the file/directory |
Retrieves the size of a file
[in] | _pstFile | Concerned file |
Retrieves the last modification time of a file
[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 path to open |
[in] | _u32Flags | Flags used to determine the file access mode |
|
extern |
Prints a formatted string to a file
[in] | _pstFile | Pointer to the file descriptor |
[in] | _zString | Formatted string |
|
extern |
Reads data from a file
[out] | _pBuffer | Buffer that will contain read data |
[in] | _s64ElemSize | Size of 1 element |
[in] | _s64NbElem | Number of elements |
[in] | _pstFile | Pointer to the file descriptor |
|
extern |
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) |
|
extern |
File module setup
Tells the current position of the indicator in a file
[in] | _pstFile | Concerned file |
|
extern |
Writes data to a file
[in] | _pBuffer | 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 |