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

Public Member Functions

 LM_COMPONENT_IMPL_DEF ("stub")
 
virtual bool Load (const std::string &path)
 
virtual bool Load (const std::string &path, const std::string &basePath)
 
virtual const ConfigNode Root () const
 
virtual std::string BasePath () const
 
virtual bool LoadFromString (const std::string &data, const std::string &basePath)
 
ConfigNode LoadFromStringAndGetFirstChild (const std::string &data)
 
- 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)
 
Inheritance diagram for StubConfig:
Config Component SIMDAlignedType StubConfig_PathUtilsTest

Member Function Documentation

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

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

Returns
Base path.

Implements Config.

Reimplemented in StubConfig_PathUtilsTest.

virtual bool StubConfig::Load ( const std::string &  path)
inlinevirtual

Load the configuration file.

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

Implements Config.

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

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.

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

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.

virtual const ConfigNode StubConfig::Root ( ) const
inlinevirtual

Get the root node.

Returns
Root node.

Implements Config.


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