Represents a writer that provides a fast, non-cached, forward-only way of generating streams or files containing XML data that conforms to the W3C Extensible Markup Language (XML) 1.0 and the Namespaces in XML recommendations.
More...
|
ASPOSECPP_SHARED_API SharedPtr< IO::Stream > | get_BaseStream () |
| Returns the underlying stream object.
|
|
ASPOSECPP_SHARED_API bool | get_Namespaces () |
| Returns a value indicating whether to do namespace support.
|
|
ASPOSECPP_SHARED_API void | set_Namespaces (bool value) |
| Sets a value indicating whether to do namespace support.
|
|
ASPOSECPP_SHARED_API System::Xml::Formatting | get_Formatting () |
| Indicates how the output is formatted.
|
|
ASPOSECPP_SHARED_API void | set_Formatting (System::Xml::Formatting value) |
| Indicates how the output is formatted.
|
|
ASPOSECPP_SHARED_API int32_t | get_Indentation () |
| Returns how many IndentChars to write for each level in the hierarchy when XmlTextWriter::set_Formatting is set to Formatting::Indented.
|
|
ASPOSECPP_SHARED_API void | set_Indentation (int32_t value) |
| Sets how many IndentChars to write for each level in the hierarchy when XmlTextWriter::set_Formatting is set to Formatting::Indented.
|
|
ASPOSECPP_SHARED_API char16_t | get_IndentChar () |
| Returns which character to use for indenting when XmlTextWriter::set_Formatting is set to Formatting::Indented.
|
|
ASPOSECPP_SHARED_API void | set_IndentChar (char16_t value) |
| Sets which character to use for indenting when XmlTextWriter::set_Formatting is set to Formatting::Indented.
|
|
ASPOSECPP_SHARED_API char16_t | get_QuoteChar () |
| Returns which character to use to quote attribute values.
|
|
ASPOSECPP_SHARED_API void | set_QuoteChar (char16_t value) |
| Sets which character to use to quote attribute values.
|
|
ASPOSECPP_SHARED_API System::Xml::WriteState | get_WriteState () override |
| Returns the state of the writer.
|
|
ASPOSECPP_SHARED_API System::Xml::XmlSpace | get_XmlSpace () override |
| Returns an XmlSpace representing the current xml:space scope.
|
|
ASPOSECPP_SHARED_API String | get_XmlLang () override |
| Returns the current xml:lang scope.
|
|
ASPOSECPP_SHARED_API | XmlTextWriter (const SharedPtr< IO::Stream > &w, const SharedPtr< Text::Encoding > &encoding) |
| Creates an instance of the XmlTextWriter class using the specified stream and encoding.
|
|
ASPOSECPP_SHARED_API | XmlTextWriter (const String &filename, const SharedPtr< Text::Encoding > &encoding) |
| Creates an instance of the XmlTextWriter class using the specified file.
|
|
ASPOSECPP_SHARED_API | XmlTextWriter (const SharedPtr< IO::TextWriter > &w) |
| Creates an instance of the XmlTextWriter class using the specified TextWriter.
|
|
ASPOSECPP_SHARED_API void | WriteStartDocument () override |
| Writes the XML declaration with the version "1.0".
|
|
ASPOSECPP_SHARED_API void | WriteStartDocument (bool standalone) override |
| Writes the XML declaration with the version "1.0" and the standalone attribute.
|
|
ASPOSECPP_SHARED_API void | WriteEndDocument () override |
| Closes any open elements or attributes and puts the writer back in the Start state.
|
|
ASPOSECPP_SHARED_API void | WriteDocType (const String &name, const String &pubid, const String &sysid, const String &subset) override |
| Writes the DOCTYPE declaration with the specified name and optional attributes.
|
|
ASPOSECPP_SHARED_API void | WriteStartElement (const String &prefix, const String &localName, const String &ns) override |
| Writes the specified start tag and associates it with the given namespace and prefix.
|
|
ASPOSECPP_SHARED_API void | WriteEndElement () override |
| Closes one element and pops the corresponding namespace scope.
|
|
ASPOSECPP_SHARED_API void | WriteFullEndElement () override |
| Closes one element and pops the corresponding namespace scope.
|
|
ASPOSECPP_SHARED_API void | WriteStartAttribute (const String &prefix, const String &localName, const String &ns) override |
| Writes the start of an attribute.
|
|
ASPOSECPP_SHARED_API void | WriteEndAttribute () override |
| Closes the previous XmlTextWriter::WriteStartAttribute call.
|
|
ASPOSECPP_SHARED_API void | WriteCData (String text) override |
| Writes out a ... block containing the specified text.
|
|
ASPOSECPP_SHARED_API void | WriteComment (String text) override |
| Writes out a comment containing the specified text.
|
|
ASPOSECPP_SHARED_API void | WriteProcessingInstruction (String name, String text) override |
| Writes out a processing instruction with a space between the name and text as follows: <?name text?> .
|
|
ASPOSECPP_SHARED_API void | WriteEntityRef (const String &name) override |
| Writes out an entity reference as &name ;.
|
|
ASPOSECPP_SHARED_API void | WriteCharEntity (char16_t ch) override |
| Forces the generation of a character entity for the specified Unicode character value.
|
|
ASPOSECPP_SHARED_API void | WriteWhitespace (String ws) override |
| Writes out the given white space.
|
|
ASPOSECPP_SHARED_API void | WriteString (const String &text) override |
| Writes the given text content.
|
|
ASPOSECPP_SHARED_API void | WriteSurrogateCharEntity (char16_t lowChar, char16_t highChar) override |
| Generates and writes the surrogate character entity for the surrogate character pair.
|
|
ASPOSECPP_SHARED_API void | WriteChars (ArrayPtr< char16_t > buffer, int32_t index, int32_t count) override |
| Writes text one buffer at a time.
|
|
ASPOSECPP_SHARED_API void | WriteRaw (ArrayPtr< char16_t > buffer, int32_t index, int32_t count) override |
| Writes raw markup manually from a character buffer.
|
|
ASPOSECPP_SHARED_API void | WriteRaw (const String &data) override |
| Writes raw markup manually from a string.
|
|
ASPOSECPP_SHARED_API void | WriteBase64 (ArrayPtr< uint8_t > buffer, int32_t index, int32_t count) override |
| Encodes the specified binary bytes as base64 and writes out the resulting text.
|
|
ASPOSECPP_SHARED_API void | WriteBinHex (ArrayPtr< uint8_t > buffer, int32_t index, int32_t count) override |
| Encodes the specified binary bytes as binhex and writes out the resulting text.
|
|
ASPOSECPP_SHARED_API void | Close () override |
| Closes this stream and the underlying stream.
|
|
ASPOSECPP_SHARED_API void | Flush () override |
| Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream.
|
|
ASPOSECPP_SHARED_API void | WriteName (const String &name) override |
| Writes out the specified name, ensuring it is a valid name according to the W3C XML 1.0 recommendation.
|
|
ASPOSECPP_SHARED_API void | WriteQualifiedName (const String &localName, const String &ns) override |
| Writes out the namespace-qualified name. This method looks up the prefix that is in scope for the given namespace.
|
|
ASPOSECPP_SHARED_API String | LookupPrefix (String ns) override |
| Returns the closest prefix defined in the current namespace scope for the namespace URI.
|
|
ASPOSECPP_SHARED_API void | WriteNmToken (const String &name) override |
| Writes out the specified name, ensuring it is a valid NmToken according to the W3C XML 1.0 recommendation.
|
|
virtual ASPOSECPP_SHARED_API SharedPtr< XmlWriterSettings > | get_Settings () |
| Returns the XmlWriterSettings object used to create this XmlWriter instance.
|
|
ASPOSECPP_SHARED_API void | WriteStartElement (const String &localName, const String &ns) |
| When overridden in a derived class, writes the specified start tag and associates it with the given namespace.
|
|
ASPOSECPP_SHARED_API void | WriteStartElement (const String &localName) |
| When overridden in a derived class, writes out a start tag with the specified local name.
|
|
ASPOSECPP_SHARED_API void | WriteAttributeString (const String &localName, const String &ns, const String &value) |
| When overridden in a derived class, writes an attribute with the specified local name, namespace URI, and value.
|
|
ASPOSECPP_SHARED_API void | WriteAttributeString (const String &localName, const String &value) |
| When overridden in a derived class, writes out the attribute with the specified local name and value.
|
|
ASPOSECPP_SHARED_API void | WriteAttributeString (const String &prefix, const String &localName, const String &ns, const String &value) |
| When overridden in a derived class, writes out the attribute with the specified prefix, local name, namespace URI, and value.
|
|
ASPOSECPP_SHARED_API void | WriteStartAttribute (const String &localName, const String &ns) |
| Writes the start of an attribute with the specified local name and namespace URI.
|
|
ASPOSECPP_SHARED_API void | WriteStartAttribute (const String &localName) |
| Writes the start of an attribute with the specified local name.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (SharedPtr< Object > value) |
| Writes the object value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (const String &value) |
| Writes a String value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (bool value) |
| Writes a Boolean value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (DateTime value) |
| Writes a DateTime value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (DateTimeOffset value) |
| Writes a DateTimeOffset value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (double value) |
| Writes a Double value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (float value) |
| Writes a single-precision floating-point number.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (Decimal value) |
| Writes a Decimal value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (int32_t value) |
| Writes a Int32 value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteValue (int64_t value) |
| Writes a Int64 value.
|
|
virtual ASPOSECPP_SHARED_API void | WriteAttributes (SharedPtr< XmlReader > reader, bool defattr) |
| When overridden in a derived class, writes out all the attributes found at the current position in the XmlReader.
|
|
virtual ASPOSECPP_SHARED_API void | WriteNode (SharedPtr< XmlReader > reader, bool defattr) |
| When overridden in a derived class, copies everything from the reader to the writer and moves the reader to the start of the next sibling.
|
|
virtual ASPOSECPP_SHARED_API void | WriteNode (SharedPtr< XPath::XPathNavigator > navigator, bool defattr) |
| Copies everything from the XPathNavigator object to the writer. The position of the XPathNavigator remains unchanged.
|
|
ASPOSECPP_SHARED_API void | WriteElementString (const String &localName, const String &value) |
| Writes an element with the specified local name and value.
|
|
ASPOSECPP_SHARED_API void | WriteElementString (const String &localName, const String &ns, const String &value) |
| Writes an element with the specified local name, namespace URI, and value.
|
|
ASPOSECPP_SHARED_API void | WriteElementString (const String &prefix, const String &localName, const String &ns, const String &value) |
| Writes an element with the specified prefix, local name, namespace URI, and value.
|
|
ASPOSECPP_SHARED_API void | Dispose () override |
| Releases all resources used by the current instance of the XmlWriter class.
|
|
ASPOSECPP_SHARED_API | Object () |
| Creates object. Initializes all internal data structures.
|
|
virtual ASPOSECPP_SHARED_API | ~Object () |
| Destroys object. Frees all internal data structures.
|
|
ASPOSECPP_SHARED_API | Object (Object const &x) |
| Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses.
|
|
Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses.
|
|
Object * | SharedRefAdded () |
| Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
int | SharedRefRemovedSafe () |
| Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
int | RemovedSharedRefs (int count) |
| Decreases shared reference count by specified value.
|
|
Detail::SmartPtrCounter * | WeakRefAdded () |
| Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
void | WeakRefRemoved () |
| Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector.
|
|
Detail::SmartPtrCounter * | GetCounter () |
| Gets reference counter data structure associated with the object.
|
|
int | SharedCount () const |
| Gets current value of shared reference counter.
|
|
ASPOSECPP_SHARED_API void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object.
|
|
ASPOSECPP_SHARED_API void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object.
|
|
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics.
|
|
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
|
|
virtual ASPOSECPP_SHARED_API String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string.
|
|
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types.
|
|
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call.
|
|
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.
|
|
virtual ASPOSECPP_SHARED_API void | SetTemplateWeakPtr (uint32_t argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode.
|
|
virtual ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only.
|
|
template<> |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
| Specialization of Object::ReferenceEquals for case of string and nullptr.
|
|
template<> |
bool | ReferenceEquals (String const &str1, String const &str2) |
| Specialization of Object::ReferenceEquals for case of strings.
|
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const String &outputFileName) |
| Creates a new XmlWriter instance using the specified filename.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const String &outputFileName, SharedPtr< XmlWriterSettings > settings) |
| Creates a new XmlWriter instance using the filename and XmlWriterSettings object.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::Stream > &output) |
| Creates a new XmlWriter instance using the specified stream.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::Stream > &output, SharedPtr< XmlWriterSettings > settings) |
| Creates a new XmlWriter instance using the stream and XmlWriterSettings object.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::TextWriter > &output) |
| Creates a new XmlWriter instance using the specified TextWriter.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< IO::TextWriter > &output, SharedPtr< XmlWriterSettings > settings) |
| Creates a new XmlWriter instance using the TextWriter and XmlWriterSettings objects.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< Text::StringBuilder > &output) |
| Creates a new XmlWriter instance using the specified Text::StringBuilder.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< Text::StringBuilder > &output, SharedPtr< XmlWriterSettings > settings) |
| Creates a new XmlWriter instance using the Text::StringBuilder and XmlWriterSettings objects.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< XmlWriter > &output) |
| Creates a new XmlWriter instance using the specified XmlWriter object.
|
|
static ASPOSECPP_SHARED_API SharedPtr< XmlWriter > | Create (const SharedPtr< XmlWriter > &output, SharedPtr< XmlWriterSettings > settings) |
| Creates a new XmlWriter instance using the specified XmlWriter and XmlWriterSettings objects.
|
|
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
| Compares objects by reference.
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
| Compares objects by reference.
|
|
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.
|
|
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.
|
|
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.
|
|
static const TypeInfo & | Type () |
| Implements C# typeof(System.Object) construct.
|
|
template<> |
bool | Equals (float const &objA, float const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
|
|
template<> |
bool | Equals (double const &objA, double const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN.
|
|