Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PropRegistry::PropData Class Reference

#include <prop_registry.hh>

List of all members.

Public Types

enum  {
  k_string, k_bool, k_int, k_float,
  k_undef
}

Public Methods

 PropData ()
 PropData (const PropData &o)
PropData& operator= (const PropData &o)
 PropData (const char *s_)
 PropData (const string &s_)
 PropData (const vector< string > &s_)
 PropData (const bool b_)
 PropData (const vector< bool > &b_)
 PropData (const int i_)
 PropData (const vector< int > &i_)
 PropData (const float f_)
 PropData (const vector< float > &f_)
PropData& operator= (const char *s_)
PropData& operator= (const string &s_)
PropData& operator= (const bool b_)
PropData& operator= (const vector< bool > &b_)
PropData& operator= (const int i_)
PropData& operator= (const vector< int > &i_)
PropData& operator= (const float f_)
PropData& operator= (const vector< float > &f_)
 operator string () throw (bad_cast)
 operator vector () throw (bad_cast)
 operator bool () throw (bad_cast)
 operator vector () throw (bad_cast)
 operator int () throw (bad_cast)
 operator vector () throw (bad_cast)
 operator float () throw (bad_cast)
 operator vector () throw (bad_cast)
PropData& operator<< (const PropData &o) throw (bad_cast)
PropData& operator<< (const string &o) throw (bad_cast)
PropData& operator<< (const int &o) throw (bad_cast)
PropData& operator<< (const float &o) throw (bad_cast)
PropData& operator<< (const bool &o) throw (bad_cast)
PropData& operator<< (const char *o) throw (bad_cast)

Public Attributes

enum PropRegistry::PropData:: { ... }  tag
vector<string> s
vector<bool> b
vector<int> i
vector<float> f


Detailed Description

This class implements the property's data field. It contains the necessary operators to ease property query/set.

Definition at line 69 of file prop_registry.hh.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
k_string  
k_bool  
k_int  
k_float  
k_undef  

Definition at line 73 of file prop_registry.hh.


Constructor & Destructor Documentation

PropRegistry::PropData::PropData ( ) [inline]
 

Definition at line 80 of file prop_registry.hh.

Referenced by operator<<(), and operator=().

PropRegistry::PropData::PropData ( const PropData & o ) [inline]
 

Definition at line 82 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const char * s_ ) [inline, explicit]
 

Definition at line 97 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const string & s_ ) [inline, explicit]
 

Definition at line 101 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const vector< string > & s_ ) [inline, explicit]
 

Definition at line 105 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const bool b_ ) [inline, explicit]
 

Definition at line 109 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const vector< bool > & b_ ) [inline, explicit]
 

Definition at line 113 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const int i_ ) [inline, explicit]
 

Definition at line 117 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const vector< int > & i_ ) [inline, explicit]
 

Definition at line 121 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const float f_ ) [inline, explicit]
 

Definition at line 125 of file prop_registry.hh.

PropRegistry::PropData::PropData ( const vector< float > & f_ ) [inline, explicit]
 

Definition at line 129 of file prop_registry.hh.


Member Function Documentation

PropData & PropRegistry::PropData::operator= ( const PropData & o ) [inline]
 

Definition at line 86 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const char * s_ ) [inline]
 

Definition at line 133 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const string & s_ ) [inline]
 

Definition at line 138 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const bool b_ ) [inline]
 

Definition at line 143 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const vector< bool > & b_ ) [inline]
 

Definition at line 148 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const int i_ ) [inline]
 

Definition at line 153 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const vector< int > & i_ ) [inline]
 

Definition at line 158 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const float f_ ) [inline]
 

Definition at line 163 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator= ( const vector< float > & f_ ) [inline]
 

Definition at line 168 of file prop_registry.hh.

PropRegistry::PropData::operator string ( ) throw (bad_cast) [inline]
 

Definition at line 173 of file prop_registry.hh.

PropRegistry::PropData::operator vector< float > & ( ) throw (bad_cast) [inline]
 

Definition at line 179 of file prop_registry.hh.

PropRegistry::PropData::operator bool ( ) throw (bad_cast) [inline]
 

Definition at line 185 of file prop_registry.hh.

PropRegistry::PropData::operator vector< float > & ( ) throw (bad_cast) [inline]
 

Definition at line 191 of file prop_registry.hh.

PropRegistry::PropData::operator int ( ) throw (bad_cast) [inline]
 

Definition at line 197 of file prop_registry.hh.

PropRegistry::PropData::operator vector< float > & ( ) throw (bad_cast) [inline]
 

Definition at line 203 of file prop_registry.hh.

PropRegistry::PropData::operator float ( ) throw (bad_cast) [inline]
 

Definition at line 209 of file prop_registry.hh.

PropRegistry::PropData::operator vector< float > & ( ) throw (bad_cast) [inline]
 

Definition at line 215 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator<< ( const PropData & o ) throw (bad_cast)
 

Append operator. Adds the data from o into this object (throws bad_cast if the properties don't have the same kind.

Definition at line 45 of file prop_registry.cc.

PropData & PropRegistry::PropData::operator<< ( const string & o ) throw (bad_cast) [inline]
 

Definition at line 227 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator<< ( const int & o ) throw (bad_cast) [inline]
 

Definition at line 232 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator<< ( const float & o ) throw (bad_cast) [inline]
 

Definition at line 237 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator<< ( const bool & o ) throw (bad_cast) [inline]
 

Definition at line 242 of file prop_registry.hh.

PropData & PropRegistry::PropData::operator<< ( const char * o ) throw (bad_cast) [inline]
 

Definition at line 247 of file prop_registry.hh.


Member Data Documentation

enum { ... } PropRegistry::PropData::tag
 

vector< string > PropRegistry::PropData::s<string>
 

Definition at line 75 of file prop_registry.hh.

vector< bool > PropRegistry::PropData::b<bool>
 

Definition at line 76 of file prop_registry.hh.

vector< int > PropRegistry::PropData::i<int>
 

Definition at line 77 of file prop_registry.hh.

vector< float > PropRegistry::PropData::f<float>
 

Definition at line 78 of file prop_registry.hh.


The documentation for this class was generated from the following files:
Generated at Tue Jul 9 21:08:04 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001