cpp-dump/0.5.0

An all-round dump function library for C++ that can print any type, even user-defined types.
Recipe info
2024-04-07

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
cpp-dump/0.5.0

Using cpp-dump

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]
cpp-dump/0.5.0
[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("cpp-dump/0.5.0")

    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): cpp-dump
  • CMake target name(s): cpp-dump::cpp-dump
  • pkg-config file name(s): cpp-dump.pc

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

# ...
find_package(cpp-dump REQUIRED)
# ...
target_link_libraries(YOUR_TARGET cpp-dump::cpp-dump)

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

#include "dump.hpp"
#include "hpp/escape_sequence.hpp"
#include "hpp/expand_va_macro.hpp"
#include "hpp/export_command/export_command.hpp"
#include "hpp/export_command/skip_container.hpp"
#include "hpp/export_var/dangerous_export_object.hpp"
#include "hpp/export_var/export_arithmetic.hpp"
#include "hpp/export_var/export_asterisk.hpp"
#include "hpp/export_var/export_container.hpp"
#include "hpp/export_var/export_enum.hpp"
#include "hpp/export_var/export_exception.hpp"
#include "hpp/export_var/export_map.hpp"
#include "hpp/export_var/export_object.hpp"
#include "hpp/export_var/export_object_common.hpp"
#include "hpp/export_var/export_ostream.hpp"
#include "hpp/export_var/export_other/export_es_value_t.hpp"
#include "hpp/export_var/export_other/export_optional.hpp"
#include "hpp/export_var/export_other/export_other.hpp"
#include "hpp/export_var/export_other/export_other_object.hpp"
#include "hpp/export_var/export_other/export_type_info.hpp"
#include "hpp/export_var/export_pointer.hpp"
#include "hpp/export_var/export_set.hpp"
#include "hpp/export_var/export_string.hpp"
#include "hpp/export_var/export_tuple.hpp"
#include "hpp/export_var/export_unsupported.hpp"
#include "hpp/export_var/export_var.hpp"
#include "hpp/export_var/export_var_fwd.hpp"
#include "hpp/export_var/export_xixo.hpp"
#include "hpp/iterable.hpp"
#include "hpp/log_label.hpp"
#include "hpp/options.hpp"
#include "hpp/type_check.hpp"
#include "hpp/utility.hpp"