#include <Git.h>
Inheritance diagram for GitEnum:

This is an abstract class used for cases where we want to fetch a STRING action argument which must then be converted to an enum type.
This is a virtual class - the user must provide a class which inherits this class and provides an implementation of the GitEnum::SetValue and GitEnum::Lookup functions.
Public Methods | |
| virtual | ~GitEnum () |
| Destructor. | |
| void | Get (const SdsId &Id, const char *const Name, const int Position, StatusType *status, const char *Default=0, const int Flags=Git::Upper|Git::Abbrev) |
| Get the value of the object from an SDS struture. | |
Protected Methods | |
| virtual void | SetValue (const unsigned int)=0 |
| Set the value of the object. | |
| virtual const char *const * | Lookup ()=0 |
| Return a pointer to an array of enum strings equivalents. | |
|
|
Destructor.
|
|
||||||||||||||||||||||||||||
|
Get the value of the object from an SDS struture. This is the function which is used to set the value of the object. It is passed an SDS structure and looks for the item within that structure.
|
|
|
Return a pointer to an array of enum strings equivalents. The integer index of the string in this array is passed to GitEnum::SetValue when the value is set
|
|
|
Set the value of the object. This function must be provided by inheritors. It is invoked when GitEnum:: wants to set the value of the object using an integer of the index of the string in the look up array. It should set the object value to the enum equivalent of this value or an invalid value if the value is invalid. |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aaoepp.aao.gov.au Generated on Tue Nov 3 09:09:56 2009 for AAO DRAMA C++ Interfaces by
1.2.18