SST  11.0.0
StructuralSimulationToolkit
coreTest_ParamComponent.h
1 // Copyright 2009-2021 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-2021, 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 _CORETEST_PARAM_COMPONENT_H
17 #define _CORETEST_PARAM_COMPONENT_H
18 
19 #include <sst/core/component.h>
20 
21 namespace SST {
22 namespace CoreTestParamComponent {
23 
25 {
26 public:
27 
28  // REGISTER THIS COMPONENT INTO THE ELEMENT LIBRARY
29  SST_ELI_REGISTER_COMPONENT(
31  "coreTestElement",
32  "coreTestParamComponent",
33  SST_ELI_ELEMENT_VERSION(1,0,0),
34  "Param Check Component",
35  COMPONENT_CATEGORY_UNCATEGORIZED
36  )
37 
38  SST_ELI_DOCUMENT_PARAMS(
39  { "int32t-param", "Check for integer values", "-1" },
40  { "uint32t-param", "Check for integer values", "0" },
41  { "int64t-param", "Check for integer values", "-1" },
42  { "uint64t-param", "Check for integer values", "0" },
43  { "bool-true-param", "Check for bool values", "true" },
44  { "bool-false-param", "Check for bool values", "false" },
45  { "float-param", "Check for float values", "1.0" },
46  { "double-param", "Check for double values", "1.0" },
47  { "string-param", "Check for string values", "test" },
48  { "scope.int32", "Check scoped params", "-1" },
49  { "scope.bool", "Check scoped params", "true" },
50  { "scope.string", "Check scoped params", "test" }
51  )
52 
53  // Optional since there is nothing to document
54  SST_ELI_DOCUMENT_STATISTICS(
55  )
56 
57  // Optional since there is nothing to document
58  SST_ELI_DOCUMENT_PORTS(
59  )
60 
61  // Optional since there is nothing to document
62  SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
63  )
64 
65  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 /* coreTestParamComponent */
Main component object for the simulation.
Definition: component.h:31
void finish()
Called after simulation completes, 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:44