Refactor get topic names and types (#119)
Refactor get topic names and types (#119)

* cleanup

* refactor for multiple types, no_demangle, services

* style

* fix linkage on Windows

* remove 'redundant' lines according to cpplint...

* fix service name clipping issue

* fix warnings

* reduce scope of variable

* cleanup memory on failure

jwang11/rmw_fastrtps,ros2/rmw_fastrtps,eProsima/ROS-RMW-Fast-RTPS-cpp,jwang11/rmw_fastrtps,ros2/rmw_fastrtps