TimeSourceLockStatus.h

00001 /*-----------------------------------------------------------------------------
00002  * TimeSourceLockStatus declaration
00003  * Ionetrics 2006
00004  * John Williams
00005  * TimeSourceLockStatus.h
00006  *---------------------------------------------------------------------------*/
00007 
00008 #ifndef TIMESOURCELOCKSTATUS_H
00009 #define TIMESOURCELOCKSTATUS_H
00010 
00011 //-----------------------------------------------------------------------------
00012 
00013 #include <string>
00014 #include <vector>
00015 
00016 #include "AnnotatorCommApi.h"
00017 
00018 using namespace std;
00019 
00020 //-----------------------------------------------------------------------------
00021 
00022 namespace annotatorcomm
00023 {
00024 
00028 class ANNCOMM_API TimeSourceLockStatus
00029 {
00030 public:
00031         static const TimeSourceLockStatus LOCKED;
00032         static const TimeSourceLockStatus FAILED;
00033         static const TimeSourceLockStatus LOCKING;
00034         
00040         static vector<const TimeSourceLockStatus*> values();
00041         
00042 public:
00048         int getLockStatus() const;
00049         
00055         string toString() const;
00056         
00057 private:
00061         const int status;
00062         
00066         const string name;
00067         
00074         TimeSourceLockStatus(const int status, const string & name);
00075 };
00076 
00077 }
00078 
00079 //-----------------------------------------------------------------------------
00080 
00081 #endif /* TIMESOURCELOCKSTATUS_H */

Generated on Tue Aug 1 11:14:11 2006 for libAnnotatorComm by  doxygen 1.4.7