source: branches/polybatch/src/STFitEntry.h@ 2154

Last change on this file since 2154 was 1924, checked in by Malte Marquarding, 14 years ago

Ticket #206: use STFitEntry as return objetc instead of pointer wrnagling.

File size: 1.6 KB
RevLine 
[955]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();
[972]28 STFitEntry(const STFitEntry& other);
29
[1924]30 STFitEntry& operator=(const STFitEntry& other);
31
[955]32 ~STFitEntry();
[972]33
[955]34 void setFunctions(const std::vector<std::string>& f)
35 { functions_ = f; }
36 void setComponents(const std::vector<int>& c)
37 { components_ = c; }
[1924]38 void setParameters(const std::vector<float>& p)
[955]39 { parameters_ = p; }
[1924]40 void setErrors(const std::vector<float>& p)
41 { errors_ = p; }
[955]42 void setParmasks(const std::vector<bool>& m)
43 { parmasks_ = m; }
44 void setFrameinfo(const std::vector<std::string>& f)
45 { frameinfo_ = f; }
[960]46 std::vector<std::string> getFunctions() const { return functions_; }
47 std::vector<int> getComponents() const { return components_; }
[1924]48 std::vector<float> getParameters() const { return parameters_; }
49 std::vector<float> getErrors() const { return errors_; }
[960]50 std::vector<bool> getParmasks() const { return parmasks_; }
51 std::vector<std::string> getFrameinfo() const { return frameinfo_; }
[955]52
53private:
[1924]54
[960]55 std::vector<std::string> functions_;
56 std::vector<int> components_;
[1924]57 std::vector<float> parameters_;
58 std::vector<float> errors_;
[960]59 std::vector<bool> parmasks_;
60 std::vector<std::string> frameinfo_;
[955]61};
62
63}
64
65#endif
Note: See TracBrowser for help on using the repository browser.