Class Reference for E1039 Core & Analysis Software
NMRSignal.h
Go to the documentation of this file.
1 #ifndef _NMR_SIGNAL__H_
2 #define _NMR_SIGNAL__H_
3 
4 class NMRSignal {
5  int m_evt_num;
6  std::vector<double> m_list_pt;
7 public:
8  NMRSignal() : m_evt_num(0) {;}
9  virtual ~NMRSignal() {;}
10 
11  void SetEventNum(const int evt_num) { m_evt_num = evt_num; }
12  int GetEventNum() const { return m_evt_num; }
13 
14  int GetNumPoint() { return m_list_pt.size(); }
15  double GetPoint(const int idx) { return m_list_pt[idx]; }
16 
17  void AddPoint(const double val) { m_list_pt.push_back(val); }
18  void ClearPoints() { m_list_pt.clear(); }
19 };
20 
21 #endif // _NMR_SIGNAL__H_
int GetEventNum() const
Definition: NMRSignal.h:12
void ClearPoints()
Definition: NMRSignal.h:18
void SetEventNum(const int evt_num)
Definition: NMRSignal.h:11
virtual ~NMRSignal()
Definition: NMRSignal.h:9
void AddPoint(const double val)
Definition: NMRSignal.h:17
double GetPoint(const int idx)
Definition: NMRSignal.h:15
NMRSignal()
Definition: NMRSignal.h:8
int GetNumPoint()
Definition: NMRSignal.h:14