A class which reads integer values from an SDS argument structure. More...
#include <Git.h>
Public Member Functions | |
GitInt (const long int def=0) | |
Simple constructor with a default value specified. More... | |
GitInt (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const long int Default=0, const int Flags=0) | |
Constructor with the initial value set from an SDS structure. More... | |
virtual | ~GitInt () |
Destructor. More... | |
virtual void | Get (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const long int Default=0, const int Flags=0) |
Get the value of the object from an SDS struture. More... | |
operator long int () const | |
Conversion operator - given GitInt, return a long int. More... | |
Protected Member Functions | |
virtual const long int * | Range () |
Function which returns sets the range. More... | |
Additional Inherited Members | |
![]() | |
enum | { Upper =GIT_M_ARG_UPPER, Lower =GIT_M_ARG_UPPER, KeepErr =GIT_M_ARG_KEEPERR, Abbrev = GIT_M_ARG_ABBREV, LastBit =GIT_M_ARG_LASTBIT } |
A class which reads integer values from an SDS argument structure.
A C++ class which provides an interface to GitArgGetI(). It Implements a int type which includes the operation Get, to fetch its value from an SDS structure. There is also a constructor which does the Get operation.
By overriding the function Range in an inheriting class, you can supply range limits for the value.
|
inline |
Simple constructor with a default value specified.
def | The default value to use. |
|
inline |
Constructor with the initial value set from an SDS structure.
Id | The SDS structure. |
Name | The name of the item within the structure. |
Position | If the item does not exist by the name, then presume this position. |
status | Inherited status |
Default | The default value. |
Flags | Which GIT Flags to apply |
|
inlinevirtual |
Destructor.
|
inlinevirtual |
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.
Id | The SDS structure. |
Name | The name of the item within the structure. |
Position | If the item does not exist by the name, then presume this position. |
status | Inherited status |
Default | The default value. |
Flags | Which GIT Flags to apply |
Referenced by GitTpl::Int< MinVal, MaxVal, DefaultVal >::Int().
|
inline |
Conversion operator - given GitInt, return a long int.
|
inlineprotectedvirtual |
Function which returns sets the range.
This method can be overriden by inherited to set the range. If not overriden, then any value is ok.
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tjf@aao.gov.au Generated on Mon Feb 22 2016 13:58:31 for AAO DRAMA C++ Interfaces by