LSSTApplications
20.0.0
LSSTDataManagementBasePackage
|
String-based source and sink for channels. More...
#include <Stream.h>
Public Member Functions | |
StringStream (std::string const &data="") | |
Construct a StringStream. More... | |
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... | |
bool | hasStdStream () |
Return true if this Stream has an input or output std::stream. More... | |
char const * | source () |
Source (read) from the stream. More... | |
bool | sink (char const *cstr) |
Sink (write) to the stream. More... | |
bool | getIsFits () const |
get isfits More... | |
Protected Member Functions | |
void | setIsFits (bool isFits) |
set isFits More... | |
Protected Attributes | |
std::shared_ptr< std::istream > | _istreamPtr |
input stream More... | |
std::shared_ptr< std::ostream > | _ostreamPtr |
output stream More... | |
std::string | _sourceStr |
string containing a local copy of sourced data, so source can return a char * that won't disappear right away More... | |
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 |
Definition at line 187 of file Stream.h.
|
inlinevirtual |
|
inlineinherited |
|
inline |
|
inline |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Sink (write) to the stream.
[in] | cstr | data to write; a newline is then written if _isFits false |
Definition at line 110 of file Stream.h.
|
inline |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |