unit.hpp
Go to the documentation of this file.
00001 /***************************************************************************
00002   tag: The SourceWorks  Tue Sep 7 00:54:57 CEST 2010  unit.hpp
00003 
00004                         unit.hpp -  description
00005                            -------------------
00006     begin                : Tue September 07 2010
00007     copyright            : (C) 2010 The SourceWorks
00008     email                : peter@thesourceworks.com
00009 
00010  ***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 
00020 
00021 #include <rtt-config.h>
00022 #include <iostream>
00023 #include <Logger.hpp>
00024 #include <extras/SimulationActivity.hpp>
00025 #include <extras/SimulationThread.hpp>
00026 #include <RTT.hpp>
00027 
00028 #define BOOST_TEST_DYN_LINK
00029 #ifdef ORO_UNIT_TEST_SUITE_HACK
00030 // Modified version that contains checkpointing
00031 // We use this in the build farm to get more precise
00032 // feedback for where the UT failed. To be removed
00033 // when upstream supports this too.
00034 #include "unit_test_suite.hpp"
00035 #else
00036 #include <boost/test/unit_test_suite.hpp>
00037 #endif
00038 #include <boost/test/unit_test.hpp>
00039 #include <boost/test/floating_point_comparison.hpp>
00040 
00041 using namespace RTT;
00042 using namespace RTT::detail;
00043 using namespace boost;
00044 using namespace std;
00045 
00046 #if defined(__GNUG__) && (defined(__unix__) || defined(__APPLE__))
00047 
00048 # if defined(RTT_UNIT_DLL_EXPORT)
00049    // Use RTT_UNIT_API for normal function exporting
00050 #  define RTT_UNIT_API    __attribute__((visibility("default")))
00051 
00052    // Use RTT_UNIT_EXPORT for static template class member variables
00053    // They must always be 'globally' visible.
00054 #  define RTT_UNIT_EXPORT __attribute__((visibility("default")))
00055 
00056    // Use RTT_UNIT_HIDE to explicitly hide a symbol
00057 #  define RTT_UNIT_HIDE   __attribute__((visibility("hidden")))
00058 
00059 # else
00060 #  define RTT_UNIT_API
00061 #  define RTT_UNIT_EXPORT __attribute__((visibility("default")))
00062 #  define RTT_UNIT_HIDE   __attribute__((visibility("hidden")))
00063 # endif
00064 #else
00065    // Win32 and NOT GNU
00066 # if defined( WIN32 ) && !defined ( __MINGW32__ )
00067 #  if defined(RTT_UNIT_DLL_EXPORT)
00068 #   define RTT_UNIT_API    __declspec(dllexport)
00069 #   define RTT_UNIT_EXPORT __declspec(dllexport)
00070 #   define RTT_UNIT_HIDE   
00071 #  else
00072 #   define RTT_UNIT_API  __declspec(dllimport)
00073 #   define RTT_UNIT_EXPORT __declspec(dllimport)
00074 #   define RTT_UNIT_HIDE 
00075 #  endif
00076 # else
00077 #  define RTT_UNIT_API
00078 #  define RTT_UNIT_EXPORT
00079 #  define RTT_UNIT_HIDE
00080 # endif
00081 #endif


rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:16:20