![]() |
Norbert's Game Engine v200
|
Classes | |
| struct | ZSTAT |
Typedefs | |
| typedef zip | Archive |
Functions | |
| strg | GetString (strg file, strg token, const bool binary=false) |
| Return the tokens value as a std::string. | |
| real6 | GetNumber (strg file, strg token, const bool binary=false) |
| Return the tokens value as a real6. | |
| int | GetInt (strg file, strg token, const bool binary=false) |
| Return the tokens value as an int. | |
| bool | GetBool (strg file, strg token, const bool binary=false) |
| Return the tokens value as a bool. | |
| const uint | SetValue (strg file, strg value, const bool binary=false) |
| Set a tokens value. | |
| const uint | ChangeValue (strg file, strg token, strg value, const bool binary=false) |
| Change a tokens value. | |
| void | CreateDirectoryExt (const char *dir) |
| Creates a directory on drive. | |
| void | DeleteDirectory (const char *dir) |
| Removes a directory from drive. | |
| void | WriteFile (const char *dir, strg content) |
| Write a file to drive. | |
| void | WriteBinary (const char *dir, strg content) |
| Write binary text to drive. | |
| strg | ReadBinary (const char *dir) |
| Read binary text from drive. | |
| void | ConvertToBinary (strg &text) |
| Convert text to binary string. | |
| void | ConvertToText (strg &binary) |
| Convert binary string to text. | |
| strg | GetContext (strg filePath, const bool binary=false) |
| Returns a files content. | |
| void | RemoveFile (const char *filePath) |
| Removes a file from the drive. | |
| bool | FileExists (const char *path) |
| std::vector< strg > | GetFilesInDir (strg dir, const int nt) |
| strg | WriteBinaryToString (strg &content) |
| Write binary text to memory. | |
| strg | ReadBinaryToString (strg &content) |
| Read binary text from memory. | |
| strg | GetStringG (strg file, strg token, strg group, const bool binary=false) |
| For reading in a group. | |
| real6 | GetNumberG (strg file, strg token, strg group, const bool binary=false) |
| For reading in a group. | |
| int | GetIntG (strg file, strg token, strg group, const bool binary=false) |
| For reading in a group. | |
| bool | GetBoolG (strg file, strg token, strg group, const bool binary=false) |
| For reading in a group. | |
| strg | GetStringGI (strg file, strg token, strg group, const bool binary=false) |
| From memory. | |
| real6 | GetNumberGI (strg file, strg token, strg group, const bool binary=false) |
| From memory. | |
| int | GetIntGI (strg file, strg token, strg group, const bool binary=false) |
| From memory. | |
| bool | GetBoolGI (strg file, strg token, strg group, const bool binary=false) |
| From memory. | |
| strg | GetStringSG (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| For reading in a sub-group. | |
| real6 | GetNumberSG (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| For reading in a sub-group. | |
| int | GetIntSG (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| For reading in a sub-group. | |
| bool | GetBoolSG (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| For reading in a sub-group. | |
| strg | GetStringSGI (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| From memory. | |
| real6 | GetNumberSGI (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| From memory. | |
| int | GetIntSGI (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| From memory. | |
| bool | GetBoolSGI (strg file, strg token, strg group, strg groupS, const bool binary=false) |
| From memory. | |
| uint | GroupItemAmount (strg file, strg group, const bool binary=false) |
| uint | GroupItemAmountI (strg file, strg group, const bool binary=false) |
| From memory. | |
| strg | GroupItemName (strg file, strg group, uint place, const bool binary=false) |
| strg | GroupItemNameI (strg file, strg group, uint place, const bool binary=false) |
| From memory. | |
| strg | GetStringI (strg text, strg token, const bool binary=false) |
| Return the tokens value from memory as a std::string. | |
| real6 | GetNumberI (strg text, strg token, const bool binary=false) |
| Return the tokens value from memory as a real6. | |
| int | GetIntI (strg text, strg token, const bool binary=false) |
| Return the tokens value from memory as an int. | |
| bool | GetBoolI (strg text, strg token, const bool binary=false) |
| Return the tokens value from memory as a bool. | |
| strg | ChangeValueI (strg text, strg token, strg value, const bool binary=false) |
| Change a tokens value in memory. | |
| Archive * | OpenArchive (const char *directory) |
| Open ZIP archive. | |
| Archive * | CreateArchive (const char *directory) |
| Creates ZIP archive. | |
| ZSTAT | GetArchiveFileContents (Archive *z, const char *name) |
| Returns a files content from an archive. WARNING: RELEASE contents AFTER USE!! MEMORY LEAK!! | |
| void | CopyArchiveFileContents (Archive *z, const char *name, const char *newPath, const bool isBinary=false) |
| Copies archive file contents. | |
| strg | CopyArchiveFileContents (Archive *z, const char *name) |
| Copies archive file contents. | |
| Archive * | CloseArchive (Archive *z) |
| Closes archive. Changes to archive only take effect once this is called. Memory of written files must be accessable to this process! | |
| void | AddFileToArchive (Archive *z, const char *filename, const char *content) |
| Adds file to archive. | |
| void | AddBinaryToArchive (Archive *z, const char *filename, const char *content, uint64 size) |
| Adds binary file to archive. | |
| void | CopyFileToArchive (Archive *z, const char *filename, const char *filepath) |
| Copies existing file to archive. | |
| void | RemoveFileFromArchive (Archive *z, const char *filename) |
| Removes a file from the archive. | |
I/O functions
| void EDR::AddBinaryToArchive | ( | EDR::Archive * | z, |
| const char * | filename, | ||
| const char * | content, | ||
| uint64 | size ) |
Adds binary file to archive.
Definition at line 501 of file EDR.cpp.
| void EDR::AddFileToArchive | ( | EDR::Archive * | z, |
| const char * | filename, | ||
| const char * | content ) |
| const uint EDR::ChangeValue | ( | strg | file, |
| strg | token, | ||
| strg | value, | ||
| const bool | binary = false ) |
Change a tokens value.
Definition at line 142 of file EDR.cpp.
| strg EDR::ChangeValueI | ( | strg | text, |
| strg | token, | ||
| strg | value, | ||
| const bool | binary = false ) |
Change a tokens value in memory.
Definition at line 251 of file EDR.cpp.
| zip * EDR::CloseArchive | ( | EDR::Archive * | z | ) |
| void EDR::ConvertToBinary | ( | strg & | text | ) |
Convert text to binary string.
Definition at line 260 of file EDR.cpp.
| void EDR::ConvertToText | ( | strg & | binary | ) |
Convert binary string to text.
Definition at line 329 of file EDR.cpp.
| strg EDR::CopyArchiveFileContents | ( | EDR::Archive * | z, |
| const char * | name ) |
Copies archive file contents.
Definition at line 580 of file EDR.cpp.
| void EDR::CopyArchiveFileContents | ( | EDR::Archive * | z, |
| const char * | name, | ||
| const char * | newPath, | ||
| const bool | isBinary = false ) |
Copies archive file contents.
Definition at line 557 of file EDR.cpp.
| void EDR::CopyFileToArchive | ( | EDR::Archive * | z, |
| const char * | filename, | ||
| const char * | filepath ) |
| EDR::Archive * EDR::CreateArchive | ( | const char * | directory | ) |
| void EDR::CreateDirectoryExt | ( | const char * | dir | ) |
Creates a directory on drive.
Definition at line 378 of file EDR.cpp.
| void EDR::DeleteDirectory | ( | const char * | dir | ) |
| bool EDR::FileExists | ( | const char * | path | ) |
| EDR::ZSTAT EDR::GetArchiveFileContents | ( | EDR::Archive * | z, |
| const char * | name ) |
Returns a files content from an archive. WARNING: RELEASE contents AFTER USE!! MEMORY LEAK!!
Definition at line 537 of file EDR.cpp.
| bool EDR::GetBool | ( | strg | file, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value as a bool.
Definition at line 91 of file EDR.cpp.
| bool EDR::GetBoolG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
For reading in a group.
Definition at line 749 of file EDR.cpp.
| bool EDR::GetBoolGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1189 of file EDR.cpp.
| bool EDR::GetBoolI | ( | strg | text, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value from memory as a bool.
Definition at line 229 of file EDR.cpp.
| bool EDR::GetBoolSG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
For reading in a sub-group.
Definition at line 922 of file EDR.cpp.
| bool EDR::GetBoolSGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1343 of file EDR.cpp.
| strg EDR::GetContext | ( | strg | filePath, |
| const bool | binary = false ) |
| std::vector< strg > EDR::GetFilesInDir | ( | strg | dir, |
| const int | nt ) |
nt: 0 = full; 1 = name; 2 = extension;
Definition at line 625 of file EDR.cpp.
| int EDR::GetInt | ( | strg | file, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value as an int.
Definition at line 67 of file EDR.cpp.
| int EDR::GetIntG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
For reading in a group.
Definition at line 716 of file EDR.cpp.
| int EDR::GetIntGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1161 of file EDR.cpp.
| int EDR::GetIntI | ( | strg | text, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value from memory as an int.
Definition at line 214 of file EDR.cpp.
| int EDR::GetIntSG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
For reading in a sub-group.
Definition at line 880 of file EDR.cpp.
| int EDR::GetIntSGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1305 of file EDR.cpp.
| real6 EDR::GetNumber | ( | strg | file, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value as a real6.
Definition at line 44 of file EDR.cpp.
| real6 EDR::GetNumberG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
For reading in a group.
Definition at line 684 of file EDR.cpp.
| real6 EDR::GetNumberGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1133 of file EDR.cpp.
| real6 EDR::GetNumberI | ( | strg | text, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value from memory as a real6.
Definition at line 196 of file EDR.cpp.
| real6 EDR::GetNumberSG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
For reading in a sub-group.
Definition at line 838 of file EDR.cpp.
| real6 EDR::GetNumberSGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1267 of file EDR.cpp.
| strg EDR::GetString | ( | strg | file, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value as a std::string.
Definition at line 13 of file EDR.cpp.
| strg EDR::GetStringG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
For reading in a group.
Definition at line 649 of file EDR.cpp.
| strg EDR::GetStringGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1103 of file EDR.cpp.
| strg EDR::GetStringI | ( | strg | text, |
| strg | token, | ||
| const bool | binary = false ) |
Return the tokens value from memory as a std::string.
Definition at line 168 of file EDR.cpp.
| strg EDR::GetStringSG | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
For reading in a sub-group.
Definition at line 793 of file EDR.cpp.
| strg EDR::GetStringSGI | ( | strg | file, |
| strg | token, | ||
| strg | group, | ||
| strg | groupS, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1227 of file EDR.cpp.
| uint EDR::GroupItemAmount | ( | strg | file, |
| strg | group, | ||
| const bool | binary = false ) |
Definition at line 975 of file EDR.cpp.
| uint EDR::GroupItemAmountI | ( | strg | file, |
| strg | group, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1005 of file EDR.cpp.
| strg EDR::GroupItemName | ( | strg | file, |
| strg | group, | ||
| uint | place, | ||
| const bool | binary = false ) |
Definition at line 1031 of file EDR.cpp.
| strg EDR::GroupItemNameI | ( | strg | file, |
| strg | group, | ||
| uint | place, | ||
| const bool | binary = false ) |
From memory.
Definition at line 1069 of file EDR.cpp.
| EDR::Archive * EDR::OpenArchive | ( | const char * | directory | ) |
| strg EDR::ReadBinary | ( | const char * | dir | ) |
Read binary text from drive.
Definition at line 427 of file EDR.cpp.
| strg EDR::ReadBinaryToString | ( | strg & | content | ) |
Read binary text from memory.
Definition at line 450 of file EDR.cpp.
| void EDR::RemoveFile | ( | const char * | filePath | ) |
| void EDR::RemoveFileFromArchive | ( | EDR::Archive * | z, |
| const char * | filename ) |
Removes a file from the archive.
Definition at line 519 of file EDR.cpp.
| const uint EDR::SetValue | ( | strg | file, |
| strg | value, | ||
| const bool | binary = false ) |
Set a tokens value.
Definition at line 125 of file EDR.cpp.
| void EDR::WriteBinary | ( | const char * | dir, |
| strg | content ) |
| strg EDR::WriteBinaryToString | ( | strg & | content | ) |
Write binary text to memory.
Definition at line 440 of file EDR.cpp.