RTC Toolkit  2.0.0
Public Member Functions | Protected Member Functions | List of all members
FitsConverterIf Class Referenceabstract

#include <fitsConverterIf.hpp>

Inheritance diagram for FitsConverterIf:
GenericCamera LisaCamera

Public Member Functions

 FitsConverterIf (const std::string &directory, bool split_files)
 Construct a FITS converter. More...
 
virtual ~FitsConverterIf ()
 
virtual void WriteData (const PacketData &data)=0
 Write data into the FITS file(s) More...
 
void SetStoreSampleIds (bool store)
 Enable or disable storage of sample ids as keywords. More...
 
void SetStoreTimestamps (bool store)
 Enable or disable storage of timestamps as keywords. More...
 
bool GetStoreSampleIds ()
 Get current setting for storing sample ids as keywords. More...
 
bool GetStoreTimestamps ()
 Get current setting for storing timestamps as keywords. More...
 
bool GetSplitFiles ()
 Get the setting for splitting files. More...
 
const std::string & GetDirectory ()
 Get the setting for splitting files. More...
 

Protected Member Functions

const bool IsOpen ()
 
void Open (const std::string &file)
 
void Close ()
 
void SetFitsHandle (std::unique_ptr< CCfits::FITS > &&handle)
 
CCfits::FITS & GetFitsHandle ()
 

Constructor & Destructor Documentation

◆ FitsConverterIf()

FitsConverterIf::FitsConverterIf ( const std::string &  directory,
bool  split_files 
)

Construct a FITS converter.

Parameters
directorystring containing the path to the output directory
split_filesfalse: save all data in one file, true: split samples into extra files

◆ ~FitsConverterIf()

FitsConverterIf::~FitsConverterIf ( )
virtual

Member Function Documentation

◆ Close()

void FitsConverterIf::Close ( )
protected

◆ GetDirectory()

const std::string& FitsConverterIf::GetDirectory ( )
inline

Get the setting for splitting files.

Parameters
storeenable or disable timestamp storage

◆ GetFitsHandle()

CCfits::FITS & FitsConverterIf::GetFitsHandle ( )
protected

◆ GetSplitFiles()

bool FitsConverterIf::GetSplitFiles ( )
inline

Get the setting for splitting files.

Parameters
storeenable or disable timestamp storage

◆ GetStoreSampleIds()

bool FitsConverterIf::GetStoreSampleIds ( )
inline

Get current setting for storing sample ids as keywords.

Parameters
storeenable or disable sampleid storage

◆ GetStoreTimestamps()

bool FitsConverterIf::GetStoreTimestamps ( )
inline

Get current setting for storing timestamps as keywords.

Parameters
storeenable or disable timestamp storage

◆ IsOpen()

const bool FitsConverterIf::IsOpen ( )
inlineprotected

◆ Open()

void FitsConverterIf::Open ( const std::string &  file)
protected

◆ SetFitsHandle()

void FitsConverterIf::SetFitsHandle ( std::unique_ptr< CCfits::FITS > &&  handle)
protected

◆ SetStoreSampleIds()

void FitsConverterIf::SetStoreSampleIds ( bool  store)
inline

Enable or disable storage of sample ids as keywords.

Parameters
storeenable or disable sampleid storage

◆ SetStoreTimestamps()

void FitsConverterIf::SetStoreTimestamps ( bool  store)
inline

Enable or disable storage of timestamps as keywords.

Parameters
storeenable or disable timestamp storage

◆ WriteData()

virtual void FitsConverterIf::WriteData ( const PacketData data)
pure virtual

Write data into the FITS file(s)

Parameters
dataThe data to store in the fits file

Implemented in LisaCamera, and GenericCamera.


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