Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

ObjCryst::RefObjOpt Class Reference

Base class for options. More...

#include <RefinableObj.h>

Inheritance diagram for ObjCryst::RefObjOpt::

ObjCryst::RefObjOption List of all members.

Public Methods

 RefObjOpt ()
 Constructor for the option. More...

virtual ~RefObjOpt ()
void Init (const int nbChoice, const string *name, const string *choiceNames)
int GetNbChoice () const
int GetChoice () const
virtual void SetChoice (const int choice)
void SetChoice (const string &choiceName)
const string & GetName () const
const string & GetClassName () const
const string & GetChoiceName (const int i) const
const RefinableObjClockGetClock () const
void XMLOutput (ostream &os, int indent=0) const
 XMLOutput to stream in well-formed XML. More...

void XMLInput (istream &is, const XMLCrystTag &tag)
 XMLInput From stream.


Protected Attributes

int mNbChoice
 Number of different choice possible for this option.

int mChoice
 Current value.

const string * mpName
 (short) Name for this option. Should be statically stored in the class using the option.

const string * mpChoiceName
 Names corresponding to each possible value of this option (Human-understandable). Should be statically stored in the class using the option.

RefinableObjClock mClock
 The clock associated to this option.


Detailed Description

Base class for options.


Constructor & Destructor Documentation

ObjCryst::RefObjOpt::RefObjOpt  
 

Constructor for the option.

Parameters:
obj:  the


Member Function Documentation

void ObjCryst::RefObjOpt::XMLOutput ostream &    os,
int    indent = 0
const
 

XMLOutput to stream in well-formed XML.

In this function the name used is that of the Option.


The documentation for this class was generated from the following file:
Generated on Sun Feb 3 22:01:53 2002 for ObjCryst++ by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001