SST  15.1.0
StructuralSimulationToolkit
coreTest_Serialization.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_SERIALIZATION_H
13 #define SST_CORE_CORETEST_SERIALIZATION_H
14 
15 #include "sst/core/component.h"
16 #include "sst/core/rng/rng.h"
17 
18 #include <cstddef>
19 #include <memory>
20 
22 
24 {
25 public:
26  // REGISTER THIS COMPONENT INTO THE ELEMENT LIBRARY
27  SST_ELI_REGISTER_COMPONENT(
29  "coreTestElement",
30  "coreTestSerialization",
31  SST_ELI_ELEMENT_VERSION(1,0,0),
32  "Serialization Check Component",
33  COMPONENT_CATEGORY_UNCATEGORIZED
34  )
35 
36  SST_ELI_DOCUMENT_PARAMS(
37  { "test", "Type of serialization test to perform", NULL}
38  )
39 
40  // Optional since there is nothing to document
41  SST_ELI_DOCUMENT_STATISTICS(
42  )
43 
44  // Optional since there is nothing to document
45  SST_ELI_DOCUMENT_PORTS(
46  )
47 
48  // Optional since there is nothing to document
49  SST_ELI_DOCUMENT_SUBCOMPONENT_SLOTS(
50  )
51 
52  coreTestSerialization(SST::ComponentId_t id, SST::Params& params);
54 
55 private:
56  std::unique_ptr<SST::RNG::Random> rng;
57 };
58 
59 } // namespace SST::CoreTestSerialization
60 
61 #endif // SST_CORE_CORETEST_SERIALIZATION_H
Main component object for the simulation.
Definition: component.h:30
Definition: coreTest_Serialization.h:23
Parameter store.
Definition: params.h:63
Definition: coreTest_Output.cc:20