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 25 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 46 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 59 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 63 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 67 of file rapidxml_utils.hpp.

Member Data Documentation

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

Definition at line 70 of file rapidxml_utils.hpp.


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


livox_ros_driver
Author(s): Livox Dev Team
autogenerated on Mon Mar 15 2021 02:40:46