00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#ifndef DC_EventRepositoryH
00013
#define DC_EventRepositoryH
00014
00015
#include "../GeneralInclude/ForwardDeclarations.h"
00016
#include "../GeneralInclude/BasicTypes.h"
00017
#include "../Base/CC_RootObject.h"
00018
00089 class DC_EventRepository :
public CC_RootObject {
00090
private:
00091
bool globalEnabled;
00092
bool selectiveEnabled[LAST_EVENT_TYPE+1];
00093
ObsClock *pObsClock;
00094
unsigned int counter;
00095
unsigned int listSize;
00096
unsigned int iterationCounter;
00097
00098
protected:
00109 DC_Event **
pList;
00110
00115 unsigned int eventPointer;
00116
00125
virtual void createEventDataStructure(
void);
00126
00127
public:
00135
DC_EventRepository(
void);
00136
00164
void setRepositorySize(
unsigned int repositorySize);
00165
00194
void virtual create(
CC_RootObject *originator,TD_EventType eventId);
00195
00203
inline void setEnabled(
bool isEnabled);
00204
00215
inline void setEnabled(TD_EventType eventType,
bool isEnabled);
00216
00221
inline bool isEnabled(
void) const;
00222
00228 inline
bool isEnabled(TD_EventType eventType) const;
00229
00257
void latest(
void);
00258
00266
void previous(
void);
00267
00280 inline
bool isIterationFinished(
void) const;
00281
00291 inline TD_EventType getEventType(
void) const;
00292
00302 inline TD_ObsTime getTimeStamp(
void) const;
00303
00314 inline
unsigned int getCounter(
void) const;
00315
00320 inline
unsigned int getRepositorySize(
void) const;
00321
00327 inline
void setObsClock(
ObsClock *pObsClock);
00328
00334 inline
ObsClock *getObsClock(
void) const;
00335
00343
void reset(
void);
00344
00351 virtual
bool isObjectConfigured(
void);
00352 };
00353
00354 #include "DC_EventRepository_inl.h"
00355
00356
00357 #endif
00358
00359