VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
envXmlWriter.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 
10 
11 #ifndef envXmlWriter_H__
12 #define envXmlWriter_H__
13 
14 #include "envWriter.h"
15 #include <vlutil/vlString.h>
16 #include <libxml/xmlwriter.h>
17 
18 typedef struct _xmlTextWriter xmlTextWriter;
19 
20 #ifdef DtUSE_UTILITIES_NAMESPACE
21 namespace DtUSE_UTILITIES_NAMESPACE
22 {
23 #endif
24 
25 
28 {
29 public:
30 
32  DtEnvXMLWriter(const DtString& docType);
33 
35  DtEnvXMLWriter(const DtString& docType,const DtString& dtdFileName);
36 
38  virtual ~DtEnvXMLWriter();
39 
40  virtual void setIndentation(const DtString& str);
41 
43  virtual bool writeString(DtEnvironment& environment, DtString& target);
44 
46  virtual bool writeFile(DtEnvironment& environment,const DtString& filename);
47 
48 protected:
56 
58  xmlBufferPtr myXmlBuffer;
59 
60  virtual void writeRoot(xmlTextWriter* writer,DtEnvValueSP value);
61  virtual void writeValue(xmlTextWriter* writer,DtEnvValueSP value);
62 };
63 
64 #ifdef DtUSE_UTILITIES_NAMESPACE
65 }
66 #endif
67 
68 #endif

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)