Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
Public Member Functions | |
LM_COMPONENT_IMPL_DEF ("default") | |
virtual bool | Load (const std::string &path) |
virtual bool | Load (const std::string &path, const std::string &basePath) |
virtual bool | LoadFromString (const std::string &data, const std::string &basePath) |
virtual const ConfigNode | Root () const |
virtual std::string | BasePath () const |
Public Member Functions inherited from Config | |
LM_COMPONENT_INTERFACE_DEF ("config") | |
Public Member Functions inherited from Component | |
virtual std::string | ComponentInterfaceTypeName () const =0 |
virtual std::string | ComponentImplTypeName () const =0 |
Public Member Functions inherited from SIMDAlignedType | |
void * | operator new (std::size_t size) throw (std::bad_alloc) |
void | operator delete (void *p) |
Public Attributes | |
bool | loaded |
std::string | path |
std::string | basePath |
pugi::xml_document | doc |
pugi::xml_node | assetsNode |
pugi::xml_node | sceneNode |
pugi::xml_node | rendererNode |
pugi::xml_node | rootNode |
Default config. Default implementation of the config class.
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
Load the configuration from a string. Use the function to load the configuration from a string.
data | Configuration string. |
basePath | Base path for asset loading. |
true | Succeeded to load the configuration. |
false | Failed to load the configuration. |
Implements Config.
|
virtual |