JSON Voorhees
Killer JSON for C++
Loading...
Searching...
No Matches
serialization_builder.hpp File Reference

DSL for building formats. More...

#include <jsonv/config.hpp>
#include <jsonv/demangle.hpp>
#include <jsonv/serialization.hpp>
#include <jsonv/serialization/container_adapter.hpp>
#include <jsonv/serialization/enum_adapter.hpp>
#include <jsonv/serialization/optional_adapter.hpp>
#include <jsonv/serialization/polymorphic_adapter.hpp>
#include <jsonv/serialization/wrapper_adapter.hpp>
#include <algorithm>
#include <array>
#include <concepts>
#include <cstdint>
#include <deque>
#include <expected>
#include <map>
#include <memory>
#include <optional>
#include <set>
#include <stdexcept>
#include <string>
#include <string_view>
#include <type_traits>
#include <vector>
+ Include dependency graph for serialization_builder.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  jsonv::member_adapter_builder< T, TMember >
 
class  jsonv::adapter_builder< T >
 
class  jsonv::polymorphic_adapter_builder< TPointer >
 
class  jsonv::formats_builder
 

Functions

JSONV_NO_RETURN JSONV_PUBLIC void jsonv::deny_unknown_members (deserialization_context &context, const std::set< std::string > &unknown_members)
 Throw a deserialization_error naming the unknown_members, the keys which claimed no member.
 

Detailed Description

DSL for building formats.

Copyright (c) 2015-2020 by Travis Gockel. All rights reserved.

This program is free software: you can redistribute it and/or modify it under the terms of the Apache License as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any later version.

Author
Travis Gockel (travi.nosp@m.s@go.nosp@m.ckelh.nosp@m.ut.c.nosp@m.om)

Definition in file serialization_builder.hpp.

Function Documentation

◆ deny_unknown_members()

JSONV_NO_RETURN JSONV_PUBLIC void jsonv::deny_unknown_members ( deserialization_context &  context,
const std::set< std::string > &  unknown_members 
)

Throw a deserialization_error naming the unknown_members, the keys which claimed no member.

Exceptions
deserialization_erroralways.
+ Here is the call graph for this function: