FOX/ObjCryst++
1.10.X (development)
|
Class for options of RefinableObj, templated so that we can warn the object that something has been changed. More...
Public Member Functions | |
RefObjOption (T *obj) | |
Constructor for the option. More... | |
void | Init (const int nbChoice, const string *name, const string *choiceNames, void(T::*fp)(const int)) |
virtual void | SetChoice (const int choice) |
Public Member Functions inherited from ObjCryst::RefObjOpt | |
RefObjOpt () | |
Constructor for the option. More... | |
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. More... | |
void | XMLInput (istream &is, const XMLCrystTag &tag) |
XMLInput From stream. More... | |
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. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ObjCryst::RefObjOpt | |
int | mNbChoice |
Number of different choice possible for this option. | |
int | mChoice |
Current value. | |
const string * | mpName |
(short) Name for this option. More... | |
const string * | mpChoiceName |
Names corresponding to each possible value of this option (Human-understandable). More... | |
RefinableObjClock | mClock |
The clock associated to this option. | |
Class for options of RefinableObj, templated so that we can warn the object that something has been changed.
NOT USED SO FAR.
Definition at line 606 of file RefinableObj.h.
ObjCryst::RefObjOption< T >::RefObjOption | ( | T * | obj | ) |
|
private |
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.
Definition at line 625 of file RefinableObj.h.