![]() |
Rosetta
2021.16
|
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>

Public Member Functions | |
| StringResourceStream () | |
| StringResourceStream (std::string const &contents) | |
| template<class InputSource > | |
| StringResourceStream (InputSource &in_stream) | |
| Append a piece of data to the internal stringstream. More... | |
| ~StringResourceStream () override | |
| virtual void | fill (std::string const &contents) |
| Construct the stringstream from the given input string. More... | |
| std::istream & | stream () override |
| Give non-const access to the internal stringstream so that it can be used to construct a resource. More... | |
Public Member Functions inherited from basic::resource_manager::ResourceStream | |
| ~ResourceStream () override | |
Public Member Functions inherited from utility::VirtualBase | |
| VirtualBase ()=default | |
| Default constructor. More... | |
| virtual | ~VirtualBase ()=default |
| The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
| VirtualBase (VirtualBase const &)=default | |
| VirtualBase (VirtualBase &&)=default | |
| VirtualBase & | operator= (VirtualBase const &)=default |
| VirtualBase & | operator= (VirtualBase &&)=default |
Private Member Functions | |
| StringResourceStream (StringResourceStream const &src) | |
| This is private. The StringResourceStream shouldn't be copied. More... | |
Private Attributes | |
| std::stringstream | stream_ |
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.
| basic::resource_manager::locator::StringResourceStream::StringResourceStream | ( | ) |
If you use this constructor be sure to set the string before accessing the stream
| basic::resource_manager::locator::StringResourceStream::StringResourceStream | ( | std::string const & | contents | ) |
|
inline |
Append a piece of data to the internal stringstream.
References stream_.
|
private |
This is private. The StringResourceStream shouldn't be copied.
This is private. The StringResourceStream shouldn't be copied
|
overridedefault |
|
virtual |
Construct the stringstream from the given input string.
References stream_.
|
overridevirtual |
Give non-const access to the internal stringstream so that it can be used to construct a resource.
Implements basic::resource_manager::ResourceStream.
References stream_.
|
private |
Referenced by fill(), stream(), and StringResourceStream().
1.8.7