00001 #ifndef CALIBRATIONCONTROLLERSTATUS_H
00002 #define CALIBRATIONCONTROLLERSTATUS_H
00003
00004 #include <is/isinfo.h>
00005
00006
00007
00008
00015 class CalibrationControllerStatus: public ISInfo {
00016 public:
00017 enum status_E {LOADED,INCONTROL,BUSY,ERROR};
00018
00021 status_E status;
00022
00025 std::string updateOption;
00026
00029 std::string currentSequence;
00030
00033 std::string currentTest;
00034
00037 unsigned long currentScanIndex;
00038
00039
00040 CalibrationControllerStatus( )
00041 : ISInfo( "CalibrationControllerStatus" )
00042 {
00043 status = LOADED;
00044 updateOption = "UPDATE";
00045
00046
00047
00048
00049 }
00050
00051 ~CalibrationControllerStatus(){
00052
00053
00054
00055
00056 }
00057
00058 protected:
00059 CalibrationControllerStatus( const char * type )
00060 : ISInfo( type )
00061 {
00062 status = LOADED;
00063 updateOption = "UPDATE";
00064
00065
00066
00067
00068 }
00069
00070 void publishGuts( ISostream & out ){
00071 out << (int)status << updateOption << currentSequence << currentTest << currentScanIndex;
00072 }
00073
00074 void refreshGuts( ISistream & in ){
00075 in >> (int&)status >> updateOption >> currentSequence >> currentTest >> currentScanIndex;
00076 }
00077
00078
00079
00080
00081 };
00082
00083
00084
00085
00086 #endif // CALIBRATIONCONTROLLERSTATUS_H