Macros | Enumerations | Functions
serialization.cpp File Reference
#include <fstream>
#include <boost/test/included/unit_test.hpp>
#include <hpp/fcl/collision.h>
#include <hpp/fcl/distance.h>
#include <hpp/fcl/BV/OBBRSS.h>
#include <hpp/fcl/BVH/BVH_model.h>
#include <hpp/fcl/serialization/collision_data.h>
#include <hpp/fcl/serialization/AABB.h>
#include <hpp/fcl/serialization/BVH_model.h>
#include <hpp/fcl/serialization/hfield.h>
#include <hpp/fcl/serialization/geometric_shapes.h>
#include <hpp/fcl/serialization/convex.h>
#include <hpp/fcl/serialization/memory.h>
#include "utility.h"
#include "fcl_resources/config.h"
#include <boost/archive/tmpdir.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/filesystem.hpp>
#include <boost/asio/streambuf.hpp>
Include dependency graph for serialization.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   FCL_SERIALIZATION
 

Enumerations

enum  SerializationMode { TXT = 1, XML = 2, BIN = 4, STREAM = 8 }
 

Functions

 BOOST_AUTO_TEST_CASE (test_aabb)
 
 BOOST_AUTO_TEST_CASE (test_BVHModel)
 
 BOOST_AUTO_TEST_CASE (test_collision_data)
 
 BOOST_AUTO_TEST_CASE (test_HeightField)
 
 BOOST_AUTO_TEST_CASE (test_memory_footprint)
 
 BOOST_AUTO_TEST_CASE (test_shapes)
 
template<typename T >
bool check (const T &value, const T &other)
 
template<typename T >
void loadFromBinary (T &object, boost::asio::streambuf &buffer)
 
template<typename T >
void saveToBinary (const T &object, boost::asio::streambuf &buffer)
 
template<typename T >
void test_serialization (const T &value, const int mode=TXT|XML|BIN|STREAM)
 
template<typename T >
void test_serialization (const T &value, T &other_value, const int mode=TXT|XML|BIN|STREAM)
 

Macro Definition Documentation

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   FCL_SERIALIZATION

Definition at line 35 of file serialization.cpp.

Enumeration Type Documentation

◆ SerializationMode

Enumerator
TXT 
XML 
BIN 
STREAM 

Definition at line 87 of file serialization.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( test_aabb  )

Definition at line 153 of file serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( test_BVHModel  )

Definition at line 181 of file serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/6]

BOOST_AUTO_TEST_CASE ( test_collision_data  )

Definition at line 158 of file serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/6]

BOOST_AUTO_TEST_CASE ( test_HeightField  )

Definition at line 239 of file serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/6]

BOOST_AUTO_TEST_CASE ( test_memory_footprint  )

Definition at line 306 of file serialization.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( test_shapes  )

Definition at line 258 of file serialization.cpp.

◆ check()

template<typename T >
bool check ( const T &  value,
const T &  other 
)

Definition at line 83 of file serialization.cpp.

◆ loadFromBinary()

template<typename T >
void loadFromBinary ( T &  object,
boost::asio::streambuf &  buffer 
)
inline

Definition at line 77 of file serialization.cpp.

◆ saveToBinary()

template<typename T >
void saveToBinary ( const T &  object,
boost::asio::streambuf &  buffer 
)

Definition at line 71 of file serialization.cpp.

◆ test_serialization() [1/2]

template<typename T >
void test_serialization ( const T &  value,
const int  mode = TXT | XML | BIN | STREAM 
)

Definition at line 147 of file serialization.cpp.

◆ test_serialization() [2/2]

template<typename T >
void test_serialization ( const T &  value,
T &  other_value,
const int  mode = TXT | XML | BIN | STREAM 
)

Definition at line 90 of file serialization.cpp.



hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:16