ObjCryst++  1.5CVS
Public Member Functions | Private Attributes
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 >:
ObjCryst::RefObjOpt

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)
- Public Member Functions inherited from ObjCryst::RefObjOpt
 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 RefinableObjClockGetClock () 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

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

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

Constructor for the option.

Parameters:
obj,:the

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.


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