Inherits System::IDisposable.
Inherited by System::Xml::XmlTextWriter.
Public Types | |
typedef SharedPtr< XmlWriter > | Ptr |
An alias for shared pointer to an instance of this class. More... | |
![]() | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
typedef System::Details::SharedMembersType | shared_members_type |
structure to keep list of shared pointers contained in object. More... | |
Public Member Functions | |
virtual ASPOSECPP_SHARED_API WriteState | get_WriteState ()=0 |
Returns a value indicating the state of the current writer. More... | |
virtual ASPOSECPP_SHARED_API void | Close ()=0 |
Closes the write stream. More... | |
virtual ASPOSECPP_SHARED_API void | Flush ()=0 |
Flushes the content of the buffers to the underlying stream and also flushes the underlying stream. More... | |
virtual ASPOSECPP_SHARED_API void | WriteStartDocument ()=0 |
Writes an XML declaration with version "1.0". More... | |
virtual ASPOSECPP_SHARED_API void | WriteStartDocument (bool standalone)=0 |
virtual ASPOSECPP_SHARED_API void | WriteStartElement (String localName)=0 |
virtual ASPOSECPP_SHARED_API void | WriteStartElement (String localName, String ns)=0 |
virtual ASPOSECPP_SHARED_API void | WriteStartElement (String prefix, String localName, String ns)=0 |
virtual ASPOSECPP_SHARED_API void | WriteAttributeString (String localName, String value)=0 |
virtual ASPOSECPP_SHARED_API void | WriteStartAttribute (String localName)=0 |
virtual ASPOSECPP_SHARED_API void | WriteStartAttribute (String localName, String ns)=0 |
virtual ASPOSECPP_SHARED_API void | WriteStartAttribute (String prefix, String localName, String ns)=0 |
virtual ASPOSECPP_SHARED_API void | WriteAttributeString (String localName, String ns, String value)=0 |
virtual ASPOSECPP_SHARED_API void | WriteAttributeString (String prefix, String localName, String ns, String value)=0 |
virtual ASPOSECPP_SHARED_API void | WriteAttributes (SharedPtr< XmlReader > reader, bool defattr)=0 |
virtual ASPOSECPP_SHARED_API void | WriteElementString (String localName, String value)=0 |
virtual ASPOSECPP_SHARED_API void | WriteElementString (String localName, String ns, String value)=0 |
virtual ASPOSECPP_SHARED_API void | WriteElementString (String prefix, String localName, String ns, String value)=0 |
virtual ASPOSECPP_SHARED_API void | WriteDocType (String name, String pubid, String sysid, String subset)=0 |
virtual ASPOSECPP_SHARED_API void | WriteCData (String text)=0 |
virtual ASPOSECPP_SHARED_API void | WriteComment (String text)=0 |
virtual ASPOSECPP_SHARED_API void | WriteProcessingInstruction (String name, String text)=0 |
virtual ASPOSECPP_SHARED_API void | WriteEntityRef (String name)=0 |
virtual ASPOSECPP_SHARED_API void | WriteCharEntity (char_t ch)=0 |
virtual ASPOSECPP_SHARED_API void | WriteChars (System::ArrayPtr< char16_t > buffer, int32_t index, int32_t count)=0 |
virtual ASPOSECPP_SHARED_API void | WriteString (String text)=0 |
virtual ASPOSECPP_SHARED_API void | WriteSurrogateCharEntity (char16_t lowChar, char16_t highChar)=0 |
virtual ASPOSECPP_SHARED_API void | WriteWhitespace (String ws)=0 |
virtual ASPOSECPP_SHARED_API void | WriteRaw (String text)=0 |
virtual ASPOSECPP_SHARED_API void | WriteRaw (ArrayPtr< char_t > buffer, int index, int count)=0 |
virtual ASPOSECPP_SHARED_API void | WriteBase64 (ArrayPtr< uint8_t > buffer, int index, int count)=0 |
virtual ASPOSECPP_SHARED_API void | WriteBinHex (ArrayPtr< uint8_t > buffer, int index, int count)=0 |
virtual ASPOSECPP_SHARED_API void | WriteEndAttribute ()=0 |
Closes the previous WriteStartAttribute(System::String) call. More... | |
virtual ASPOSECPP_SHARED_API void | WriteEndElement ()=0 |
virtual ASPOSECPP_SHARED_API void | WriteFullEndElement ()=0 |
Closes an element and pops the corresponding namespace scope. The full form of closing tag is used. More... | |
virtual ASPOSECPP_SHARED_API void | WriteEndDocument ()=0 |
Closes all open elements and attributes and puts the writer in the Start state. More... | |
virtual ASPOSECPP_SHARED_API String | LookupPrefix (String ns)=0 |
![]() | |
virtual void | Dispose () |
Does nothing. More... | |
![]() | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | Object (Object const &x) |
Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object & | operator= (Object const &x) |
Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More... | |
Object * | SharedRefAdded () |
Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | SharedRefRemovedSafe () |
Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
int | RemovedSharedRefs (int count) |
Decreases shared reference count by specified value. More... | |
Detail::SmartPtrCounter * | WeakRefAdded () |
Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
void | WeakRefRemoved () |
Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More... | |
Detail::SmartPtrCounter * | GetCounter () |
Gets reference counter data structure associated with the object. More... | |
int | SharedCount () const |
Gets current value of shared refernce counter. More... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (unsigned int argument) |
Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Static Public Member Functions | |
static ASPOSECPP_SHARED_API XmlWriter::Ptr | Create (const String &outputFileName) |
static ASPOSECPP_SHARED_API XmlWriter::Ptr | Create (const String &outputFileName, const SharedPtr< XmlWriterSettings > &settings) |
static ASPOSECPP_SHARED_API XmlWriter::Ptr | Create (const SharedPtr< System::IO::Stream > &stream, const SharedPtr< XmlWriterSettings > &settings=nullptr) |
static ASPOSECPP_SHARED_API XmlWriter::Ptr | Create (const SharedPtr< System::Text::StringBuilder > &builder, const SharedPtr< XmlWriterSettings > &settings) |
static ASPOSECPP_SHARED_API XmlWriter::Ptr | Create (const SharedPtr< System::IO::TextWriter > &text_writer) |
static ASPOSECPP_SHARED_API XmlWriter::Ptr | Create (const SharedPtr< System::IO::TextWriter > &text_writer, const SharedPtr< XmlWriterSettings > &settings) |
![]() | |
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
Compares objects by reference. More... | |
template<typename T > | |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
Reference-compares value type object with nullptr. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares reference type objects in C# style. More... | |
template<typename T1 , typename T2 > | |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
Compares value type objects in C# style. More... | |
static const TypeInfo & | Type () |
Impleemnts C# typeof(System.Object) construct. More... | |
Protected Member Functions | |
XmlWriter () | |
Constructs a new instance of XmlWriter class. More... | |
Represents a writer that provides a non-cached, forward-only way to generate XML data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
An alias for shared pointer to an instance of this class.
|
inlineprotected |
Constructs a new instance of XmlWriter class.
|
pure virtual |
Closes the write stream.
Implemented in System::Xml::XmlTextWriter.
|
static |
Constructs an instance of XmlWriter class and initializes it with the specified output file.
outputFileName | A filesystem path specifying a file to which the writer will write |
|
static |
Constructs an instance of XmlWriter class and initializes it with the specified output file and settings.
outputFileName | A filesystem path specifying a file to which the writer will write |
settings | The writer's settings |
|
static |
Constructs an instance of XmlWriter class and initializes it with the specified stream and settings.
stream | A stream to which the writer will write |
settings | The writer's settings |
|
static |
Constructs an instance of XmlWriter class and initializes it with the specified StringBuilder and settings.
builder | A StringBuilder to which the writer will write |
settings | The writer's settings |
|
static |
Constructs an instance of XmlWriter class and initializes it with the specified TextWriter.
text_writer | A TextWriter to which the writer will write |
|
static |
Constructs an instance of XmlWriter class and initializes it with the specified TextWriter and settings.
text_writer | A TextWriter to which the writer will write |
settings | The writer's settings |
|
pure virtual |
Flushes the content of the buffers to the underlying stream and also flushes the underlying stream.
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Returns a value indicating the state of the current writer.
Implemented in System::Xml::XmlTextWriter.
Gets the closest prefix defined in the current namespace scope for the specified namespace URI.
ns | The namespace URI |
ns
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out all the attributes found at the current position in the XmlReader.
reader | The XmlReader from which to copy the attributes. |
defattr | true to copy the default attributes from the XmlReader; otherwise, false. |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an attribute with the specified local name and value.
localName | The attribute's local name |
value | The attribute's value |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an attribute with the specified local name and value and associates it with the specified namespace.
localName | The attribute's local name |
ns | The namespace to associate the attribute with |
value | The attribute's value |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an attribute with the specified prefix, local name and value and associates it with the specified namespace.
prefix | The attribute's prefix |
localName | The attribute's local name |
ns | The namespace to associate the attribute with |
value | The attribute's value |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Base64-encodes the specified range of bytes in the specified byte array and writes out the resulting text.
buffer | A byte array |
index | A 0-based index of the element in the array at which the range to encode begins |
count | The number of elements in the range |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Encodes the specified range of bytes in the specifie array as BinHex and writes out the resulting text.
buffer | A byte array |
index | A 0-based index of the element in the array at which the range to encode begins |
count | The number of elements in the range |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a CData node.
text | The content of the node |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a character entity for the specified Unicode character value.
ch | Unicode character for which to generate a character entity. |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes text one buffer at a time
buffer | Character array containing the text to write. |
index | The position in the buffer indicating the start of the text to write. |
count | The number of characters to write. |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a comment node.
text | The content of the node |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a DOCTYPE declaration with the specified name and attributes.
name | The name of DOCTYPE declaration |
pubid | The public identifier of DOCTYPE declaration |
sysid | The system identifier of DOCTYPE declaration |
subset | The subset parameter of DOCTYPE declaration |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an element with the specified local name and value.
localName | The element's local name |
value | The element's value |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an element with the specified local name and value and associates it with the specified namespace.
localName | The element's local name |
ns | The namespace to associate the element with |
value | The element's value |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an element with the specified prefix, local name and value and associates it with the specified namespace.
prefix | The attribute's prefix |
localName | The element's local name |
ns | The namespace to associate the element with |
value | The element's value |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Closes the previous WriteStartAttribute(System::String) call.
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Closes all open elements and attributes and puts the writer in the Start state.
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Closes an element and pops the corresponding namespace scope. If the element is empty, the short form of the closing tag is used.
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out an entity reference as {ampersand}name;.
name | The name of the entity reference. |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Closes an element and pops the corresponding namespace scope. The full form of closing tag is used.
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a processing instruction with the specified name and text.
name | The name of the processing instruction |
text | The text to be added to the processing instruction |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the specified string content without escaping the special characters.
text | The text to write |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the specified range of characters without escaping the special characters.
buffer | The character array |
index | A 0-based index at which the range to write begins |
count | The number of characters in the range |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the start of an attribute with the specified local name.
localName | The attribute's local name |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the start of an attribute with the specified local name and namespace.
localName | The attribute's local name |
ns | The attribute's namespace |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the start of an attribute with the specified prefix, local name and namespace.
prefix | The attribute's prefix |
localName | The attribute's local name |
ns | The attribute's namespace |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes an XML declaration with version "1.0".
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes an XML declaration with version "1.0" and the 'standalone' attribute with the specified value.
standalone | The value of the 'standalone' attribute in the XML declaration |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a start tag of an element with the specified local name.
localName | The element's local name |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a start tag of an element with the specified local name and associates it with the specified namespace.
localName | The element's local name |
ns | The namespace to associate the element with |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes out a start tag of an element with the specified local name and prefix and associates it with the specified namespace.
prefix | The element's prefix |
localName | The element's local name |
ns | The namespace to associate the element with |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the specified text content.
text | The text to write |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Generates and writes the surrogate character entity for the surrogate character pair.
lowChar | The low surrogate.This must be a value between 0xDC00 and 0xDFFF. |
highChar | The high surrogate.This must be a value between 0xD800 and 0xDBFF. |
Implemented in System::Xml::XmlTextWriter.
|
pure virtual |
Writes the specified white spaces.
ws | The string with white space characters to write |
Implemented in System::Xml::XmlTextWriter.