|
ObjCryst++
1.5CVS
|
Base class for options. More...
Public Member Functions | |
| RefObjOpt () | |
| Constructor for the option. | |
| 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 RefinableObjClock & | GetClock () const |
| void | XMLOutput (ostream &os, int indent=0) const |
| XMLOutput to stream in well-formed XML. | |
| 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. | |
| const string * | mpChoiceName |
| Names corresponding to each possible value of this option (Human-understandable). | |
| RefinableObjClock | mClock |
| The clock associated to this option. | |
Base class for options.
| ObjCryst::RefObjOpt::RefObjOpt | ( | ) |
Constructor for the option.
| obj,: | the |
| void ObjCryst::RefObjOpt::XMLInput | ( | istream & | is, |
| const XMLCrystTag & | tag | ||
| ) |
XMLInput From stream.
| 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.
|
protected |
Names corresponding to each possible value of this option (Human-understandable).
Should be statically stored in the class using the option.
|
protected |
(short) Name for this option.
Should be statically stored in the class using the option
1.8.1