#include <mlIOHandler.h>
Public Types | |
| enum | IO_MODE { IO_MODE_XML, IO_MODE_AUTO, IO_MODE_COUNT } |
| Register your parser type here. More... | |
Static Public Member Functions | |
| static TreeNode * | createRootTreeNode (IO_MODE ioMode, TreeNode::ConstructionMode conMode) |
| Creates a root node for reading or writing. | |
| static const char * | getDefaultFileExtension (IO_MODE ioMode) |
| Get the default file extension Register your own TreeNode type here. | |
| static IO_MODE | getModeFromExtension (const char *fileName) |
| Returns the mode that fits to file's extension (using getDefaultFileExtension);. | |
| static IO_MODE | getModeFromContents (const char *fileName) |
| Returns the mode that fits to file's contents (only a small part of the file's contents is evaluated). | |
Static Public Attributes | |
| static const char * | IO_MODE_TOKENS [] |
| Tokens for IO modes: Add additional IO modes in the .cpp file. | |
When a new mode is added, it should be registered here. class IOHandler
Definition at line 28 of file mlIOHandler.h.
Register your parser type here.
Please insert a new type right before IO_MODE_AUTO to minimize confusion with old field values.
| IO_MODE_XML | import/export in XML format |
| IO_MODE_AUTO | auto detect format |
| IO_MODE_COUNT | counter only |
Definition at line 34 of file mlIOHandler.h.
| static TreeNode* ml::IOHandler::createRootTreeNode | ( | IO_MODE | ioMode, | |
| TreeNode::ConstructionMode | conMode | |||
| ) | [inline, static] |
Creates a root node for reading or writing.
Returns NULL if the creation failed. Register your own TreeNode type here.
Definition at line 52 of file mlIOHandler.h.
| static const char* ml::IOHandler::getDefaultFileExtension | ( | IO_MODE | ioMode | ) | [inline, static] |
Get the default file extension Register your own TreeNode type here.
Definition at line 71 of file mlIOHandler.h.
| static IO_MODE ml::IOHandler::getModeFromContents | ( | const char * | fileName | ) | [static] |
Returns the mode that fits to file's contents (only a small part of the file's contents is evaluated).
| static IO_MODE ml::IOHandler::getModeFromExtension | ( | const char * | fileName | ) | [static] |
Returns the mode that fits to file's extension (using getDefaultFileExtension);.
const char* ml::IOHandler::IO_MODE_TOKENS[] [static] |
Tokens for IO modes: Add additional IO modes in the .cpp file.
Definition at line 48 of file mlIOHandler.h.
1.5.8