V-Gears 0
Free Final Fantasy VII engine.
ConfigVarHandler Class Reference

Configuration variable hanlder. More...

#include <ConfigVarHandler.h>

Inheritance diagram for ConfigVarHandler:
Collaboration diagram for ConfigVarHandler:

Public Member Functions

 ConfigVarHandler ()
 Constructor. More...
 
ConfigVarFind (const Ogre::String &name) const
 Finds a variable by name. More...
 
unsigned int GetConfigVarNumber () const
 Counts the configuration variables. More...
 
ConfigVarGetConfigVar (const unsigned int i) const
 Retrieves a configuration variable by index. More...
 

Private Attributes

std::vector< ConfigVar * > config_vars_
 List of configuration variables. More...
 

Detailed Description

Configuration variable hanlder.

Constructor & Destructor Documentation

◆ ConfigVarHandler()

ConfigVarHandler::ConfigVarHandler ( )

Constructor.

Member Function Documentation

◆ Find()

ConfigVar * ConfigVarHandler::Find ( const Ogre::String &  name) const

Finds a variable by name.

Parameters
[in]nameName of the variable to retrieve.
Returns
The variable by the specified name, nullptr if there is no one by that name.

◆ GetConfigVar()

ConfigVar * ConfigVarHandler::GetConfigVar ( const unsigned int  i) const

Retrieves a configuration variable by index.

Parameters
[in]iIndex of the configuration variable.
Returns
Variable at the specified index.

◆ GetConfigVarNumber()

unsigned int ConfigVarHandler::GetConfigVarNumber ( ) const

Counts the configuration variables.

Returns
The number of defined configuration variables.

Member Data Documentation

◆ config_vars_

std::vector<ConfigVar*> ConfigVarHandler::config_vars_
private

List of configuration variables.


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