|
LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
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. More... | |
| virtual | ~FileStream () |
| std::string | getPath () const |
| Get the path to the file, as a string. 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... | |
|
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 |
Definition at line 150 of file Stream.h.
|
inlinevirtual |
|
inlineinherited |
|
inline |
|
inlineinherited |
Return true if this Stream has an input or output std::stream.
Definition at line 73 of file Stream.h.
|
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.
|
inlineinherited |
Source (read) from the stream.
Definition at line 84 of file Stream.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
1.8.13