Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
FEDM_XmlParser_Base Class Reference

#include <FEDM_XmlParser_Base.h>

List of all members.

Public Member Functions

int AddTagAttrib (FEDM_XML_TREEITEM *item, wstring sAttrib, wstring sValue)
int AddTagItem (FEDM_XML_TREEITEM *pParent, FEDM_XML_TREEITEM *pChild)
int AddTagValue (FEDM_XML_TREEITEM *item, wstring sValue)
FEDM_XML_TREEITEM * BuildTag (wstring sTag, bool bNewLine=true, bool bEmpty=false)
int CloseDoc ()
void DeleteXmlTree ()
 FEDM_XmlParser_Base (unsigned int uiReaderType=FEDM_XML_PARSER_TYPE_TINY, unsigned int uiWriterType=FEDM_XML_PARSER_TYPE_FEDM)
FEDM_XML_TREEITEM * FindTag (wstring sTag, unsigned int uiTagLevel, bool bNext=false)
FEDM_XML_TREEITEM * FindTag (wstring sTag, wstring sAttribute, unsigned int uiTagLevel, bool bNext=false)
int GetLastError ()
int GetTagAttrib (FEDM_XML_TREEITEM *item, int iIndex, string &sAttrib, string &sValue)
bool IsParsed ()
int LoadDoc ()
int LoadDoc (const char *szOemRootTag)
int LoadStream (wstring sXmlStream)
int OpenDoc (char *sFileName, char *sMode)
int SerializeHeaderIn (FEDM_XML_TREEITEM *parent, const char *szVendor="")
int SerializeHeaderOut (FEDM_XML_TREEITEM *parent, const char *szVendor="")
virtual int SerializeIn (char *szXmlFileName, const char *szVendor, const char *szOemRootTag, char *szAccessCode, unsigned int uiAccessCodeLen)=0
virtual int SerializeOut (char *szXmlFileName, const char *szVendor, const char *szOemRootTag, char *szAccessCode, unsigned int uiAccessCodeLen)=0
void SetComment (wstring sComment)
void SetLastError (int iError)
void SetWriteMode (bool bMode)
int WriteDoc ()
wstring WriteStream ()
virtual ~FEDM_XmlParser_Base (void)

Public Attributes

FEDM_XML_HEADER m_XmlHeader

Protected Member Functions

unsigned int CalcCRC16CheckSum (unsigned int uiCrcPreset, unsigned int uiData)
unsigned int CalcCRC16CheckSum (unsigned int uiCrcPreset, unsigned char *ucBuffer, unsigned int uiBufLen)

Protected Attributes

bool m_bIsParsed
bool m_bWriteMode
int m_iLastError
FEDM_XmlParser_Readerm_pXmlReader
FEDM_XmlParser_Writerm_pXmlWriter
char m_szAccessCode [FEDM_MAX_NAME_SIZE]
unsigned int m_uiAccessCodeLen

Detailed Description

Definition at line 54 of file FEDM_XmlParser_Base.h.


Constructor & Destructor Documentation

FEDM_XmlParser_Base::FEDM_XmlParser_Base ( unsigned int  uiReaderType = FEDM_XML_PARSER_TYPE_TINY,
unsigned int  uiWriterType = FEDM_XML_PARSER_TYPE_FEDM 
)

Definition at line 40 of file FEDM_XmlParser_Base.cpp.

Definition at line 68 of file FEDM_XmlParser_Base.cpp.


Member Function Documentation

int FEDM_XmlParser_Base::AddTagAttrib ( FEDM_XML_TREEITEM *  item,
wstring  sAttrib,
wstring  sValue 
)

Definition at line 294 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::AddTagItem ( FEDM_XML_TREEITEM *  pParent,
FEDM_XML_TREEITEM *  pChild 
)

Definition at line 243 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::AddTagValue ( FEDM_XML_TREEITEM *  item,
wstring  sValue 
)

Definition at line 289 of file FEDM_XmlParser_Base.cpp.

FEDM_XML_TREEITEM * FEDM_XmlParser_Base::BuildTag ( wstring  sTag,
bool  bNewLine = true,
bool  bEmpty = false 
)

Definition at line 284 of file FEDM_XmlParser_Base.cpp.

