SST 12.1.0
Structural Simulation Toolkit
serialize_string.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// 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
17namespace SST {
18namespace Core {
19namespace Serialization {
20
21template <>
22class serialize<std::string>
23{
24public:
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
Base serialize class.
Definition: serialize.h:32
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:35