include
rosconsole_bridge
bridge.h
Go to the documentation of this file.
1
/*********************************************************************
2
* Software License Agreement (BSD License)
3
*
4
* Copyright (c) 2011, Willow Garage, Inc.
5
* All rights reserved.
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
9
* are met:
10
*
11
* * Redistributions of source code must retain the above copyright
12
* notice, this list of conditions and the following disclaimer.
13
* * Redistributions in binary form must reproduce the above
14
* copyright notice, this list of conditions and the following
15
* disclaimer in the documentation and/or other materials provided
16
* with the distribution.
17
* * Neither the name of the Willow Garage nor the names of its
18
* contributors may be used to endorse or promote products derived
19
* from this software without specific prior written permission.
20
*
21
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
* POSSIBILITY OF SUCH DAMAGE.
33
*********************************************************************/
34
35
/* Author: Ioan Sucan */
36
37
#ifndef ROSCONSOLE_BRIDGE_
38
#define ROSCONSOLE_BRIDGE_
39
40
#include <
ros/macros.h
>
41
#include <console_bridge/console.h>
42
43
#ifdef ROS_BUILD_SHARED_LIBS // ros is being built around shared libraries
44
#ifdef rosconsole_bridge_EXPORTS // we are building a shared lib/dll
45
#define ROSCONSOLE_BRIDGE_DECL ROS_HELPER_EXPORT
46
#else // we are using shared lib/dll
47
#define ROSCONSOLE_BRIDGE_DECL ROS_HELPER_IMPORT
48
#endif
49
#else // ros is being built around static libraries
50
#define ROSCONSOLE_BRIDGE_DECL
51
#endif
52
53
namespace
rosconsole_bridge
54
{
55
56
class
OutputHandlerROS
:
public
console_bridge::OutputHandler
57
{
58
public
:
59
OutputHandlerROS
(
void
);
60
virtual
void
log
(
const
std::string &text, console_bridge::LogLevel level,
const
char
*filename,
int
line);
61
};
62
63
struct
ROSCONSOLE_BRIDGE_DECL
RegisterOutputHandlerProxy
64
{
65
RegisterOutputHandlerProxy
(
void
);
66
~
RegisterOutputHandlerProxy
();
67
};
68
69
}
70
71
#define REGISTER_ROSCONSOLE_BRIDGE \
72
static rosconsole_bridge::RegisterOutputHandlerProxy __register_rosconsole_output_handler_proxy
73
74
#endif
rosconsole_bridge::OutputHandlerROS::log
virtual void log(const std::string &text, console_bridge::LogLevel level, const char *filename, int line)
Definition:
bridge.cpp:80
rosconsole_bridge::OutputHandlerROS::OutputHandlerROS
OutputHandlerROS(void)
Definition:
bridge.cpp:76
ROSCONSOLE_BRIDGE_DECL
#define ROSCONSOLE_BRIDGE_DECL
Definition:
bridge.h:50
rosconsole_bridge::RegisterOutputHandlerProxy
Definition:
bridge.h:63
macros.h
rosconsole_bridge
Definition:
bridge.h:53
rosconsole_bridge::OutputHandlerROS
Definition:
bridge.h:56
rosconsole_bridge
Author(s): Ioan Sucan
, Dirk Thomas
autogenerated on Wed Mar 2 2022 00:54:15