My Project
|
00001 #ifndef ACQUIRENEUTRONSOURCEIMAGEINFORMATION 00002 #define ACQUIRENEUTRONSOURCEIMAGEINFORMATION 00003 00004 #define HOST_NAME "www-cont.j-parc.jp" 00005 //#define HOST_PROTCOL http 00006 //#define HOST_PORT 80 00007 //#define USER_AGENT "target Information API/1.00" 00008 00009 /* File path and File name of Signal Keys */ 00010 #define IMAGE_PATH "/MLF/Image/" 00011 #define BEAM_POWER_FNAME "BP.png" 00012 #define CT_01_FNAME "CT01.png" 00013 #define MODERATOR_FNAME "H2.png" 00014 #define JPARC_STATUS_FNAME "JP.png" 00015 #define SHUTTER_STATUS_FNAME "ST.png" 00016 #define CT_3HOUR_FNAME "CT3H.png" 00017 #define CT_1DAY_FNAME "CT01LD.png" 00018 00019 #define CT_PATH "/MLF/cgi/image/" 00020 #define CT_FNAME "CT.jpg" 00021 #define MODERATOR_TMP_PATH "/MLF/cgi/image/" 00022 #define MODERATOR_TMP_FNAME "H2tmp.jpg" 00023 00024 //#include <iostream> /* for cout */ 00025 //#include <sstream> /* for ostringstream */ 00026 //#include <fstream> /* for ofstream */ 00027 //#include <iomanip> /* manipulator */ 00028 #include "AcquireNeutronSourceInformationControlBase.hh" 00030 class AcquireNeutronSourceImageInformation 00031 : public AcquireNeutronSourceInformationControlBase 00032 { 00033 private: 00034 string FileSavePath; /* Image save path */ 00035 // UInt2 Port; /* The port number to connect */ 00036 Bool DebugFlag; /* Debug mode OFF = false or 0; ON = true or not zero */ 00037 protected: 00038 public: 00039 AcquireNeutronSourceImageInformation(); 00041 00043 AcquireNeutronSourceImageInformation( string host_name, Bool debug_flag = false ); 00045 00050 AcquireNeutronSourceImageInformation( Bool debug_flag ); 00052 00056 virtual ~AcquireNeutronSourceImageInformation(); 00058 00061 Int4 SetSavePath( const string save_path ); 00062 00063 void GetImageInformation( const string Key ); 00064 void GetImageInformation( const string Key, const string Start ); 00065 void GetImageInformation( const string Key, const string Start, const string End ); 00066 00067 string PutImagePath( const string Key ); 00068 string PutImagePath( const string Key, const UInt4 year, const UInt4 month, const UInt4 day, const UInt4 hour ); 00069 00070 string PutImageFilename( const string Key ); 00071 string PutImageFilename( const string Key, const UInt4 year, const UInt4 month, const UInt4 day, const UInt4 hour ); 00072 }; 00073 00074 #endif