Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

xchen::Attributes Class Reference

#include <Attributes.H>

List of all members.

Public Methods

template<typename T> void Register (string const &id, T const &v)
 register attribute id with initial value v.

void Register (string const &id, type_info const &t)
 register attribute id of type_info t.

Attributeoperator[] (string const &id)
void ReadFrom (int argc, char **argv)
 Used for command line parsing.

void ReadFrom (string const &str)
 Read attribute values from a string.


Friends

istream & operator>> (istream &is, Attributes &)
 Read attributes of the form as a list of "id value".

ostream & operator<< (ostream &os, Attributes const &)


Member Function Documentation

Attribute & xchen::Attributes::operator[] string const &    id [inline]
 

void xchen::Attributes::ReadFrom string const &    str
 

Read attribute values from a string.

void xchen::Attributes::ReadFrom int    argc,
char **    argv
 

Used for command line parsing.

void xchen::Attributes::Register string const &    id,
type_info const &    t
[inline]
 

register attribute id of type_info t.

template<typename T>
void xchen::Attributes::Register string const &    id,
T const &    v
[inline]
 

register attribute id with initial value v.


Friends And Related Function Documentation

ostream& operator<< ostream &    os,
Attributes const &   
[friend]
 

istream& operator>> istream &    is,
Attributes &   
[friend]
 

Read attributes of the form as a list of "id value".


The documentation for this class was generated from the following file:
Generated on Wed Apr 7 21:40:50 2004 by doxygen1.2.18