Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

DC_EventRepository_inl.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // DC_EventRepository_inl.h 00005 // 00006 // Version 1.1 00007 // Date 13.09.03 (version 1.0) 00008 // 03.12.03 (version 1.1) 00009 // Author A. Pasetti (P&P Software), R. Totaro 00010 // 00011 // Change Record: 00012 // Version 1.1: The class was almost completely re-implemented. 00013 00014 #ifndef DC_EventRepository_INL 00015 #define DC_EventRepository_INL 00016 00017 #include "../GeneralInclude/CompilerSwitches.h" 00018 #include "../GeneralInclude/DebugSupport.h" 00019 #include "DC_Event.h" 00020 00021 inline unsigned int DC_EventRepository::getCounter(void) const { 00022 return counter; 00023 } 00024 00025 inline unsigned int DC_EventRepository::getRepositorySize(void) const { 00026 return listSize; 00027 } 00028 00029 inline void DC_EventRepository::setEnabled(bool isEnabled) { 00030 globalEnabled=isEnabled; 00031 } 00032 00033 inline void DC_EventRepository::setEnabled(TD_EventType eventType,bool isEnabled) { 00034 assert(eventType>0 && eventType<=LAST_EVENT_TYPE); 00035 00036 selectiveEnabled[eventType]=isEnabled; 00037 } 00038 00039 inline bool DC_EventRepository::isEnabled(void) const { 00040 return globalEnabled; 00041 } 00042 00043 inline bool DC_EventRepository::isEnabled(TD_EventType eventType) const { 00044 assert(eventType>0 && eventType<=LAST_EVENT_TYPE); 00045 00046 return selectiveEnabled[eventType]; 00047 } 00048 00049 inline bool DC_EventRepository::isIterationFinished(void) const { 00050 return (iterationCounter==0); 00051 } 00052 00053 inline TD_EventType DC_EventRepository::getEventType(void) const { 00054 assert(pList!=pNULL); 00055 00056 return pList[eventPointer%listSize]->getEventType(); 00057 } 00058 00059 inline TD_ObsTime DC_EventRepository::getTimeStamp(void) const { 00060 assert(pList!=pNULL); 00061 00062 return pList[eventPointer%listSize]->getTimeStamp(); 00063 } 00064 00065 inline ObsClock *DC_EventRepository::getObsClock(void) const { 00066 assert(pObsClock!=pNULL); 00067 00068 return pObsClock; 00069 } 00070 00071 inline void DC_EventRepository::setObsClock(ObsClock *pClock) { 00072 assert(pClock!=pNULL); 00073 00074 pObsClock=pClock; 00075 } 00076 00077 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved