FEDM_XmlReaderCfgDataModul.h
Go to the documentation of this file.
00001 /*-------------------------------------------------------
00002 |                                                       |
00003 |              FEDM_XmlReaderCfgDataModul.h                 |
00004 |                                                       |
00005 ---------------------------------------------------------
00006 
00007 Copyright © 2000-2008   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                   :       23.04.2003
00018 Version                 :       03.00.00 / 16.04.2008 / 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_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         // serialization functions
00061         int SerializeIn(FEDM_DataBase* pReader, char* sFileName);
00062         int SerializeOut(FEDM_DataBase* pReader, char* sFileName);
00063 
00064         // query functions
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         // get/set functions
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         // file header
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;       // for TCP/IP
00098         wstring m_wsPort;       // for TCP/IP
00099         wstring m_wsDate;
00100         wstring m_wsTime;
00101         wstring m_wsCommMode;   // last communication mode
00102 };
00103 
00104 #endif // #ifdef _FEDM_XML_SUPPORT
00105 
00106 #endif // !defined(_FEDM_XMLREADERCFGDATAMODUL_H_INCLUDED_)


maggie_rfid_drivers
Author(s): Raul Perula-Martinez
autogenerated on Mon Sep 14 2015 03:05:30