- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UProperties Class Reference

A set of properties which can be saved to or loaded from a stream. More...

#include <uproperties.hpp>

Inheritance diagram for ufo::UProperties:

ufo::UObject ufo::UCollectable List of all members.

Public Types

typedef std::map< std::string,
std::string > 
propertiesMap
typedef std::map< std::string,
UProperties * > 
childMap

Public Member Functions

 UProperties (const std::string &fileNameA)
UObjectclone ()
void setReader (Reader *p)
ReadergetReader ()
void setWriter (Writer *p)
Writer * getWriter ()
void load (const std::string &fileNameA)
void load (std::istream &streamA)
void save (std::ostream &streamA)
void save (const std::string &fileNameA)
std::string get (const std::string &keyA)
void put (const std::string &keyA, const std::string &valueA)
std::vector< std::string > getKeys ()
void clear ()
void putChild (const std::string &keyA, UProperties *propA)
UPropertiesgetChild (const std::string &keyA)
std::vector< std::string > getChildKeys ()

Detailed Description

A set of properties which can be saved to or loaded from a stream.

Author:
Johannes Schmidt


Member Function Documentation

void ufo::UProperties::clear  ) 
 

clears all entries and child properties

std::string ufo::UProperties::get const std::string &  keyA  )  [inline]
 

Returns value specified by keyA.

std::vector<std::string> ufo::UProperties::getChildKeys  ) 
 

Returns all keys for children.

std::vector< std::string > ufo::UProperties::getKeys  )  [inline]
 

Returns all available keys in this properties set.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt