ConfigSection Class Reference
[Utilities]

#include <ConfigSection.h>

Collaboration diagram for ConfigSection:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ~ConfigSection ()
 destructor
void unsetItem (std::string name)
ConfigItemgetItem (std::string name)
template<typename T >
get (std::string name)
Vector3d getVector3d (std::string name)
Matrix< double > getMatrixDouble (std::string name)
void save (std::ofstream &file)
void load (std::string &content)
template<typename T >
void setItem (std::string name, T value)
void setVector3d (std::string name, Vector3d &value)
void setMatrixDouble (std::string name, Matrix< double > &matrix)
void setItem (std::string name, std::string value)


Detailed Description

Manager for config items

Definition at line 13 of file ConfigSection.h.


Constructor & Destructor Documentation

ConfigSection::~ConfigSection (  ) 

destructor

Definition at line 4 of file ConfigSection.cpp.


Member Function Documentation

template<typename T >
T ConfigSection::get ( std::string  name  )  [inline]

Parameters:
name name of the variable
Returns:
Variable

Definition at line 36 of file ConfigSection.h.

ConfigItem & ConfigSection::getItem ( std::string  name  ) 

Parameters:
name name of the variable
Returns:
config item of name name

Definition at line 14 of file ConfigSection.cpp.

Matrix< double > ConfigSection::getMatrixDouble ( std::string  name  ) 

explicit get for Matrix<double>

Parameters:
name name of the variable
Returns:
Variable

Definition at line 87 of file ConfigSection.cpp.

Vector3d ConfigSection::getVector3d ( std::string  name  ) 

explicit get for Vector3d

Parameters:
name name of the variable
Returns:
Variable

Definition at line 61 of file ConfigSection.cpp.

void ConfigSection::load ( std::string &  content  ) 

loads section from file

Parameters:
content buffer with variable information

Definition at line 43 of file ConfigSection.cpp.

void ConfigSection::save ( std::ofstream &  file  ) 

saves section in file

Parameters:
file the file to save in

Definition at line 36 of file ConfigSection.cpp.

void ConfigSection::setItem ( std::string  name,
std::string  value 
)

shortcut for string values

Parameters:
name the name of the variable
value the value ot the variable

Definition at line 26 of file ConfigSection.cpp.

template<typename T >
void ConfigSection::setItem ( std::string  name,
value 
) [inline]

insert or modify item

Parameters:
name the name of the variable
value the value of the variable

Definition at line 69 of file ConfigSection.h.

void ConfigSection::setMatrixDouble ( std::string  name,
Matrix< double > &  matrix 
)

explicit set for Matrix<double>

Parameters:
name the name of the variable
matrix the matrix to set

Definition at line 122 of file ConfigSection.cpp.

void ConfigSection::setVector3d ( std::string  name,
Vector3d value 
)

explicit set for Vector3d

Parameters:
name the name of the variable
value the vector to set

Definition at line 78 of file ConfigSection.cpp.

void ConfigSection::unsetItem ( std::string  name  ) 

deletes a variable from this section if exists

Parameters:
name name of the variable

Definition at line 9 of file ConfigSection.cpp.


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

Generated on Sun Nov 30 23:45:40 2008 for Modular Motion Processor by  doxygen 1.5.7.1