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 an \c extractor and a \c serializer. It is made with the idea that for \e most types, you want
23/// to both encode and decode JSON.
25 public extractor,
26 public serializer
27{
28public:
29 virtual ~adapter() noexcept;
30};
31
32/// \}
33
34}
An adapter is both an extractor and a serializer.
Definition adapter.hpp:27
An extractor holds the method for converting JSON source into an arbitrary C++ type.
Definition extract.hpp:272
A serializer holds the method for converting an arbitrary C++ type into a value.
Copyright (c) 2014-2020 by Travis Gockel.
#define JSONV_PUBLIC
This function or class is part of the public API for JSON Voorhees.
Definition config.hpp:102
Extraction of C++ types from a JSON AST.
Copyright (c) 2015-2020 by Travis Gockel.