FEDM_XmlReaderCfgProfileModul.h
Go to the documentation of this file.
00001 /*-------------------------------------------------------
00002 |                                                       |
00003 |              FEDM_XmlReaderCfgProfileModul.h          |
00004 |                                                       |
00005 ---------------------------------------------------------
00006 
00007 Copyright © 2007-2009   FEIG ELECTRONIC GmbH, All Rights Reserved.
00008                                                 Lange Strasse 4
00009                                                 D-35781 Weilburg
00010                                                 Federal Republic of Germany
00011                                                 phone    : +49 6471 31090
00012                                                 fax      : +49 6471 310999
00013                                                 e-mail   : obid-support@feig.de
00014                                                 Internet : http://www.feig.de
00015                                         
00016 Author                  :       Markus Hultsch
00017 Begin                   :       13.08.2007
00018 Version                 :       03.00.05 / 24.02.2009 / M. Hultsch
00019 
00020 Operation Systems       :       independent
00021 
00022 Function                        :       main class for XML document handler
00023                                                 
00024 Note                            :       this XML document handler is designed only for use
00025                                                 inside the class library FEDM !!
00026 
00027 
00028 Trademarks:
00029 -----------
00030 OBID®, OBID i-scan® and OBID myAXXESS® are registered Trademarks of FEIG ELECTRONIC GmbH
00031 Other Trademarks: see FEDM.h
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 // structure for XML Reader Profiling
00059 //#######################################################################################
00060 typedef struct _FEDM_XML_READER_CFG_PROFILE
00061 {
00062         // reader specification attributes
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 // main class for XML Reader Profiling
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         // serialization functions
00113         int SerializeIn(FEDM_DataBase* pReader, char* sFileName);
00114         int SerializeOut(FEDM_DataBase* pReader, char* sFileName);
00115 
00116         // query functions
00117         int QueryDocType(char* sFileName, char* sDocType);
00118         int QueryDocVersion(char* sFileName, char* sDocVersion);
00119         int QueryReaderType(char* sFileName);
00120 
00121         // get/set functions
00122         void GetComment(string& sComment);
00123         void SetComment(string sComment);
00124 
00125         // reader requirements
00126         FEDM_XML_READER_CFG_PROFILE     m_ReaderRequirement;
00127 
00128 protected:
00129 
00130         // file header
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_)


rfid_drivers
Author(s): Raul Perula-Martinez
autogenerated on Thu Apr 2 2015 03:06:13