Warning, file /include/opencascade/LDOM_XmlWriter.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef LDOM_XmlWriter_HeaderFile
0017 #define LDOM_XmlWriter_HeaderFile
0018
0019 #include <Standard_OStream.hxx>
0020 #include <Standard_TypeDef.hxx>
0021
0022 class LDOM_Document;
0023 class LDOM_Node;
0024 class LDOMBasicString;
0025
0026 class LDOM_XmlWriter
0027 {
0028 public:
0029 Standard_EXPORT LDOM_XmlWriter(const char* theEncoding = NULL);
0030
0031 Standard_EXPORT ~LDOM_XmlWriter();
0032
0033
0034 void SetIndentation(const Standard_Integer theIndent) { myIndent = theIndent; }
0035
0036 Standard_EXPORT void Write(Standard_OStream& theOStream, const LDOM_Document& theDoc);
0037
0038
0039
0040
0041 Standard_EXPORT void Write(Standard_OStream& theOStream, const LDOM_Node& theNode);
0042
0043 private:
0044 LDOM_XmlWriter(const LDOM_XmlWriter& anOther);
0045
0046 LDOM_XmlWriter& operator=(const LDOM_XmlWriter& anOther);
0047
0048 void Write(Standard_OStream& theOStream, const LDOMBasicString& theString);
0049 void Write(Standard_OStream& theOStream, const char* theString);
0050 void Write(Standard_OStream& theOStream, const char theChar);
0051
0052 void WriteAttribute(Standard_OStream& theOStream, const LDOM_Node& theAtt);
0053
0054 private:
0055 char* myEncodingName;
0056 Standard_Integer myIndent;
0057 Standard_Integer myCurIndent;
0058 char* myABuffer;
0059 Standard_Integer myABufferLen;
0060 };
0061
0062 #endif