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