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

Represents data loaded from a file. More...

#include <rapidxml_utils.hpp>

Public Member Functions

 file (const char *filename)
 
 file (std::basic_istream< Ch > &stream)
 
Ch * data ()
 
const Ch * data () const
 
std::size_t size () const
 

Private Attributes

std::vector< Ch > m_data
 

Detailed Description

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

Represents data loaded from a file.

Constructor & Destructor Documentation

◆ file() [1/2]

template<class Ch = char>
cereal::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.

◆ file() [2/2]

template<class Ch = char>
cereal::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

Member Function Documentation

◆ data() [1/2]

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

Gets file data.

Returns
Pointer to data of file.

◆ data() [2/2]

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

Gets file data.

Returns
Pointer to data of file.

◆ size()

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

Gets file data size.

Returns
Size of file data, in characters.

Member Data Documentation

◆ m_data

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

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