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

This is C++ class which provides an interface to GitArgGetL(). It Implements a boolean type which includes the operation GotBool::Get , to fetch its value from an Sds structure.
By default, the string combinations "YES/NO" and "TRUE/FALSE" are accepted as boolean values, any input string being converted to upper case and abbreviations being accepted. There is also a constructor which does the Get operation.
By overriding the method GitEnum::Lookup in an inheriting class, you can supplied alternative lists of True/False strings.
Public Methods | |
| GitBool () | |
| Simple constructor with a default value of false. | |
| GitBool (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const bool Default=false, const int Flags=(Git::Upper|Git::Abbrev)) | |
| Constructor with the initial value set from an SDS structure. | |
| virtual | ~GitBool () |
| Destructor. | |
| virtual void | Get (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const bool Default=false, const int Flags=(Git::Upper|Git::Abbrev)) |
| Get the value of the object from an SDS struture. | |
| operator int () const | |
| Conversion operator- given GitBool, return an int. | |
| operator bool () const | |
| Conversion operator- given GitBool, return a bool. | |
Protected Methods | |
| virtual const GitLogStrType * | Lookup () |
| Return a pointer to an array of enum strings equivalents. | |
|
|
Simple constructor with a default value of false.
|
|
||||||||||||||||||||||||||||
|
Constructor with the initial value set from an SDS structure.
|
|
|
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
|
|
|
Conversion operator- given GitBool, return a bool.
|
|
|
Conversion operator- given GitBool, return an int.
|
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