source: branches/Release2.0/src/STFitEntry.h@ 2090

Last change on this file since 2090 was 972, checked in by mar637, 19 years ago

Completed Ticket #7 - storing of fits.

File size: 1.4 KB
Line 
1//
2// C++ Interface: STFitEntry
3//
4// Description:
5//
6//
7// Author: Malte Marquarding <Malte.Marquarding@csiro.au>, (C) 2006
8//
9// Copyright: See COPYING file that comes with this distribution
10//
11//
12#ifndef ASAPSTFITENTRY_H
13#define ASAPSTFITENTRY_H
14
15#include <vector>
16#include <string>
17
18namespace asap {
19
20/**
21This is a helper object for transporting Fit parameters
22
23@author Malte Marquarding
24*/
25class STFitEntry{
26public:
27 STFitEntry();
28 STFitEntry(const STFitEntry& other);
29
30 ~STFitEntry();
31
32 void setFunctions(const std::vector<std::string>& f)
33 { functions_ = f; }
34 void setComponents(const std::vector<int>& c)
35 { components_ = c; }
36 void setParameters(const std::vector<double>& p)
37 { parameters_ = p; }
38 void setParmasks(const std::vector<bool>& m)
39 { parmasks_ = m; }
40 void setFrameinfo(const std::vector<std::string>& f)
41 { frameinfo_ = f; }
42
43 std::vector<std::string> getFunctions() const { return functions_; }
44 std::vector<int> getComponents() const { return components_; }
45 std::vector<double> getParameters() const { return parameters_; }
46 std::vector<bool> getParmasks() const { return parmasks_; }
47 std::vector<std::string> getFrameinfo() const { return frameinfo_; }
48
49private:
50 std::vector<std::string> functions_;
51 std::vector<int> components_;
52 std::vector<double> parameters_;
53 std::vector<bool> parmasks_;
54 std::vector<std::string> frameinfo_;
55};
56
57}
58
59#endif
Note: See TracBrowser for help on using the repository browser.