|
lsst.astshim gf5dcc679e7+7aca86229d
|
A stream for ast::Channel. More...
#include <Stream.h>
Public Member Functions | |
| Stream (std::istream *istreamPtr, std::ostream *ostreamPtr) | |
| Construct a Stream from input and output std::streams. | |
| Stream () | |
| virtual | ~Stream () |
| Stream (Stream const &)=default | |
| Stream (Stream &&)=default | |
| Stream & | operator= (Stream const &)=default |
| Stream & | operator= (Stream &&)=default |
| bool | hasStdStream () |
| Return true if this Stream has an input or output std::stream. | |
| char const * | source () |
| Source (read) from the stream. | |
| bool | sink (char const *cstr) |
| Sink (write) to the stream. | |
| bool | getIsFits () const |
| get isfits | |
Protected Member Functions | |
| void | setIsFits (bool isFits) |
| set isFits | |
Protected Attributes | |
| std::shared_ptr< std::istream > | _istreamPtr |
| input stream | |
| std::shared_ptr< std::ostream > | _ostreamPtr |
| output stream | |
| std::string | _sourceStr |
| string containing a local copy of sourced data, so source can return a char * that won't disappear right away | |
| bool | _isFits |
| is this a FITS stream? | |
Friends | |
| class | Channel |
A stream for ast::Channel.
|
inlineexplicit |
|
default |
|
default |
|
inline |
|
inlineprotected |
|
inline |
Sink (write) to the stream.
| [in] | cstr | data to write; a newline is then written if _isFits false |
|
inline |
|
protected |
|
protected |
|
protected |