SST  9.0.0
StructuralSimulationToolkit
serialize_string.h
1 // Copyright 2009-2019 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-2019, 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 SERIALIZE_STRING_H
13 #define 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  public:
24  void operator()(std::string& str, serializer& ser){
25  ser.string(str);
26  }
27 };
28 
29 }
30 }
31 }
32 
33 #endif // 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:35
Base serialize class.
Definition: serialize.h:33