SST  10.1.0
StructuralSimulationToolkit
coreTest_ParamComponent.h
1 // Copyright 2009-2020 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-2020, 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  { "int-param", "Check for integer values", "-1" },
40  { "str-param", "Check for string values", "test" },
41  { "bool-param", "Check for bool values", "true" }
42  )
43 
44  // Optional since there is nothing to document
45  SST_ELI_DOCUMENT_STATISTICS(
46  )
47 
48  // Optional since there is nothing to document
49  SST_ELI_DOCUMENT_PORTS(
50  )
51 
52  // Optional since there is nothing to document
53  SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
54  )
55 
56  coreTestParamComponent(SST::ComponentId_t id, SST::Params& params);
57  void setup() { }
58  void finish() { }
59 
60 private:
61  coreTestParamComponent(); // for serialization only
62  coreTestParamComponent(const coreTestParamComponent&); // do not implement
63  void operator=(const coreTestParamComponent&); // do not implement
64 };
65 
66 } // namespace coreTestParamComponent
67 } // namespace SST
68 
69 #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:58
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:57
Parameter store.
Definition: params.h:44