forked from Slicer/SlicerExecutionModel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModuleParameterGroup.h
81 lines (59 loc) · 1.9 KB
/
ModuleParameterGroup.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*=========================================================================
Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: Module Description Parser
Module: $HeadURL$
Date: $Date$
Version: $Revision$
==========================================================================*/
#ifndef __ModuleParameterGroup_h
#define __ModuleParameterGroup_h
#include "ModuleDescriptionParserExport.h"
#include "ModuleParameter.h"
#include <vector>
#include <string>
class ModuleDescriptionParser_EXPORT ModuleParameterGroup
{
public:
ModuleParameterGroup() {};
ModuleParameterGroup(const ModuleParameterGroup ¶meters);
void operator=(const ModuleParameterGroup ¶meters);
void SetLabel(const std::string &label) {
this->Label = label;
}
const std::string& GetLabel() const {
return this->Label;
}
void SetDescription(const std::string &description) {
this->Description = description;
}
const std::string& GetDescription() const {
return this->Description;
}
void SetAdvanced(const std::string &advanced) {
this->Advanced = advanced;
}
const std::string& GetAdvanced() const {
return this->Advanced;
}
void AddParameter(const ModuleParameter ¶meter) {
this->Parameters.push_back(parameter);
}
void SetParameters(const std::vector<ModuleParameter> ¶meters) {
this->Parameters = parameters;
}
const std::vector<ModuleParameter>& GetParameters() const {
return this->Parameters;
}
std::vector<ModuleParameter>& GetParameters() {
return this->Parameters;
}
private:
std::string Label;
std::string Description;
std::string Advanced;
std::vector<ModuleParameter> Parameters;
};
ModuleDescriptionParser_EXPORT std::ostream & operator<<(std::ostream &os, const ModuleParameterGroup &group);
#endif