VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
mtl
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
27
class
DT_DLL_MTL
DtEnvXMLWriter
:
public
DtEnvWriter
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
:
49
DtEnvironment
*
myCurrentEnvironment
;
50
DtEnvValueWP
myCurrentRoot
;
51
DtString
myDocType
;
52
DtString
myDtdFileName
;
53
bool
myUseDtdFlag
;
54
bool
myUseIndentation
;
55
DtString
myIndentString
;
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 Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)