//---------------------------------------------------------------------------- // // Copyright (C) Intel Corporation, 2007 - 2008. // // File: DynamicConfiguration.h // // Contents: A timer which goes off on a set time, which reads the // dynamic configuration file, // and updates its elements accordingly // // Notes: //---------------------------------------------------------------------------- #ifndef DYNAMIC_CONFIGURATION_H #define DYNAMIC_CONFIGURATION_H #include #include #include "global.h" #include "ObserverPattern.h" class DynamicConfiguration : public ACE_Event_Handler, public Observer_Pattern_Subject { public: DynamicConfiguration(void); ~DynamicConfiguration(void); STATUS start(void); STATUS close(void); STATUS start(const ACE_Time_Value &initialDelay, const ACE_Time_Value &interval); int handle_timeout(const ACE_Time_Value ¤t_time, const void * arg = NULL); int get_timer_id(void) { return _timer_id; } private: long _timer_id; }; #endif /* DYNAMIC_CONFIGURATION_H */