My Project
Public Member Functions | Protected Attributes | List of all members
ParaInfoCenter::CICMapTrace Class Reference

Public Member Functions

int GetAllTrace (CICGenMapTrace *returndata, bool bDesc=true, int nLimit=0)
 Get all trace. More...
 
void BeginGettingTrace (bool bBegin=false)
 begin getting trace, call before you decide to get trace, if this is called, the getting trace operation will reset if it's not called before GetTrace, These function will return nothing More...
 
void EndGettingTrace ()
 call if you want to end the operation, but it is not compulsory.
 
bool GetTrace (CICGenMapTrace &maptrace)
 Data at the cursor are written to parameter maptrace and the cursor will move according to bForward to the next one or previous one. More...
 
bool SeekTrace (int index)
 Move the cursor to a given item. More...
 
void AddTrace (double x, double y, double z, const WCHAR *id)
 
void DisplayTrace ()
 
void DelTrace (DWORD nTime)
 deletes the trace which is longer than certain time, in milliseconds.
 

Protected Attributes

CICGenMapTracem_lasttrace
 
int m_nCursor
 
bool m_bASC
 
int m_nLowerWindow
 
CICRecordSetm_recordSet
 

Member Function Documentation

§ BeginGettingTrace()

void ParaInfoCenter::CICMapTrace::BeginGettingTrace ( bool  bBegin = false)

begin getting trace, call before you decide to get trace, if this is called, the getting trace operation will reset if it's not called before GetTrace, These function will return nothing

Parameters
bBeginIf bBegin is true, the current cursor will set to the first trace. if false, it will set to the last trace

§ GetAllTrace()

int ParaInfoCenter::CICMapTrace::GetAllTrace ( CICGenMapTrace returndata,
bool  bDesc = true,
int  nLimit = 0 
)

Get all trace.

User should new enough instances of CICGenMapTrace before calling this function and delete them afterwards

Note
: IMPORTANT, make sure destructor of each item is called. Do not just free the memory block.
Parameters

§ GetTrace()

bool ParaInfoCenter::CICMapTrace::GetTrace ( CICGenMapTrace maptrace)

Data at the cursor are written to parameter maptrace and the cursor will move according to bForward to the next one or previous one.

Parameters
maptracethe CICGenMapTrace item the data will be written to.
Returns
: return true if success, false if failed due to BOF, EOF, DB error or not called BeginTrace yet

§ SeekTrace()

bool ParaInfoCenter::CICMapTrace::SeekTrace ( int  index)

Move the cursor to a given item.

Parameters
indexwhere the cursor will move to
Returns
: return true, if we can successfully seek to the item. return false, if not

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