bitserializer/0.70

C++ 17 library for serialization to multiple output formats (JSON, XML, YAML, CSV, MsgPack)
Recipe info
2024-05-31

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
bitserializer/0.70

Using bitserializer

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
bitserializer/0.70
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("bitserializer/0.70")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): bitserializer
  • CMake target name(s): bitserializer::bitserializer
  • bitserializer-core => BitSerializer::core
    
  • pkg-config file name(s): bitserializer.pc
  • bitserializer-core => bitserializer-bitserializer-core.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(bitserializer REQUIRED)
# ...
target_link_libraries(YOUR_TARGET bitserializer::bitserializer)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the bitserializer homepage listed above:

#include "bitserializer/bit_serializer.h"
#include "bitserializer/config.h"
#include "bitserializer/conversion_detail/convert_chrono.h"
#include "bitserializer/conversion_detail/convert_compatibility.h"
#include "bitserializer/conversion_detail/convert_detail.h"
#include "bitserializer/conversion_detail/convert_enum.h"
#include "bitserializer/conversion_detail/convert_filesystem.h"
#include "bitserializer/conversion_detail/convert_fundamental.h"
#include "bitserializer/conversion_detail/convert_traits.h"
#include "bitserializer/conversion_detail/convert_utf.h"
#include "bitserializer/conversion_detail/memory_utils.h"
#include "bitserializer/conversion_detail/object_traits.h"
#include "bitserializer/convert.h"
#include "bitserializer/cpprestjson_archive.h"
#include "bitserializer/csv_archive.h"
#include "bitserializer/msgpack_archive.h"
#include "bitserializer/pugixml_archive.h"
#include "bitserializer/rapidjson_archive.h"
#include "bitserializer/rapidyaml_archive.h"
#include "bitserializer/serialization_detail/archive_base.h"
#include "bitserializer/serialization_detail/archive_traits.h"
#include "bitserializer/serialization_detail/attr_key_value.h"
#include "bitserializer/serialization_detail/bin_timestamp.h"
#include "bitserializer/serialization_detail/errors_handling.h"
#include "bitserializer/serialization_detail/generic_container.h"
#include "bitserializer/serialization_detail/generic_map.h"
#include "bitserializer/serialization_detail/generic_set.h"
#include "bitserializer/serialization_detail/key_value.h"
#include "bitserializer/serialization_detail/key_value_proxy.h"
#include "bitserializer/serialization_detail/object_traits.h"
#include "bitserializer/serialization_detail/serialization_base_types.h"
#include "bitserializer/serialization_detail/serialization_context.h"
#include "bitserializer/serialization_detail/serialization_options.h"
#include "bitserializer/serialization_detail/validators.h"
#include "bitserializer/types/std/array.h"
#include "bitserializer/types/std/atomic.h"
#include "bitserializer/types/std/bitset.h"
#include "bitserializer/types/std/chrono.h"
#include "bitserializer/types/std/ctime.h"
#include "bitserializer/types/std/deque.h"
#include "bitserializer/types/std/filesystem.h"
#include "bitserializer/types/std/forward_list.h"
#include "bitserializer/types/std/list.h"
#include "bitserializer/types/std/map.h"
#include "bitserializer/types/std/memory.h"
#include "bitserializer/types/std/optional.h"
#include "bitserializer/types/std/pair.h"
#include "bitserializer/types/std/queue.h"
#include "bitserializer/types/std/set.h"
#include "bitserializer/types/std/stack.h"
#include "bitserializer/types/std/tuple.h"
#include "bitserializer/types/std/unordered_map.h"
#include "bitserializer/types/std/unordered_set.h"
#include "bitserializer/types/std/valarray.h"
#include "bitserializer/types/std/vector.h"