SST  12.0.0
StructuralSimulationToolkit
coreTest_Module.h
1 // Copyright 2009-2022 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-2022, 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 SST_CORE_CORETEST_MODULE_H
17 #define SST_CORE_CORETEST_MODULE_H
18 
19 #include "sst/core/component.h"
20 #include "sst/core/link.h"
21 #include "sst/core/module.h"
22 
23 #include <vector>
24 
25 namespace SST {
26 namespace CoreTestModule {
27 
29 {
30 
31 public:
33 
34  SST_ELI_REGISTER_MODULE_API(SST::CoreTestModule::CoreTestModuleExample)
35 
36  SST_ELI_REGISTER_MODULE_DERIVED(
37  CoreTestModuleExample, "coreTestElement", "CoreTestModule", SST_ELI_ELEMENT_VERSION(1, 0, 0),
38  "CoreTest module to demonstrate interface.", SST::CoreTestModule::CoreTestModuleExample)
39 
40  SST_ELI_DOCUMENT_PARAMS(
41  {"modulename", "Name to give this module", ""},
42  )
43 
44  void printName();
45 
46 private:
47  std::string modName;
48 };
49 
50 } // namespace CoreTestModule
51 } // namespace SST
52 
53 #endif // SST_CORE_CORETEST_MODULE_H
Definition: coreTest_Module.h:28
Module is a tag class used with the loadModule function.
Definition: module.h:21
Parameter store.
Definition: params.h:55