lsst.astshim  20.0.0-2-gb780d76+d529cf1a41
Public Member Functions | List of all members
ast::FileStream Class Reference

#include <Stream.h>

Inheritance diagram for ast::FileStream:
ast::Stream

Public Member Functions

 FileStream (std::string const &path, bool doWrite=false)
 
virtual ~FileStream ()
 
std::string getPath () const
 Get the path to the file, as a string. More...
 
- Public Member Functions inherited from ast::Stream
 Stream (std::istream *istreamPtr, std::ostream *ostreamPtr)
 
 Stream ()
 
virtual ~Stream ()
 
 Stream (Stream const &)=default
 
 Stream (Stream &&)=default
 
Streamoperator= (Stream const &)=default
 
Streamoperator= (Stream &&)=default
 
bool hasStdStream ()
 
char const * source ()
 
bool sink (char const *cstr)
 
bool getIsFits () const
 get isfits More...
 

Additional Inherited Members

- Protected Member Functions inherited from ast::Stream
void setIsFits (bool isFits)
 set isFits More...
 
- Protected Attributes inherited from ast::Stream
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...
 

Detailed Description

File-based source or sink (not both) for channels

Constructor & Destructor Documentation

◆ FileStream()

ast::FileStream::FileStream ( std::string const &  path,
bool  doWrite = false 
)
inlineexplicit

Construct a FileStream for reading or writing, but not both

Parameters
[in]pathPath to file as a string
[in]doWriteIf true then write to the file, otherwise read from the file

◆ ~FileStream()

virtual ast::FileStream::~FileStream ( )
inlinevirtual

Member Function Documentation

◆ getPath()

std::string ast::FileStream::getPath ( ) const
inline

Get the path to the file, as a string.


The documentation for this class was generated from the following file: