00001 // $Header: /bes/bes/BossCvs/Calibration/calibUtil/calibUtil/GenericSrv.h,v 1.1.1.1 2005/10/17 06:12:26 maqm Exp $ 00002 00003 #ifndef CALIBUTIL_GENERICSRV_H 00004 #define CALIBUTIL_GENERICSRV_H 00005 00006 #include "xmlBase/XmlParser.h" 00007 #include "xmlBase/Dom.h" 00008 #include <xercesc/dom/DOMElement.hpp> 00009 00010 #include <string> 00011 #include <iostream> 00012 #include <vector> 00013 00014 namespace calibUtil { 00015 00016 class InputSample; 00017 00018 class GenericSrv { 00019 public: 00020 00022 GenericSrv(const XERCES_CPP_NAMESPACE_QUALIFIER DOMElement* docElt); 00023 00025 GenericSrv(std::string inst, std::string timestamp, 00026 std::string calType, InputSample* samp) : 00027 m_instName(inst), m_timestamp(timestamp), m_calType(calType), 00028 m_fmtVer(0), m_sample(samp) {} 00029 00031 std::string getInst(){ 00032 return m_instName; 00033 } 00034 00036 std::string getTimestamp(){ 00037 return m_timestamp; 00038 } 00039 00041 std::string getCalType(){ 00042 return m_calType; 00043 } 00044 00046 std::string getFmtVer(){ 00047 return m_fmtVer; 00048 } 00049 00050 private: 00051 00052 std::string m_instName; 00053 std::string m_timestamp; 00054 std::string m_calType; 00055 std::string m_fmtVer; 00056 00057 // Corresponds to inputSample element in badStrips.dtd (except 00058 // that the class doesn't actually exist yet. 00059 InputSample *m_sample; 00060 00061 }; 00062 00063 }// end of namespace calibUtil 00064 00065 #endif 00066 00067 00068