SST  12.0.1
StructuralSimulationToolkit
coreTest_ParamComponent.h
1 // Copyright 2009-2022 NTESS. Under the terms
2 // of Contract DE-NA0003525 with NTESS, the U.S.
3 // Government retains certain rights in this software.
4 //
5 // Copyright (c) 2009-2022, NTESS
6 // All rights reserved.
7 //
8 // Portions are copyright of other developers:
9 // See the file CONTRIBUTORS.TXT in the top level directory
10 // the distribution for more information.
11 //
12 // This file is part of the SST software package. For license
13 // information, see the LICENSE file in the top level directory of the
14 // distribution.
15 
16 #ifndef SST_CORE_CORETEST_PARAMCOMPONENT_H
17 #define SST_CORE_CORETEST_PARAMCOMPONENT_H
18 
19 #include "sst/core/component.h"
20 
21 namespace SST {
22 namespace CoreTestParamComponent {
23 
25 {
26 public:
27  // REGISTER THIS COMPONENT INTO THE ELEMENT LIBRARY
28  SST_ELI_REGISTER_COMPONENT(
30  "coreTestElement",
31  "coreTestParamComponent",
32  SST_ELI_ELEMENT_VERSION(1,0,0),
33  "Param Check Component",
34  COMPONENT_CATEGORY_UNCATEGORIZED
35  )
36 
37  SST_ELI_DOCUMENT_PARAMS(
38  { "int32t_param", "Check for integer values", "-1" },
39  { "uint32t_param", "Check for integer values", "0" },
40  { "int64t_param", "Check for integer values", "-1" },
41  { "uint64t_param", "Check for integer values", "0" },
42  { "bool_true_param", "Check for bool values", "true" },
43  { "bool_false_param", "Check for bool values", "false" },
44  { "float_param", "Check for float values", "1.0" },
45  { "double_param", "Check for double values", "1.0" },
46  { "string_param", "Check for string values", "test" },
47  { "scope.int32", "Check scoped params", "-1" },
48  { "scope.bool", "Check scoped params", "true" },
49  { "scope.string", "Check scoped params", "test" }
50  )
51 
52  // Optional since there is nothing to document
53  SST_ELI_DOCUMENT_STATISTICS(
54  )
55 
56  // Optional since there is nothing to document
57  SST_ELI_DOCUMENT_PORTS(
58  )
59 
60  // Optional since there is nothing to document
61  SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
62  )
63 
64  coreTestParamComponent(SST::ComponentId_t id, SST::Params& params);
66  void setup() {}
67  void finish() {}
68 
69 private:
70  coreTestParamComponent(); // for serialization only
71  coreTestParamComponent(const coreTestParamComponent&); // do not implement
72  void operator=(const coreTestParamComponent&); // do not implement
73 };
74 
75 } // namespace CoreTestParamComponent
76 } // namespace SST
77 
78 #endif // SST_CORE_CORETEST_PARAMCOMPONENT_H
Main component object for the simulation.
Definition: component.h:30
void finish()
Called after complete phase, but before objects are destroyed.
Definition: coreTest_ParamComponent.h:67
Definition: coreTest_ParamComponent.h:24
void setup()
Called after all components have been constructed and initialization has completed, but before simulation time has begun.
Definition: coreTest_ParamComponent.h:66
Parameter store.
Definition: params.h:55