fast-cdr/2.1.0

eProsima FastCDR library for serialization
Recipe info
2023-11-16

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
fast-cdr/2.1.0

Using fast-cdr

Note

If you are new with Conan, we recommend to read the section how to consume packages.

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]
fast-cdr/2.1.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("fast-cdr/2.1.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): fastcdr
  • CMake target name(s): fastcdr
  • pkg-config file name(s): fast-cdr.pc

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

# ...
find_package(fastcdr REQUIRED)
# ...
target_link_libraries(YOUR_TARGET fastcdr)

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

#include "fastcdr/Cdr.h"
#include "fastcdr/CdrEncoding.hpp"
#include "fastcdr/CdrSizeCalculator.hpp"
#include "fastcdr/FastBuffer.h"
#include "fastcdr/FastCdr.h"
#include "fastcdr/cdr/fixed_size_string.hpp"
#include "fastcdr/config.h"
#include "fastcdr/detail/container_recursive_inspector.hpp"
#include "fastcdr/eProsima_auto_link.h"
#include "fastcdr/exceptions/BadOptionalAccessException.hpp"
#include "fastcdr/exceptions/BadParamException.h"
#include "fastcdr/exceptions/Exception.h"
#include "fastcdr/exceptions/LockedExternalAccessException.hpp"
#include "fastcdr/exceptions/NotEnoughMemoryException.h"
#include "fastcdr/fastcdr_dll.h"
#include "fastcdr/xcdr/MemberId.hpp"
#include "fastcdr/xcdr/detail/optional.hpp"
#include "fastcdr/xcdr/external.hpp"
#include "fastcdr/xcdr/optional.hpp"