AAO DRAMA C++ Interface (Old style)
DRAMA C++, Depreciated, don't use for new code
|
A class which reads real values from an SDS argument structure. More...
#include <gittpl.h>
Public Types | |
enum | { Upper =GIT_M_ARG_UPPER , Lower =GIT_M_ARG_LOWER , KeepErr =GIT_M_ARG_KEEPERR , Abbrev = GIT_M_ARG_ABBREV , LastBit =GIT_M_ARG_LASTBIT , KeepValErr =GIT_M_ARG_KEEPVALERR } |
Public Member Functions | |
Real (const double def=(double) DefaultVal) | |
Simple constructor with a default value specified. | |
Real (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const double Default=(double) DefaultVal, const int Flags=Git::KeepErr) | |
Constructor with the initial value set from an SDS structure. | |
virtual void | Get (const SdsId &Id, const char *const Name, const int Position, StatusType *const status, const double Default=0.0, const int Flags=0) |
Get the value of the object from an SDS struture. | |
operator double () const | |
Conversion operators - given GitReal, return a double. | |
operator float () const | |
Conversion operators - given GitReal, return a float. | |
A class which reads real values from an SDS argument structure.
A C++ class which provides an interface to GitArgGetD() . It Implements a double type which includes the operation Get, to fetch its value from an SDS structure. There is also a constructor which does the Get operation.
This class inherits GitReal and uses template arguments to specify the range.
It should be noted that as templates don't access double arguments, the template parameters which specify the range must be long ints, limiting the range you can use. If you need a greater range or non-integer range limits, you must use GitReal directly, but in many cases this verison will probably suffice.
MinValue | The minimum value acceptable in a Get operation. |
MaxValue | The maximum value acceptable in a Get operation. |
DefaultVal | The default value for the item. This is NOT validated against the range and hence can be used to set it to a identifible particular value, if desired. Defaults to zero. |
Click here for the DRAMA home page and here for the AAO home page.
For more information, contact tony.farrell@mq.edu.au
Generated on Thu Dec 12 2024 23:07:38 for AAO DRAMA C++ Interface (Old style) by 1.9.8