lsst.astshim
22.0.0+dfc68d4d09
|
#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... | |
![]() | |
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 | |
![]() | |
void | setIsFits (bool isFits) |
set isFits More... | |
![]() | |
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.