SST/macro
library_message.h
Go to the documentation of this file.
1 #ifndef LIBRARY_MESSAGE_H
2 #define LIBRARY_MESSAGE_H
3 
5 
6 namespace sstmac {
7 
8 /**
9  * @brief The library_interface class provides a castable type that
10  * stores a library id (std::string) for mapping events to the
11  * correct library in sstmac::sw::operating_system.
12  */
14 {
15 
16  public:
17  /**
18  * @return Node-unique name of library to deliver event to
19  */
20  std::string
21  lib_name() const {
22  return lib_name_;
23  }
24 
25  void
26  set_lib_name(const std::string& name) {
27  lib_name_ = name;
28  }
29 
30  void
32 
33  protected:
34  library_interface(const std::string& libname) :
35  lib_name_(libname) {
36  }
37 
39 
40  void
42  cln->lib_name_ = lib_name_;
43  }
44 
45  protected:
46  std::string lib_name_;
47 
48 };
49 
50 }
51 
52 #endif // LIBRARY_MESSAGE_H
53 
The library_interface class provides a castable type that stores a library id (std::string) for mappi...
library_interface(const std::string &libname)
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:33
void clone_into(library_interface *cln) const
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
std::string lib_name() const
void set_lib_name(const std::string &name)
void serialize_order(serializer &ser)