SST 15.0
Structural Simulation Toolkit
coreTest_ParamComponent.h
1// Copyright 2009-2025 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-2025, 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
17namespace SST::CoreTestParamComponent {
18
19class coreTestParamComponent : public SST::Component
20{
21public:
22 // REGISTER THIS COMPONENT INTO THE ELEMENT LIBRARY
23 SST_ELI_REGISTER_COMPONENT(
24 coreTestParamComponent,
25 "coreTestElement",
26 "coreTestParamComponent",
27 SST_ELI_ELEMENT_VERSION(1,0,0),
28 "Param Check Component",
29 COMPONENT_CATEGORY_UNCATEGORIZED
30 )
31
32 SST_ELI_DOCUMENT_PARAMS(
33 { "int32t_param", "Check for integer values", "-1" },
34 { "uint32t_param", "Check for integer values", "0" },
35 { "int64t_param", "Check for integer values", "-1" },
36 { "uint64t_param", "Check for integer values", "0" },
37 { "bool_true_param", "Check for bool values", "true" },
38 { "bool_false_param", "Check for bool values", "false" },
39 { "float_param", "Check for float values", "1.0" },
40 { "double_param", "Check for double values", "1.0" },
41 { "string_param", "Check for string values", "test" },
42 { "scope.int32", "Check scoped params", "-1" },
43 { "scope.bool", "Check scoped params", "true" },
44 { "scope.string", "Check scoped params", "test" }
45 )
46
47 // Optional since there is nothing to document
48 SST_ELI_DOCUMENT_STATISTICS(
49 )
50
51 // Optional since there is nothing to document
52 SST_ELI_DOCUMENT_PORTS(
53 )
54
55 // Optional since there is nothing to document
56 SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
57 )
58
59 coreTestParamComponent(SST::ComponentId_t id, SST::Params& params);
60 ~coreTestParamComponent() {}
61 void setup() override {}
62 void finish() override {}
63
64private:
65 coreTestParamComponent(); // for serialization only
66 coreTestParamComponent(const coreTestParamComponent&) = delete; // do not implement
67 coreTestParamComponent& operator=(const coreTestParamComponent&) = delete; // do not implement
68};
69
70} // namespace SST::CoreTestParamComponent
71
72#endif // SST_CORE_CORETEST_PARAMCOMPONENT_H
Main component object for the simulation.
Definition component.h:31
Definition coreTest_ParamComponent.h:20
void setup() override
Called after all components have been constructed and initialization has completed,...
Definition coreTest_ParamComponent.h:61
void finish() override
Called after complete phase, but before objects are destroyed.
Definition coreTest_ParamComponent.h:62
Parameter store.
Definition params.h:58