Elaztek Developer Hub
Blamite Game Engine - Strings  00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
rapidxml::file< Ch > Class Template Reference

Represents data loaded from a file. More...

#include <rapidxml_utils.hpp>

Public Member Functions

 file (const char *filename)
 Loads file into the memory. More...
 
 file (std::basic_istream< Ch > &stream)
 Loads file into the memory. More...
 
Ch * data ()
 Gets file data. More...
 
const Ch * data () const
 Gets file data. More...
 
std::size_t size () const
 Gets file data size. More...
 

Detailed Description

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

Represents data loaded from a file.

Constructor & Destructor Documentation

◆ file() [1/2]

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.
+ Here is the call graph for this function:

◆ file() [2/2]

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

Member Function Documentation

◆ data() [1/2]

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

Gets file data.

Returns
Pointer to data of file.

◆ data() [2/2]

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

Gets file data.

Returns
Pointer to data of file.

◆ size()

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

Gets file data size.

Returns
Size of file data, in characters.
+ Here is the caller graph for this function:

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