Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
ConfigImpl Class Reference

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
 

Detailed Description

Default config. Default implementation of the config class.

Inheritance diagram for ConfigImpl:
Config Component SIMDAlignedType

Member Function Documentation

virtual std::string ConfigImpl::BasePath ( ) const
inlinevirtual

Get base path. Returns the base path of the assets.

Returns
Base path.

Implements Config.

bool ConfigImpl::Load ( const std::string &  path)
virtual

Load the configuration file.

Parameters
pathPath to the configuration file.
Return values
trueSucceeded to load the configuration.
falseFailed to load the configuration.

Implements Config.

bool ConfigImpl::Load ( const std::string &  path,
const std::string &  basePath 
)
virtual

Load the configuration file.

Parameters
pathPath to the configuration file.
pathBase path for asset loading.
Return values
trueSucceeded to load the configuration.
falseFailed to load the configuration.

Implements Config.

bool ConfigImpl::LoadFromString ( const std::string &  data,
const std::string &  basePath 
)
virtual

Load the configuration from a string. Use the function to load the configuration from a string.

Parameters
dataConfiguration string.
basePathBase path for asset loading.
Return values
trueSucceeded to load the configuration.
falseFailed to load the configuration.

Implements Config.

const ConfigNode ConfigImpl::Root ( ) const
virtual

Get the root node.

Returns
Root node.

Implements Config.


The documentation for this class was generated from the following file: