|
lsst.astshim
22.0.1+01bcf6a671
|
#include <Stream.h>
Public Member Functions | |
| StringStream (std::string const &data="") | |
| virtual | ~StringStream () |
| std::string | getSourceData () const |
| Get a copy of the text from the sink/output stream, without changing the stream. More... | |
| std::string | getSinkData () const |
| Get a copy of the text from the sink/output stream, without changing the stream. More... | |
| void | sinkToSource () |
| Move output/sink data to input/source. More... | |
Public Member Functions inherited from ast::Stream | |
| Stream (std::istream *istreamPtr, std::ostream *ostreamPtr) | |
| Stream () | |
| virtual | ~Stream () |
| Stream (Stream const &)=default | |
| Stream (Stream &&)=default | |
| Stream & | operator= (Stream const &)=default |
| Stream & | operator= (Stream &&)=default |
| bool | hasStdStream () |
| char const * | source () |
| bool | sink (char const *cstr) |
| bool | getIsFits () const |
| get isfits More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ast::Stream | |
| void | setIsFits (bool isFits) |
| set isFits More... | |
Protected Attributes inherited from ast::Stream | |
| std::shared_ptr< std::istream > | _istreamPtr |
| input stream More... | |
| std::shared_ptr< std::ostream > | _ostreamPtr |
| std::string | _sourceStr |
| bool | _isFits |
| is this a FITS stream? More... | |
String-based source and sink for channels
This sources from one stringstream and sinks to another. The data can be retrieved at any time, without affecting the stream, using getData.
|
inlineexplicit |
Construct a StringStream
| [in] | data | initial data for the source stream |
|
inlinevirtual |
|
inline |
Get a copy of the text from the sink/output stream, without changing the stream.
|
inline |
Get a copy of the text from the sink/output stream, without changing the stream.
|
inline |
Move output/sink data to input/source.