|
lsst.astshim gf5dcc679e7+7aca86229d
|
File-based source or sink (not both) for channels. More...
#include <Stream.h>
Public Member Functions | |
| FileStream (std::string const &path, bool doWrite=false) | |
| Construct a FileStream for reading or writing, but not both. | |
| virtual | ~FileStream () |
| std::string | getPath () const |
| Get the path to the file, as a string. | |
| 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? | |
|
inlineexplicit |
Construct a FileStream for reading or writing, but not both.
| [in] | path | Path to file as a string |
| [in] | doWrite | If true then write to the file, otherwise read from the file |
|
inlineinherited |
|
inline |
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Sink (write) to the stream.
| [in] | cstr | data to write; a newline is then written if _isFits false |
|
inlineinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |