file< Ch > Class Template Reference

Represents data loaded from a file. More...

#include <ArmarXCore/core/rapidxml/rapidxml_utils.hpp>

Public Member Functions

Ch * data ()
 Gets file data. More...
 
const Ch * data () const
 Gets file data. More...
 
 file (const char *filename)
 Loads file into the memory. More...
 
 file (std::basic_istream< Ch > &stream)
 Loads file into the memory. 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.

Definition at line 20 of file rapidxml_utils.hpp.

Constructor & Destructor Documentation

◆ file() [1/2]

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 27 of file rapidxml_utils.hpp.

+ Here is the call graph for this function:

◆ file() [2/2]

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 54 of file rapidxml_utils.hpp.

Member Function Documentation

◆ data() [1/2]

Ch* data ( )
inline

Gets file data.

Returns
Pointer to data of file.

Definition at line 72 of file rapidxml_utils.hpp.

◆ data() [2/2]

const Ch* data ( ) const
inline

Gets file data.

Returns
Pointer to data of file.

Definition at line 79 of file rapidxml_utils.hpp.

◆ size()

std::size_t size ( ) const
inline

Gets file data size.

Returns
Size of file data, in characters.

Definition at line 86 of file rapidxml_utils.hpp.

+ Here is the caller graph for this function:

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