musrWiz 0.1.0
Loading...
Searching...
No Matches
PTheoTemplate.h
Go to the documentation of this file.
1/***************************************************************************
2
3 PTheoTemplate.h
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8***************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2007-2026 by Andreas Suter *
12 * andreas.suter@psi.ch *
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program; if not, write to the *
26 * Free Software Foundation, Inc., *
27 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28 ***************************************************************************/
29
30#ifndef _PTHEOTEMPLATE_H_
31#define _PTHEOTEMPLATE_H_
32
33#include <QString>
34#include <QVector>
35
36#include "musrWiz.h"
37
39 public:
42
43 void init();
44
45 QString getName() { return fPreDefName; }
46 QString getTheory() { return fTheory; }
47 int getNoOfFunc() { return fFunc.size(); }
48 QString getFunc(int idx);
49 int getFuncNo(int idx);
50 int getNoOfMap() { return fMap.size(); }
51 PParam getMap(int idx);
52 int getNoOfParam() { return fParam.size(); }
53 PParam getParam(int idx);
54
55 void setName(QString str) { fPreDefName = str; }
56 void setTheory(QString str) { fTheory = str; }
57 void appendFunc(QString str);
58 void appendParam(PParam param);
59 void appendMap(PParam map);
60
61 private:
62 QString fPreDefName;
63 QString fTheory;
64 QVector<PParam> fParam;
65 QVector<QString> fFunc;
66 QVector<PParam> fMap;
67};
68
69#endif // _PTHEOTEMPLATE_H_
The PParam class handles a single fit parameter for the musrWiz application.
Definition musrWiz.h:42
QVector< PParam > fMap
Definition PTheoTemplate.h:66
QString fTheory
Definition PTheoTemplate.h:63
PTheoTemplate()
Definition PTheoTemplate.h:40
void appendMap(PParam map)
Definition PTheoTemplate.cpp:122
QString fPreDefName
Definition PTheoTemplate.h:62
int getNoOfMap()
Definition PTheoTemplate.h:50
void setTheory(QString str)
Definition PTheoTemplate.h:56
int getNoOfParam()
Definition PTheoTemplate.h:52
~PTheoTemplate()
Definition PTheoTemplate.h:41
QString getTheory()
Definition PTheoTemplate.h:46
PParam getParam(int idx)
Definition PTheoTemplate.cpp:97
QString getFunc(int idx)
Definition PTheoTemplate.cpp:49
int getNoOfFunc()
Definition PTheoTemplate.h:47
QVector< QString > fFunc
Definition PTheoTemplate.h:65
QString getName()
Definition PTheoTemplate.h:45
QVector< PParam > fParam
Definition PTheoTemplate.h:64
void setName(QString str)
Definition PTheoTemplate.h:55
void appendParam(PParam param)
Definition PTheoTemplate.cpp:140
int getFuncNo(int idx)
Definition PTheoTemplate.cpp:61
void appendFunc(QString str)
Definition PTheoTemplate.cpp:111
PParam getMap(int idx)
Definition PTheoTemplate.cpp:83
void init()
Definition PTheoTemplate.cpp:36