Microsoft Azure Storage Client Library for C++  7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
Public Member Functions | List of all members
azure::storage::core::xml::xml_text_reader_wrapper Class Reference

A class to wrap xmlTextReader of c library libxml2. This class provides abilities to read from xml format texts. More...

Public Member Functions

 xml_text_reader_wrapper (const unsigned char *buffer, unsigned int size)
 
bool read ()
 Moves to the next node in the stream. More...
 
unsigned get_node_type ()
 Gets the type of the current node. More...
 
bool is_empty_element ()
 Checks if current node is empty More...
 
std::string get_local_name ()
 Gets the local name of the node More...
 
std::string get_value ()
 Gets the value of the node More...
 
bool move_to_first_attribute ()
 Moves to the first attribute of the node. More...
 
bool move_to_next_attribute ()
 Moves to the next attribute of the node. More...
 

Detailed Description

A class to wrap xmlTextReader of c library libxml2. This class provides abilities to read from xml format texts.

Member Function Documentation

◆ get_local_name()

std::string azure::storage::core::xml::xml_text_reader_wrapper::get_local_name ( )

Gets the local name of the node

Returns
A string indicates the local name of this node

◆ get_node_type()

unsigned azure::storage::core::xml::xml_text_reader_wrapper::get_node_type ( )

Gets the type of the current node.

Returns
A integer that represent the type of the node

◆ get_value()

std::string azure::storage::core::xml::xml_text_reader_wrapper::get_value ( )

Gets the value of the node

Returns
A string value of the node

◆ is_empty_element()

bool azure::storage::core::xml::xml_text_reader_wrapper::is_empty_element ( )

Checks if current node is empty

Returns
True if current node is empty and false if otherwise

◆ move_to_first_attribute()

bool azure::storage::core::xml::xml_text_reader_wrapper::move_to_first_attribute ( )

Moves to the first attribute of the node.

Returns
True if the move is successful, false if empty

◆ move_to_next_attribute()

bool azure::storage::core::xml::xml_text_reader_wrapper::move_to_next_attribute ( )

Moves to the next attribute of the node.

Returns
True if the move is successful, false if empty

◆ read()

bool azure::storage::core::xml::xml_text_reader_wrapper::read ( )

Moves to the next node in the stream.

Returns
true if the node was read successfully and false if there are no more nodes to read