unit.hpp
Go to the documentation of this file.
1 /***************************************************************************
2  tag: The SourceWorks Tue Sep 7 00:54:57 CEST 2010 unit.hpp
3 
4  unit.hpp - description
5  -------------------
6  begin : Tue September 07 2010
7  copyright : (C) 2010 The SourceWorks
8  email : peter@thesourceworks.com
9 
10  ***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 
19 
20 
21 #include <rtt-config.h>
22 #include <iostream>
23 #include <Logger.hpp>
26 #include <RTT.hpp>
27 
28 #define BOOST_TEST_DYN_LINK
29 #ifdef ORO_UNIT_TEST_SUITE_HACK
30 // Modified version that contains checkpointing
31 // We use this in the build farm to get more precise
32 // feedback for where the UT failed. To be removed
33 // when upstream supports this too.
34 #include "unit_test_suite.hpp"
35 #else
36 #include <boost/test/unit_test_suite.hpp>
37 #endif
38 #include <boost/test/unit_test.hpp>
39 #include <boost/test/floating_point_comparison.hpp>
40 
41 using namespace RTT;
42 using namespace RTT::detail;
43 using namespace boost;
44 using namespace std;
45 
46 #if defined(__GNUG__) && (defined(__unix__) || defined(__APPLE__))
47 
48 # if defined(RTT_UNIT_DLL_EXPORT)
49  // Use RTT_UNIT_API for normal function exporting
50 # define RTT_UNIT_API __attribute__((visibility("default")))
51 
52  // Use RTT_UNIT_EXPORT for static template class member variables
53  // They must always be 'globally' visible.
54 # define RTT_UNIT_EXPORT __attribute__((visibility("default")))
55 
56  // Use RTT_UNIT_HIDE to explicitly hide a symbol
57 # define RTT_UNIT_HIDE __attribute__((visibility("hidden")))
58 
59 # else
60 # define RTT_UNIT_API
61 # define RTT_UNIT_EXPORT __attribute__((visibility("default")))
62 # define RTT_UNIT_HIDE __attribute__((visibility("hidden")))
63 # endif
64 #else
65  // Win32 and NOT GNU
66 # if defined( WIN32 ) && !defined ( __MINGW32__ )
67 # if defined(RTT_UNIT_DLL_EXPORT)
68 # define RTT_UNIT_API __declspec(dllexport)
69 # define RTT_UNIT_EXPORT __declspec(dllexport)
70 # define RTT_UNIT_HIDE
71 # else
72 # define RTT_UNIT_API __declspec(dllimport)
73 # define RTT_UNIT_EXPORT __declspec(dllimport)
74 # define RTT_UNIT_HIDE
75 # endif
76 # else
77 # define RTT_UNIT_API
78 # define RTT_UNIT_EXPORT
79 # define RTT_UNIT_HIDE
80 # endif
81 #endif
Definition: mystd.hpp:163
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:53


rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:45