VR-Link API Documentation for DIS
envXMLReader.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00006 
00010 
00011 #ifndef envXMLReader_H_
00012 #define envXMLReader_H_
00013 
00014 #include "envReader.h"
00015 
00016 typedef struct _xmlTextReader xmlTextReader;
00017 
00018 #ifdef DtUSE_UTILITIES_NAMESPACE
00019 namespace DtUSE_UTILITIES_NAMESPACE
00020 {
00021 #endif
00022 
00023 
00026 class DT_DLL_MTL DtEnvXMLReader : public DtEnvReader
00027 {
00028 public:
00029 
00031    DtEnvXMLReader(bool useDtd = true);
00032 
00034    ~DtEnvXMLReader(){}
00035 
00037    virtual void useDtdValidation(bool useDtd = true);
00038 
00042    virtual DtEnvironment readFile(const DtString& filename,bool& success);
00043 
00046    virtual bool readMemory(DtEnvironment& environment,const char* memory,int size);
00047 
00048 protected:
00049    DtEnvironment* myCurrentEnvironment;
00050    DtEnvValueWP   myCurrentRoot;
00051    bool           myUseDTDFlag;
00052 
00053    virtual bool readDoc(xmlTextReader * reader);
00054    virtual void popRoot();
00055    virtual void processNode(xmlTextReader * reader);
00056    virtual void processElement(xmlTextReader * reader);
00057 };
00058 
00059 #ifdef DtUSE_UTILITIES_NAMESPACE
00060 }
00061 #endif
00062 
00063 #endif

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)