ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

"class ROSBAG_DECL Bag" in bag.h

asked 2017-07-05 04:43:52 -0500

Hridaynath gravatar image

updated 2017-07-05 04:44:29 -0500

Will some one please explain me this syntax of defining the class in bag.h

The reason why I have asked this question is - I am facing problem to create a variable/instance/reference to this class.

I don't have much exposure to c++.

Any help would be appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-07 02:35:03 -0500

gvdhoorn gravatar image

I don't have much exposure to c++.

This is really a C/C++ question rather than a ROS one. In the future: please try to find a more appropriate forum for these kind of questions.

As to what ROSBAG_DECL is: it's a macro that configures visibility of the declaration / definition that follows it. See ros_comm/tools/rosbag_storage/include/rosbag/macros.h for what it does specifically, and see gcc/wiki/visibility for general info about symbol visibility.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-07-05 04:43:52 -0500

Seen: 343 times

Last updated: Jul 07 '17