Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #if !defined(_FEDM_XMLREADERCFGDATAMODUL_H_INCLUDED_)
00037 #define _FEDM_XMLREADERCFGDATAMODUL_H_INCLUDED_
00038
00039
00040
00041 #ifdef _FEDM_XML_SUPPORT
00042
00043
00044 #include "FEDM.h"
00045 #include "FEDM_XmlBase.h"
00046 #include "i_scan/FEDM_ISCReaderInfo.h"
00047
00048
00049 class FEDM_DataBase;
00050
00051
00052
00053 class _FEDM_ISC_CORE_EXT_CLASS FEDM_XMLReaderCfgDataModul : public FEDM_XMLBase
00054 {
00055 public:
00056
00057 FEDM_XMLReaderCfgDataModul();
00058 ~FEDM_XMLReaderCfgDataModul();
00059
00060
00061 int SerializeIn(FEDM_DataBase* pReader, char* sFileName);
00062 int SerializeOut(FEDM_DataBase* pReader, char* sFileName);
00063
00064
00065 int QueryDocType(char* sFileName, char* sDocType);
00066 int QueryDocVersion(char* sFileName, char* sDocVersion);
00067 int QueryReaderFamily(char* sFileName, char* sFamCode);
00068 int QueryReaderType(char* sFileName);
00069
00070
00071 void SetReaderInfo(FEDM_ISC_READER_INFO* pReaderInfo);
00072
00073 void GetComment(string& sComment);
00074 void GetPrgName(string& sPrgName);
00075 void GetPrgVer(string& sPrgVer);
00076 void GetHost(string& sHost);
00077 void GetPort(string& sPort);
00078 void GetCommMode(string& sMode);
00079 void SetComment(string sComment);
00080 void SetPrgName(string sPrgName);
00081 void SetPrgVer(string sPrgVer);
00082
00083 private:
00084 int AddReaderInfo(FEDM_DataBase* pReader, FEDM_XML_TREEITEM* root);
00085 int GetReaderInfo(FEDM_DataBase* pReader, FEDM_XML_TREEITEM* root);
00086
00087 protected:
00088 FEDM_ISC_READER_INFO* m_pReaderInfo;
00089
00090
00091 wstring m_wsDocType;
00092 wstring m_wsDocVer;
00093 wstring m_wsComment;
00094 wstring m_wsPrgName;
00095 wstring m_wsPrgVer;
00096 wstring m_wsFedmVer;
00097 wstring m_wsHost;
00098 wstring m_wsPort;
00099 wstring m_wsDate;
00100 wstring m_wsTime;
00101 wstring m_wsCommMode;
00102 };
00103
00104 #endif // #ifdef _FEDM_XML_SUPPORT
00105
00106 #endif // !defined(_FEDM_XMLREADERCFGDATAMODUL_H_INCLUDED_)