AURobotServers  4
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
UGmkPool Class Reference

#include <ugmkpool.h>

Public Member Functions

UGmkgetGmk (unsigned long shortCode, bool mayCreate)
 
int getGmkCnt ()
 
UGmkgetGmkId (unsigned long ID)
 
UGmkgetGmkNew (int serial, UTime sinceTime)
 
int getGmkNewCnt (UTime sinceTime)
 
UGmkgetGmkNum (unsigned int serial)
 
 UGmkPool ()
 
 ~UGmkPool ()
 

Protected Attributes

UGmkgmks [MAX_GUIDEMARK_COUNT]
 
int gmksCnt
 

Static Protected Attributes

static const int MAX_GUIDEMARK_COUNT = 100
 

Detailed Description

Holds all detected guidemarks

Author
Christian Andersen

Constructor & Destructor Documentation

UGmkPool::UGmkPool ( )

Constructor

References gmks, gmksCnt, and MAX_GUIDEMARK_COUNT.

UGmkPool::~UGmkPool ( )

Destructor

References gmks, and gmksCnt.

Member Function Documentation

UGmk * UGmkPool::getGmk ( unsigned long  shortCode,
bool  mayCreate 
)

Get handle for guidemark with this short code. If not available, then create if 'mayCreate' is true. Returns NULL if not 'mayCreate' and not found.

References gmks, and gmksCnt.

Referenced by UClientFuncGmk::handleGmkGet().

int UGmkPool::getGmkCnt ( )

Get total number of guidemarks in pool

References gmksCnt.

Referenced by UResCamIfGmk::newDataAvailable(), UNavPaint::paintGmks(), and UResCamIfGmk::snprint().

UGmk * UGmkPool::getGmkId ( unsigned long  ID)

Get a specific gmk from the number its ID

References gmks, and gmksCnt.

UGmk * UGmkPool::getGmkNew ( int  serial,
UTime  sinceTime 
)

Get a specific gmk among the new ones

References gmks, and gmksCnt.

int UGmkPool::getGmkNewCnt ( UTime  sinceTime)

Get number of gmks with an update time newer than the parameter time

References gmks, and gmksCnt.

UGmk * UGmkPool::getGmkNum ( unsigned int  serial)

Get a specific gmk from the number in the pool

References gmks, and gmksCnt.

Referenced by UResCamIfGmk::newDataAvailable(), UNavPaint::paintGmks(), and UResCamIfGmk::snprint().

Member Data Documentation

UGmk* UGmkPool::gmks[MAX_GUIDEMARK_COUNT]
protected

Guidemark storage list

Referenced by getGmk(), getGmkId(), getGmkNew(), getGmkNewCnt(), getGmkNum(), UGmkPool(), and ~UGmkPool().

int UGmkPool::gmksCnt
protected
const int UGmkPool::MAX_GUIDEMARK_COUNT = 100
staticprotected

Max number of guidemarks

Referenced by UGmkPool().


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