-
Notifications
You must be signed in to change notification settings - Fork 122
/
VatesXMLDefinitions.h
144 lines (130 loc) · 3.95 KB
/
VatesXMLDefinitions.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#ifndef VATESXMLDEFINITIONS_H_
#define VATESXMLDEFINITIONS_H_
#include <string>
#include "MantidKernel/System.h"
namespace Mantid
{
namespace VATES
{
/**
This type contains definitions that will be found in the xml schema of VATES, but must be used in
code as part of the peristance/fetching routines. This file provides a single location for definitions to aid future maintenance.
@author Owen Arnold, Tessella plc
@date 16/12/2010
Copyright © 2010 ISIS Rutherford Appleton Laboratory, NScD Oak Ridge National Laboratory & European Spallation Source
This file is part of Mantid.
Mantid is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
Mantid is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
File change history is stored at: <https://github.com/mantidproject/mantid>
Code Documentation is available at: <http://doxygen.mantidproject.org> */
//TODO: these definitions may be more appropriate in API/Geometry where they can also be used as part of the parsing.
class DLLExport XMLDefinitions
{
public:
////XML schema tag definitions for generating xml.
// static const std::string workspaceNameXMLTagStart()
// {
// return "<MDWorkspaceName>";
// }
// static const std::string workspaceNameXMLTagEnd()
// {
// return "</MDWorkspaceName>";
// }
// static const std::string workspaceLocationXMLTagStart()
// {
// return "<MDWorkspaceLocation>";
// }
// static const std::string workspaceLocationXMLTagEnd()
// {
// return "</MDWorkspaceLocation>";
// }
// static const std::string workspaceInstructionXMLTagStart()
// {
// return "<MDInstruction>";
// }
// static const std::string workspaceInstructionXMLTagEnd()
// {
// return "</MDInstruction>";
// }
// ///XML schema tag definitions for finding xml.
// static const std::string workspaceNameElementName()
// {
// return "MDWorkspaceName";
// }
// static const std::string functionElementName()
// {
// return "Function";
// }
// static const std::string workspaceLocationElementName()
// {
// return "MDWorkspaceLocation";
// }
// static const std::string workspaceGeometryElementName()
// {
// return "DimensionSet";
// }
// static const std::string workspaceDimensionElementName()
// {
// return "Dimension";
// }
// static const std::string workspaceXDimensionElementName()
// {
// return "XDimension";
// }
// static const std::string workspaceYDimensionElementName()
// {
// return "YDimension";
// }
// static const std::string workspaceZDimensionElementName()
// {
// return "ZDimension";
// }
// static const std::string workspaceTDimensionElementName()
// {
// return "TDimension";
// }
// static const std::string workspaceRefDimensionElementName()
// {
// return "RefDimensionId";
// }
///An id for recognising specific vtkFieldData objects on inbound and outbound datasets.
static const std::string metaDataId()
{
return "VATES_Metadata";
}
static const std::string signalName()
{
return "signal";
}
static const std::string geometryNodeName()
{
return "geometryNodeName";
}
static const std::string functionNodeName()
{
return "functionNodeName";
}
static const std::string geometryOperatorInfo()
{
return "geometryOperatorInfo";
}
static const std::string functionOperatorInfo()
{
return "functionOperatorInfo";
}
static const std::string RebinnedWSName()
{
return "RebinnedWS";
}
};
}
}
#endif