12 #ifndef SST_CORE_SERIALIZATION_IMPL_SERIALIZE_STRING_H 13 #define SST_CORE_SERIALIZATION_IMPL_SERIALIZE_STRING_H 15 #ifndef SST_INCLUDING_SERIALIZE_H 17 "The header file sst/core/serialization/impl/serialize_string.h should not be directly included as it is not part of the stable public API. The file is included in sst/core/serialization/serialize.h" 20 #include "sst/core/serialization/serializer.h" 24 namespace Serialization {
37 void*
getAddr()
override {
return addr_; }
39 std::string
get()
override {
return *addr_; }
41 void set_impl(
const std::string& value)
override { *addr_ = value; }
69 void operator()(std::string& str,
serializer& ser) { ser.string(str); }
70 void operator()(std::string& str,
serializer& ser,
const char* name)
73 ser.mapper().map_primitive(name, obj_map);
81 #endif // SST_CORE_SERIALIZATION_IMPL_SERIALIZE_STRING_H This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:43
std::string getType() override
Get the type of the variable represented by the ObjectMap.
Definition: serialize_string.h:55
static std::vector< std::pair< std::string, ObjectMap * > > emptyVars
Static empty variable vector for use by versions that don't have variables (i.e.
Definition: objectMap.h:70
Base serialize class.
Definition: serialize.h:45
Class created by the serializer mapping mode used to map the variables for objects.
Definition: objectMap.h:61
Definition: serialize_string.h:26
void * getAddr() override
Get the address of the represented object.
Definition: serialize_string.h:37
virtual bool isFundamental() override
Check to see if this ObjectMap represents a fundamental or a class treated as a fundamental.
Definition: serialize_string.h:43
const std::vector< std::pair< std::string, ObjectMap * > > & getVariables() override
Get the list of child variables contained in this ObjectMap, which in this case will be empty...
Definition: serialize_string.h:53