SST  11.1.0
StructuralSimulationToolkit
serialize_string.h
1 // Copyright 2009-2021 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-2021, 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_SERIALIZATION_SERIALIZE_STRING_H
13 #define SST_CORE_SERIALIZATION_SERIALIZE_STRING_H
14 
15 #include "sst/core/serialization/serializer.h"
16 
17 namespace SST {
18 namespace Core {
19 namespace Serialization {
20 
21 template <>
22 class serialize<std::string>
23 {
24 public:
25  void operator()(std::string& str, serializer& ser) { ser.string(str); }
26 };
27 
28 } // namespace Serialization
29 } // namespace Core
30 } // namespace SST
31 
32 #endif // SST_CORE_SERIALIZATION_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:34
Base serialize class.
Definition: serialize.h:31