The StringResourceStream is a wrapper class for a std::stringstream that can be used to construct a resource. Useful when reading the resource stream in to memory (e.g. from a database or from multiple files) before trying to construct the resource.
More...
#include <StringResourceStream.hh>
The StringResourceStream is a wrapper class for a std::stringstream that can be used to construct a resource. Useful when reading the resource stream in to memory (e.g. from a database or from multiple files) before trying to construct the resource.
◆ StringResourceStream() [1/4]
basic::resource_manager::locator::StringResourceStream::StringResourceStream |
( |
| ) |
|
@detail If you use this constructor be sure to set the string before accessing the stream
◆ StringResourceStream() [2/4]
basic::resource_manager::locator::StringResourceStream::StringResourceStream |
( |
std::string const & |
contents | ) |
|
◆ StringResourceStream() [3/4]
template<class InputSource >
basic::resource_manager::locator::StringResourceStream::StringResourceStream |
( |
InputSource & |
in_stream | ) |
|
|
inline |
Append a piece of data to the internal stringstream.
References stream_.
◆ StringResourceStream() [4/4]
basic::resource_manager::locator::StringResourceStream::StringResourceStream |
( |
StringResourceStream const & |
src | ) |
|
|
private |
◆ ~StringResourceStream()
basic::resource_manager::locator::StringResourceStream::~StringResourceStream |
( |
| ) |
|
|
overridedefault |
◆ fill()
void basic::resource_manager::locator::StringResourceStream::fill |
( |
std::string const & |
contents | ) |
|
|
virtual |
Construct the stringstream from the given input string.
References stream_.
◆ stream()
istream & basic::resource_manager::locator::StringResourceStream::stream |
( |
| ) |
|
|
overridevirtual |
◆ stream_
std::stringstream basic::resource_manager::locator::StringResourceStream::stream_ |
|
private |
The documentation for this class was generated from the following files: