File indexing completed on 2024-04-06 12:02:33
0001 #ifndef CondFormats_SerializationHelper_SerializationHelperBase_h
0002 #define CondFormats_SerializationHelper_SerializationHelperBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <string_view>
0023
0024
0025 #include "CondFormats/SerializationHelper/interface/unique_void_ptr.h"
0026
0027
0028
0029 namespace cond::serialization {
0030 class SerializationHelperBase {
0031 public:
0032 SerializationHelperBase() = default;
0033 virtual ~SerializationHelperBase() = default;
0034
0035 SerializationHelperBase(const SerializationHelperBase&) = delete;
0036 const SerializationHelperBase& operator=(const SerializationHelperBase&) = delete;
0037
0038
0039 virtual unique_void_ptr deserialize(std::streambuf&, const std::string_view iClassName) const = 0;
0040
0041
0042 virtual std::string_view serialize(std::streambuf&, void const*) const = 0;
0043 virtual const std::type_info& type() const = 0;
0044 };
0045 }
0046 #endif