Class for options of RefinableObj, templated so that we can warn the object that something has been changed.
More...
List of all members.
Public Member Functions |
| RefObjOption (T *obj) |
| Constructor for the option.
|
void | Init (const int nbChoice, const string *name, const string *choiceNames, void(T::*fp)(const int)) |
virtual void | SetChoice (const int choice) |
| RefObjOpt () |
| Constructor for the option.
|
void | Init (const int nbChoice, const string *name, const string *choiceNames) |
int | GetNbChoice () const |
int | GetChoice () const |
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.
|
Private Attributes |
T * | mpObj |
| The object which uses this option.
|
void(T::* | mfpSetNewValue )(const int) |
| The pointer to the member function to be used when the choice is changed, to notify immediately the object.
|
Additional Inherited Members |
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.
|
Detailed Description
template<class T>
class ObjCryst::RefObjOption< T >
Class for options of RefinableObj, templated so that we can warn the object that something has been changed.
NOT USED SO FAR.
Constructor & Destructor Documentation
Constructor for the option.
- Parameters:
-
Member Data Documentation
The pointer to the member function to be used when the choice is changed, to notify immediately the object.
If null, the value is just recorded and no notification is done.
The documentation for this class was generated from the following file: