FOX/ObjCryst++  1.10.X (development)
ObjCryst::RefObjOption< T > Class Template Reference

Class for options of RefinableObj, templated so that we can warn the object that something has been changed. More...

+ Inheritance diagram for ObjCryst::RefObjOption< T >:
+ Collaboration diagram for ObjCryst::RefObjOption< T >:

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 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. 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.
 

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.

Definition at line 606 of file RefinableObj.h.

Constructor & Destructor Documentation

template<class T >
ObjCryst::RefObjOption< T >::RefObjOption ( T *  obj)

Constructor for the option.

Parameters
objthe

Definition at line 825 of file RefinableObj.cpp.

Member Data Documentation

template<class T >
void(T::* ObjCryst::RefObjOption< T >::mfpSetNewValue)(const int)
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.


The documentation for this class was generated from the following files: