VR-Forces 4.0.4 Class Documentation
include/vrfutil/baseXmlReader.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: baseXmlReader.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ** Created: 4/7/08 MEM
00008 *******************************************************************************/
00009 
00010 #ifndef baseXmlReader_H_
00011 #define baseXmlReader_H_
00012 
00016 
00019 
00020 #include <vlutil/vlString.h>
00021 #include <libxml/xmlreader.h>
00022 
00035 
00036 #include "vrfutil/vrfutilDefines.h"
00037 class DT_DLL_vrfutil DtBaseXmlReader
00038 {
00039 public:
00040 
00042    DtBaseXmlReader();
00043 
00044    DtBaseXmlReader(xmlNodePtr root, xmlNodePtr node);
00045 
00047    virtual ~DtBaseXmlReader();
00048    
00050    DtBaseXmlReader(const DtBaseXmlReader& node);
00051    
00053    DtBaseXmlReader& operator=(const DtBaseXmlReader& orig);
00054    
00059    virtual xmlNodePtr findNode(xmlNodePtr node, const char* nodeName);
00060 
00070    virtual xmlNodePtr findNode(xmlNodePtr node, const char* nodeName, 
00071       const char* attrName, const char *attrValue);
00072 
00082    virtual DtString getAttrValue(xmlNodePtr node, const char* attrname) const;
00083 
00089    virtual DtString getAtomicNodeValue(xmlNodePtr node, const char* nodeName);
00090 
00092    virtual void nextNode(xmlNodePtr& node);
00093 
00095    virtual xmlNodePtr getRootNode() { return myRootNode; };
00096 
00097 protected:
00098 
00099    xmlNodePtr myRootNode;
00100    xmlNodePtr myCurNode;
00101 
00105    virtual DtString getAtomicNodeValue(xmlNodePtr node) const;
00106 
00111    virtual xmlNodePtr getChildren(xmlNodePtr node) const;
00112 
00113 };
00114 
00115 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)