unsigned int FEDM_XmlParser_Base::CalcCRC16CheckSum ( unsigned int  uiCrcPreset,
unsigned int  uiData 
) [protected]

Definition at line 130 of file FEDM_XmlParser_Base.cpp.

unsigned int FEDM_XmlParser_Base::CalcCRC16CheckSum ( unsigned int  uiCrcPreset,
unsigned char *  ucBuffer,
unsigned int  uiBufLen 
) [protected]

Definition at line 157 of file FEDM_XmlParser_Base.cpp.

Definition at line 202 of file FEDM_XmlParser_Base.cpp.

Definition at line 235 of file FEDM_XmlParser_Base.cpp.

FEDM_XML_TREEITEM * FEDM_XmlParser_Base::FindTag ( wstring  sTag,
unsigned int  uiTagLevel,
bool  bNext = false 
)

Definition at line 256 of file FEDM_XmlParser_Base.cpp.

FEDM_XML_TREEITEM * FEDM_XmlParser_Base::FindTag ( wstring  sTag,
wstring  sAttribute,
unsigned int  uiTagLevel,
bool  bNext = false 
)

Definition at line 263 of file FEDM_XmlParser_Base.cpp.

Definition at line 63 of file FEDM_XmlParser_Base.h.

int FEDM_XmlParser_Base::GetTagAttrib ( FEDM_XML_TREEITEM *  item,
int  iIndex,
string &  sAttrib,
string &  sValue 
)

Definition at line 271 of file FEDM_XmlParser_Base.cpp.

bool FEDM_XmlParser_Base::IsParsed ( ) [inline]

Definition at line 65 of file FEDM_XmlParser_Base.h.

Definition at line 208 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::LoadDoc ( const char *  szOemRootTag)

Definition at line 214 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::LoadStream ( wstring  sXmlStream)

Definition at line 220 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::OpenDoc ( char *  sFileName,
char *  sMode 
)

Definition at line 187 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::SerializeHeaderIn ( FEDM_XML_TREEITEM *  parent,
const char *  szVendor = "" 
)

Definition at line 93 of file FEDM_XmlParser_Base.cpp.

int FEDM_XmlParser_Base::SerializeHeaderOut ( FEDM_XML_TREEITEM *  parent,
const char *  szVendor = "" 
)

Definition at line 110 of file FEDM_XmlParser_Base.cpp.

virtual int FEDM_XmlParser_Base::SerializeIn ( char *  szXmlFileName,
const char *  szVendor,
const char *  szOemRootTag,
char *  szAccessCode,
unsigned int  uiAccessCodeLen 
) [pure virtual]
virtual int FEDM_XmlParser_Base::SerializeOut ( char *  szXmlFileName,
const char *  szVendor,
const char *  szOemRootTag,
char *  szAccessCode,
unsigned int  uiAccessCodeLen 
) [pure virtual]
void FEDM_XmlParser_Base::SetComment ( wstring  sComment)

Definition at line 299 of file FEDM_XmlParser_Base.cpp.

void FEDM_XmlParser_Base::SetLastError ( int  iError) [inline]

Definition at line 62 of file FEDM_XmlParser_Base.h.

void FEDM_XmlParser_Base::SetWriteMode ( bool  bMode) [inline]

Definition at line 67 of file FEDM_XmlParser_Base.h.

Definition at line 226 of file FEDM_XmlParser_Base.cpp.

Definition at line 230 of file FEDM_XmlParser_Base.cpp.


Member Data Documentation

Definition at line 130 of file FEDM_XmlParser_Base.h.

Definition at line 132 of file FEDM_XmlParser_Base.h.

Definition at line 131 of file FEDM_XmlParser_Base.h.

Definition at line 139 of file FEDM_XmlParser_Base.h.

Definition at line 140 of file FEDM_XmlParser_Base.h.

char FEDM_XmlParser_Base::m_szAccessCode[FEDM_MAX_NAME_SIZE] [protected]

Definition at line 135 of file FEDM_XmlParser_Base.h.

unsigned int FEDM_XmlParser_Base::m_uiAccessCodeLen [protected]

Definition at line 136 of file FEDM_XmlParser_Base.h.

Definition at line 127 of file FEDM_XmlParser_Base.h.


The documentation for this class was generated from the following files:


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