ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBuildInformation.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkBuildInformation_h
19#define itkBuildInformation_h
20
21#include "itkMacro.h"
22#include "itkObject.h"
23#include <mutex>
24#include "itkSingletonMacro.h"
25
26namespace itk
27{
44struct BuildInformationGlobals;
45
46class ITKCommon_EXPORT BuildInformation final : public Object
47{
48public:
49 // Using the `rule of zero` to this aggregate type
50 // C++20 changes the definition of aggregate such that classes with any user-declared ctors are no longer aggregates.
51 ITK_DISALLOW_COPY_AND_MOVE(BuildInformation);
52
57 using MapKeyType = std::string;
58 using MapValueType = std::string;
60
61private:
73
74public:
76 using MapType = std::map<MapKeyType, MapStorageType>;
77
79 itkOverrideGetNameOfClassMacro(BuildInformation);
80
82 static Pointer
83 New();
84
87 static Pointer
89 static const MapType &
91 static const MapValueType
93 static const MapValueDescriptionType
95 static const std::vector<MapKeyType>
98private:
100
101 itkGetGlobalDeclarationMacro(BuildInformationGlobals, PimplGlobals);
102 static BuildInformationGlobals * m_PimplGlobals;
103
104}; // end of class
105} // end namespace itk
106#endif
static const std::vector< MapKeyType > GetAllKeys()
static const MapValueType GetValue(const MapKeyType &)
static Pointer New()
SmartPointer< const Self > ConstPointer
itkGetGlobalDeclarationMacro(BuildInformationGlobals, PimplGlobals)
static const MapType & GetMap()
std::map< MapKeyType, MapStorageType > MapType
static const MapValueDescriptionType GetDescription(const MapKeyType &)
InformationValueType MapStorageType
static BuildInformationGlobals * m_PimplGlobals
SmartPointer< Self > Pointer
static Pointer GetInstance()
MapValueType MapValueDescriptionType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....