OPAL (Object Oriented Parallel Accelerator Library)
2024.2
OPAL
PyOpalObject.cpp
Go to the documentation of this file.
1
//
2
// Python API for PolynomialCoefficient (part of the multidimensional polynomial fitting routines)
3
//
4
// Copyright (c) 2008-2023, Chris Rogers, STFC Rutherford Appleton Laboratory, Didcot, UK
5
//
6
// This file is part of OPAL.
7
//
8
// OPAL is free software: you can redistribute it and/or modify
9
// it under the terms of the GNU General Public License as published by
10
// the Free Software Foundation, either version 3 of the License, or
11
// (at your option) any later version.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
15
//
16
17
#include "
PyOpal/PyCore/PyOpalObject.h
"
18
19
namespace
PyOpal
{
20
namespace
PyOpalObjectNS
{
21
22
std::map<AttributeType, std::string>
attributeName
= std::map<AttributeType, std::string>({
23
{
DOUBLE
,
"float"
},
24
{
STRING
,
"string"
},
25
{
PREDEFINED_STRING
,
"predefined string"
},
26
{
UPPER_CASE_STRING
,
"upper case string"
},
27
{
BOOL
,
"bool"
},
28
{
INT
,
"int"
},
29
{
FLOAT_LIST
,
"list of floats"
}
30
});
31
}
// PyOpalObjectNS
32
}
// PyOpal
PyOpalObject.h
PyOpal
Definition
ExceptionTranslation.cpp:21
PyOpal::PyOpalObjectNS
Definition
PyOpalObject.cpp:20
PyOpal::PyOpalObjectNS::FLOAT_LIST
@ FLOAT_LIST
Definition
PyOpalObject.h:81
PyOpal::PyOpalObjectNS::INT
@ INT
Definition
PyOpalObject.h:81
PyOpal::PyOpalObjectNS::PREDEFINED_STRING
@ PREDEFINED_STRING
Definition
PyOpalObject.h:80
PyOpal::PyOpalObjectNS::DOUBLE
@ DOUBLE
Definition
PyOpalObject.h:81
PyOpal::PyOpalObjectNS::BOOL
@ BOOL
Definition
PyOpalObject.h:81
PyOpal::PyOpalObjectNS::UPPER_CASE_STRING
@ UPPER_CASE_STRING
Definition
PyOpalObject.h:80
PyOpal::PyOpalObjectNS::STRING
@ STRING
Definition
PyOpalObject.h:80
PyOpal::PyOpalObjectNS::attributeName
std::map< AttributeType, std::string > attributeName
Definition
PyOpalObject.cpp:22