Represents data loaded from a file. More...
#include <rapidxml_utils.hpp>
Public Member Functions | |
Ch * | data () |
const Ch * | data () const |
file (const char *filename) | |
file (std::basic_istream< Ch > &stream) | |
std::size_t | size () const |
Private Attributes | |
std::vector< Ch > | m_data |
Represents data loaded from a file.
Definition at line 21 of file rapidxml_utils.hpp.
rapidxml::file< Ch >::file | ( | const char * | filename | ) | [inline] |
Loads file into the memory. Data will be automatically destroyed by the destructor.
filename | Filename to load. |
Definition at line 28 of file rapidxml_utils.hpp.
rapidxml::file< Ch >::file | ( | std::basic_istream< Ch > & | stream | ) | [inline] |
Loads file into the memory. Data will be automatically destroyed by the destructor
stream | Stream to load from |
Definition at line 51 of file rapidxml_utils.hpp.
Ch* rapidxml::file< Ch >::data | ( | ) | [inline] |
const Ch* rapidxml::file< Ch >::data | ( | ) | const [inline] |
std::size_t rapidxml::file< Ch >::size | ( | ) | const [inline] |
Gets file data size.
Definition at line 79 of file rapidxml_utils.hpp.
std::vector<Ch> rapidxml::file< Ch >::m_data [private] |
Definition at line 86 of file rapidxml_utils.hpp.