DeviceId.h

00001 /*-----------------------------------------------------------------------------
00002  * DeviceId declaration
00003  * Ionetrics 2006
00004  * John Williams
00005  * DeviceId.h
00006  *---------------------------------------------------------------------------*/
00007 
00008 #ifndef DEVICEID_H
00009 #define DEVICEID_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 DeviceId
00029 {
00030 public:
00034         static const DeviceId* ANNOTATOR_JR;
00035         
00039         static const DeviceId* ANNOTATOR_I;
00040         
00044         static const DeviceId* ANNOTATOR_II;
00045         
00049         static const DeviceId* ANNOTATOR_III;
00050         
00056         static vector<const DeviceId*> values();
00057 
00058 public:
00059         
00065         int getDeviceId() const;
00066         
00072         string toString() const;
00073 
00074 private:
00078         const int id;
00079         
00083         const string name;
00084         
00090         DeviceId(int id, string name);
00091 };
00092 
00100 ANNCOMM_API ostream& operator<<(ostream& out, const DeviceId & devid);
00101 
00102 }
00103 
00104 //-----------------------------------------------------------------------------
00105 
00106 #endif /* DEVICEID_H */

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