Public Member Functions | Private Attributes | List of all members
rapidxml::file< Ch > Class Template Reference

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
 

Detailed Description

template<class Ch = char>
class rapidxml::file< Ch >

Represents data loaded from a file.

Definition at line 21 of file rapidxml_utils.hpp.

Constructor & Destructor Documentation

template<class Ch = char>
rapidxml::file< Ch >::file ( const char *  filename)
inline

Loads file into the memory. Data will be automatically destroyed by the destructor.

Parameters
filenameFilename to load.

Definition at line 28 of file rapidxml_utils.hpp.

template<class Ch = char>
rapidxml::file< Ch >::file ( std::basic_istream< Ch > &  stream)
inline

Loads file into the memory. Data will be automatically destroyed by the destructor

Parameters
streamStream to load from

Definition at line 51 of file rapidxml_utils.hpp.

Member Function Documentation

template<class Ch = char>
Ch* rapidxml::file< Ch >::data ( )
inline

Gets file data.

Returns
Pointer to data of file.

Definition at line 65 of file rapidxml_utils.hpp.

template<class Ch = char>
const Ch* rapidxml::file< Ch >::data ( ) const
inline

Gets file data.

Returns
Pointer to data of file.

Definition at line 72 of file rapidxml_utils.hpp.

template<class Ch = char>
std::size_t rapidxml::file< Ch >::size ( ) const
inline

Gets file data size.

Returns
Size of file data, in characters.

Definition at line 79 of file rapidxml_utils.hpp.

Member Data Documentation

template<class Ch = char>
std::vector<Ch> rapidxml::file< Ch >::m_data
private

Definition at line 86 of file rapidxml_utils.hpp.


The documentation for this class was generated from the following file:


asr_rapidxml
Author(s): Aumann Florian
autogenerated on Thu Dec 5 2019 03:14:37