cleanup.cpp
Go to the documentation of this file.
1 #include <console_bridge/console.h>
3 
4 struct A {
5  A(const char* hint) {
6  CONSOLE_BRIDGE_logWarn("initializing class: %s", hint);
7  }
8  ~A() {
9  CONSOLE_BRIDGE_logWarn("destroying class");
10  }
11 };
12 
13 // destructor of static instance should use the original output handler
14 static A a("static");
15 
17 
18 int main(int argc, char **argv)
19 {
20  A a("local");
21  return 0;
22 }
~A()
Definition: cleanup.cpp:8
int main(int argc, char **argv)
Definition: cleanup.cpp:18
static A a("static")
REGISTER_ROSCONSOLE_BRIDGE
Definition: cleanup.cpp:16
Definition: cleanup.cpp:4
A(const char *hint)
Definition: cleanup.cpp:5


rosconsole_bridge
Author(s): Ioan Sucan
autogenerated on Thu Oct 26 2017 02:30:29