DRAMA C++ Intro   Class Hierarchy   Alphabetical List of types   List of Classes   File List   Class Member Index   File Members Index   Related Pages  

GitInt Class Reference

#include <Git.h>

Inheritance diagram for GitInt:

Git GitTpl::Int< MinVal, MaxVal, DefaultVal > List of all members.

Detailed Description

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.

See also:
GitArgGetI()


Public Methods

 GitInt (const long int def=0)
 Simple constructor with a default value specified.

 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.

virtual ~GitInt ()
 Destructor.

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.

 operator long int () const
 Conversion operator- given GitInt, return a long int.


Protected Methods

virtual const long int * Range ()
 Function which returns sets the range.


Constructor & Destructor Documentation

GitInt::GitInt const long int    def = 0 [inline]
 

Simple constructor with a default value specified.

Parameters:
def  The default value to use.

GitInt::GitInt const SdsId   Id,
const char *const    Name,
const int    Position,
StatusType *const    status,
const long int    Default = 0,
const int    Flags = 0
[inline]
 

Constructor with the initial value set from an SDS structure.

Parameters:
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

virtual GitInt::~GitInt   [inline, virtual]
 

Destructor.


Member Function Documentation

virtual void GitInt::Get const SdsId   Id,
const char *const    Name,
const int    Position,
StatusType *const    status,
const long int    Default = 0,
const int    Flags = 0
[inline, virtual]
 

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.

Parameters:
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

GitInt::operator long int   const [inline]
 

Conversion operator- given GitInt, return a long int.

virtual const long int* GitInt::Range   [inline, protected, virtual]
 

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.

Returns:
The address of a two element array of double. The first element contains the minimum and the second the maximum.


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

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 doxygen 1.2.18