C++ common classes
General purpose classes for use across projects (Apache license)
CDBRecordsArray Class Reference

#include <CDBRecordsArray.h>

List of all members.

Public Member Functions

 CDBRecordsArray ()
 CDBRecordsArray (const CDBRecordsArray &orig)
virtual ~CDBRecordsArray ()
void DBRecordAdd (const char *pRecord, float fElapsed=0.0f)
 Add a record to the DB record array.. Synchronized with the publisher.
void DBRecordAdd (VEC_DB_RECORDS &vRec, float fElapsed=0.0f)
 Add a whole array of records.
VEC_DB_RECORDSLockDBRecords ()
 Get DB record array - locks the array.
bool ClearDBRecords ()
 Clear the array.
void UnlockDBRecords ()
 Release DB record array - must be called after "GetRecordArray".

Public Attributes

VEC_DB_RECORDS vDBRecords
 Array of the records.
float fTotalElapsed
 Total elapsed time to publish the records.

Detailed Description

CDBRecordsArray Class to encapsulate the records that we want to publish to Mongo

Definition at line 32 of file CDBRecordsArray.h.


Constructor & Destructor Documentation

Definition at line 18 of file CDBRecordsArray.cpp.

Definition at line 24 of file CDBRecordsArray.cpp.

Definition at line 32 of file CDBRecordsArray.cpp.


Member Function Documentation

Clear the array.

Definition at line 76 of file CDBRecordsArray.cpp.

void CDBRecordsArray::DBRecordAdd ( const char *  pRecord,
float  fElapsed = 0.0f 
)

Add a record to the DB record array.. Synchronized with the publisher.

Definition at line 39 of file CDBRecordsArray.cpp.

void CDBRecordsArray::DBRecordAdd ( VEC_DB_RECORDS vRec,
float  fElapsed = 0.0f 
)

Add a whole array of records.

Definition at line 48 of file CDBRecordsArray.cpp.

Get DB record array - locks the array.

Definition at line 58 of file CDBRecordsArray.cpp.

Release DB record array - must be called after "GetRecordArray".

Definition at line 69 of file CDBRecordsArray.cpp.


Member Data Documentation

Total elapsed time to publish the records.

Definition at line 54 of file CDBRecordsArray.h.

Array of the records.

Definition at line 52 of file CDBRecordsArray.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines