ngc 1.5.0
 
Loading...
Searching...
No Matches
ngc::core::ngcdcs::TsTable Class Reference

Timestamp binary table container class. More...

#include <ngcdcsTsTable.hpp>

Public Member Functions

 TsTable ()
 Constructor.
 
virtual ~TsTable ()
 Destructor.
 
 TsTable (TsTable &)=delete
 Disables unused constructors and operators.
 
 TsTable (TsTable &&)=delete
 
TsTableoperator= (TsTable &)=delete
 
void Add (int cnt, double ts)
 
void Clear ()
 Clear binary table container.
 
void Write (FILE *fd)
 
void Append (std::string filename)
 

Detailed Description

Timestamp binary table container class.

Constructor & Destructor Documentation

◆ TsTable() [1/3]

ngc::core::ngcdcs::TsTable::TsTable ( )

Constructor.

◆ ~TsTable()

ngc::core::ngcdcs::TsTable::~TsTable ( )
virtual

Destructor.

◆ TsTable() [2/3]

ngc::core::ngcdcs::TsTable::TsTable ( TsTable & )
delete

Disables unused constructors and operators.

◆ TsTable() [3/3]

ngc::core::ngcdcs::TsTable::TsTable ( TsTable && )
delete

Member Function Documentation

◆ Add()

void ngc::core::ngcdcs::TsTable::Add ( int cnt,
double ts )

Add entry to binary table container

Parameters
cntFrame counter
tsTimestamep

◆ Append()

void ngc::core::ngcdcs::TsTable::Append ( std::string filename)

Append binary table container as FITS extension to an existing file.

Parameters
filenameFull path to an existing FITS file
Exceptions
std::invalid_argumentif the filename is invalid
std::runtime_errorif the write failed

◆ Clear()

void ngc::core::ngcdcs::TsTable::Clear ( )

Clear binary table container.

◆ operator=()

TsTable & ngc::core::ngcdcs::TsTable::operator= ( TsTable & )
delete

◆ Write()

void ngc::core::ngcdcs::TsTable::Write ( FILE * fd)

Write binary table container as FITS extension to an open stream. If the write operation failes, the original file postion is restored.

Parameters
fdFile descriptor opened for writing
Exceptions
std::runtime_errorif the write failed

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