Référence de la classe Properties

Parseur des parametres mis dans le fichier de donnees. Plus de détails...

#include <Properties.h>

Graphe de collaboration de Properties:

Collaboration graph
[légende]
Liste de tous les membres
typedef std::map< std::string,
std::string >::iterator 
Iterator
typedef std::map< std::string,
std::string >::const_iterator 
constIterator
Iterator begin ()
Iterator end ()
constIterator begin () const
constIterator end () const

Fonctions membres publiques

 Properties ()
 Default Constructor.
virtual ~Properties ()
 Destructor.
virtual void load (const std::string &filename)
 Open and read the file with name 'file'.
virtual void store (const std::string &filename, const std::string &header="") const
 Close the file.
virtual void print (std::ostream &) const
 Print the set of parameters for the simulation.
std::string & operator[] (const std::string &key)
 Return the value with 'key' or a null string if doesn't exist.
const std::string & operator[] (const std::string &key) const
 Return the value with 'key' or a null string if doesn't exist.

Attributs protégés

std::map< std::string, std::string > _map

Description détaillée

Parseur des parametres mis dans le fichier de donnees.

Définition à la ligne 21 du fichier Properties.h.


Documentation des définition de type membres

typedef std::map<std::string,std::string>::iterator Properties::Iterator

Définition à la ligne 50 du fichier Properties.h.

typedef std::map<std::string,std::string>::const_iterator Properties::constIterator

Définition à la ligne 51 du fichier Properties.h.


Documentation des contructeurs et destructeur

Properties::Properties (  ) 

Default Constructor.

Définition à la ligne 49 du fichier Properties.cpp.

Properties::~Properties (  )  [virtual]

Destructor.

Définition à la ligne 56 du fichier Properties.cpp.


Documentation des fonctions membres

void Properties::load ( const std::string &  filename  )  [virtual]

Open and read the file with name 'file'.

Définition à la ligne 63 du fichier Properties.cpp.

Références lower(), et skip_line().

Référencé par Scene::Param(), et ObjetSimule::Param_mesh().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void Properties::store ( const std::string &  filename,
const std::string &  header = "" 
) const [virtual]

Close the file.

Définition à la ligne 100 du fichier Properties.cpp.

Références print().

Voici le graphe d'appel pour cette fonction :

void Properties::print ( std::ostream &   )  const [virtual]

Print the set of parameters for the simulation.

Définition à la ligne 114 du fichier Properties.cpp.

Références _map, et end().

Référencé par store().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

std::string & Properties::operator[] ( const std::string &  key  ) 

Return the value with 'key' or a null string if doesn't exist.

Définition à la ligne 129 du fichier Properties.cpp.

Références _map.

const std::string & Properties::operator[] ( const std::string &  key  )  const

Return the value with 'key' or a null string if doesn't exist.

Définition à la ligne 134 du fichier Properties.cpp.

Références _map.

Iterator Properties::begin (  )  [inline]

Définition à la ligne 53 du fichier Properties.h.

Références _map.

Iterator Properties::end (  )  [inline]

Définition à la ligne 55 du fichier Properties.h.

Références _map.

Référencé par print().

Voici le graphe d'appel pour cette fonction :

constIterator Properties::begin (  )  const [inline]

Définition à la ligne 57 du fichier Properties.h.

Références _map.

constIterator Properties::end (  )  const [inline]

Définition à la ligne 59 du fichier Properties.h.

Références _map.


Documentation des données membres

std::map<std::string,std::string> Properties::_map [protected]

Définition à la ligne 63 du fichier Properties.h.

Référencé par begin(), end(), operator[](), et print().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Thu Jan 24 19:12:10 2008 pour Animation 3D par  doxygen 1.5.1