Xml reader. More...
Xml reader.
Public Member Methods | |
| XmlReader (Stream &stream) | |
| Constructor. More... | |
| XmlReader (TextReader &reader) | |
| Constructor. More... | |
| virtual | ~XmlReader () |
| Destructor. More... | |
| bool | IsOpenMarkup () |
| Query if the next element to read is an open markup. More... | |
| bool | IsOpenMarkup (PCChar8 markup) |
| Query if the next element to read is an open markup with the name 'markup'. More... | |
| bool | PeekOpenMarkup (String &markup) |
| Peek open markup. More... | |
| bool | IsCloseMarkup () |
| Query if the next element to read is a close markup. More... | |
| bool | IsCloseMarkup (PCChar8 markup) |
| Query if the next element to read is a close markup with the name 'markup'. More... | |
| void | PeekCloseMarkup (String &markup) |
| Peek close markup. More... | |
| bool | ReadOpenMarkup (PCChar8 markup) |
| Reads an open markup. More... | |
| void | ReadCloseMarkup (PCChar8 markup) |
| Reads a close markup. Throw exception on failure. More... | |
| void | ReadInnerValue (BaseStaticString &value) |
| Reads a inner value. Throw exception if Markup wasn't Read. More... | |
| void | ReadValue (PCChar8 markup, BaseStaticString &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, IStringConvertible &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, bool &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, Int16 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, UInt16 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, Int32 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, UInt32 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, Int64 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, UInt64 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, Float32 &value) |
| Reads a value. Throw exception on failure. More... | |
| void | ReadValue (PCChar8 markup, Float64 &value) |
| Reads a value. Throw exception on failure. More... | |
| bool | EndOfStream () |
| Query if end an of stream reached. More... | |
| TextReader & | GetTextReader () |
| Gets the text reader. More... | |
| XmlReader | ( | TextReader & | reader | ) |
Constructor.
| reader | [in,out] The reader. |
|
inlinevirtual |
Destructor.
| bool EndOfStream | ( | ) |
Query if end an of stream reached.
| TextReader& GetTextReader | ( | ) |
Gets the text reader.
| bool IsCloseMarkup | ( | ) |
Query if the next element to read is a close markup.
| bool IsCloseMarkup | ( | PCChar8 | markup | ) |
Query if the next element to read is a close markup with the name 'markup'.
| markup | The markup name. |
| bool IsOpenMarkup | ( | ) |
Query if the next element to read is an open markup.
| bool IsOpenMarkup | ( | PCChar8 | markup | ) |
Query if the next element to read is an open markup with the name 'markup'.
| markup | The markup name. |
| void PeekCloseMarkup | ( | String & | markup | ) |
Peek close markup.
| markup | [in,out] The markup name. |
| bool PeekOpenMarkup | ( | String & | markup | ) |
Peek open markup.
| markup | [in,out] The markup name. |
| void ReadCloseMarkup | ( | PCChar8 | markup | ) |
Reads a close markup. Throw exception on failure.
| markup | The markup name. |
| void ReadInnerValue | ( | BaseStaticString & | value | ) |
Reads a inner value. Throw exception if Markup wasn't Read.
| value | [in,out] The value. |
| bool ReadOpenMarkup | ( | PCChar8 | markup | ) |
Reads an open markup.
| markup | The markup name. |
| void ReadValue | ( | PCChar8 | markup, |
| BaseStaticString & | value | ||
| ) |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
| void ReadValue | ( | PCChar8 | markup, |
| IStringConvertible & | value | ||
| ) |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
| void ReadValue | ( | PCChar8 | markup, |
| bool & | value | ||
| ) |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |
Reads a value. Throw exception on failure.
| markup | The markup name. |
| value | [in,out] The value. |