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_XML_READER_CFG_PROFILE_MODUL_H_INCLUDED_)
00037 #define _FEDM_XML_READER_CFG_PROFILE_MODUL_H_INCLUDED_
00038
00039
00040 #ifdef _MSC_VER
00041 #if _MSC_VER >= 1000
00042 #pragma once
00043 #endif // _MSC_VER >= 1000
00044 #endif
00045
00046
00047 #ifdef _FEDM_XML_SUPPORT
00048
00049
00050 #include "FEDM.h"
00051 #include "FEDM_XmlBase.h"
00052
00053
00054 class FEDM_DataBase;
00055
00056
00057
00058
00059
00060 typedef struct _FEDM_XML_READER_CFG_PROFILE
00061 {
00062
00063 bool bCfgReset;
00064 bool bHasCustID;
00065 bool bHasRdrFunc;
00066 bool bHasTrpDrv;
00067 bool bHasFrequency;
00068 bool bHasRfcFw;
00069 bool bHasAccFw;
00070
00071 unsigned int uiCumstomerID;
00072 unsigned int uiReaderFunction;
00073 unsigned int uiTransponderDriver;
00074 unsigned int uiFrequency;
00075
00076 map<unsigned int, unsigned int> mapControllerFW;
00077
00078 void Init()
00079 {
00080 bCfgReset = false;
00081 bHasCustID = false;
00082 bHasRdrFunc = false;
00083 bHasTrpDrv = false;
00084 bHasFrequency = false;
00085 bHasRfcFw = false;
00086 bHasAccFw = false;
00087
00088 uiCumstomerID = 0;
00089 uiReaderFunction = 0;
00090 uiTransponderDriver = 0;
00091 uiFrequency = 0;
00092
00093 mapControllerFW.clear();
00094
00095 return;
00096 }
00097
00098 } FEDM_XML_READER_CFG_PROFILE;
00099
00100
00101
00102
00103
00104
00105 class _FEDM_ISC_CORE_EXT_CLASS FEDM_XMLReaderCfgProfileModul : public FEDM_XMLBase
00106 {
00107 public:
00108
00109 FEDM_XMLReaderCfgProfileModul();
00110 ~FEDM_XMLReaderCfgProfileModul();
00111
00112
00113 int SerializeIn(FEDM_DataBase* pReader, char* sFileName);
00114 int SerializeOut(FEDM_DataBase* pReader, char* sFileName);
00115
00116
00117 int QueryDocType(char* sFileName, char* sDocType);
00118 int QueryDocVersion(char* sFileName, char* sDocVersion);
00119 int QueryReaderType(char* sFileName);
00120
00121
00122 void GetComment(string& sComment);
00123 void SetComment(string sComment);
00124
00125
00126 FEDM_XML_READER_CFG_PROFILE m_ReaderRequirement;
00127
00128 protected:
00129
00130
00131 wstring m_wsDocType;
00132 wstring m_wsDocVer;
00133 wstring m_wsComment;
00134 wstring m_wsFedmVer;
00135 wstring m_wsDate;
00136 wstring m_wsTime;
00137 };
00138
00139 #endif // #ifdef _FEDM_XML_SUPPORT
00140
00141 #endif // !defined(_FEDM_XML_READER_CFG_PROFILE_MODUL_H_INCLUDED_)