SMORES Robot Platform Simulation
Modlab at Penn, ASL at Cornell
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
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
 

Detailed Description

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

Represents data loaded from a file.

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.
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

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

Gets file data.

Returns
Pointer to data of file.
template<class Ch = char>
const Ch* rapidxml::file< Ch >::data ( ) const
inline

Gets file data.

Returns
Pointer to data of file.
template<class Ch = char>
std::size_t rapidxml::file< Ch >::size ( ) const
inline

Gets file data size.

Returns
Size of file data, in characters.

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