ngc 1.5.0
 
Loading...
Searching...
No Matches
ngcdcsTsTable.hpp
Go to the documentation of this file.
1
10
11#ifndef NGC_CORE_NGCDCS_TS_TABLE_H_
12#define NGC_CORE_NGCDCS_TS_TABLE_H_
13
14#include <string>
15#include <vector>
16#include <memory>
17#include <ngc/core/ngcbFITS.hpp>
18
20
25 class TsTable {
26 public:
28 TsTable();
29
31 virtual ~TsTable();
32
34 TsTable(TsTable&) = delete;
35 TsTable(TsTable&&) = delete;
37
43 void Add(int cnt, double ts);
44
46 void Clear();
47
54 void Write(FILE *fd);
55
62 void Append(std::string filename);
63
64 protected:
65
66 private:
68 std::vector<int> m_cnt;
69
71 std::vector<double> m_ts;
72
78 void CreateHeader(std::shared_ptr<ngcbFITS> hdr);
79
87 void WriteExtension(FILE *fd, std::shared_ptr<ngcbFITS> extension);
88 };
89
90}
91
92#endif /* NGC_CORE_NGCDCS_TS_TABLE_H_ */
93
TsTable & operator=(TsTable &)=delete
virtual ~TsTable()
Destructor.
Definition ngcdcsTsTable.cpp:19
TsTable()
Constructor.
Definition ngcdcsTsTable.cpp:17
void Write(FILE *fd)
Definition ngcdcsTsTable.cpp:117
void Clear()
Clear binary table container.
Definition ngcdcsTsTable.cpp:26
void Append(std::string filename)
Definition ngcdcsTsTable.cpp:140
TsTable(TsTable &)=delete
Disables unused constructors and operators.
TsTable(TsTable &&)=delete
void Add(int cnt, double ts)
Definition ngcdcsTsTable.cpp:21
Definition ngcdcsTsTable.hpp:19