JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
adapter.hpp
Go to the documentation of this file.
1/// \file jsonv/serialization/adapter.hpp
2///
3/// Copyright (c) 2015-2020 by Travis Gockel. All rights reserved.
4///
5/// This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
6/// as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later
7/// version.
8///
9/// \author Travis Gockel (travis@gockelhut.com)
10#pragma once
11
12#include <jsonv/config.hpp>
15
16namespace jsonv
17{
18
19/// \addtogroup Serialization
20/// \{
21
22/// An \c adapter is both a \c deserializer and a \c serializer. It is made with the idea that for \e most types, you
23/// want to both encode and decode JSON.
25 public deserializer,
26 public serializer
27{
28public:
29 virtual ~adapter() noexcept;
30};
31
32/// \}
33
34}
An adapter is both a deserializer and a serializer.
Definition adapter.hpp:27
A deserializer holds the method for converting JSON source into an arbitrary C++ type.
A serializer holds the method for converting an arbitrary C++ type into JSON, written token by token ...
Copyright (c) 2014-2020 by Travis Gockel.
Deserialization of C++ types from a JSON AST.
#define JSONV_PUBLIC
This function or class is part of the public API for JSON Voorhees.
Definition config.hpp:124
Copyright (c) 2015-2026 by Travis Gockel.