Ignition Transport

API Reference

6.0.0
ign.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef IGN_TRANSPORT_IGN_HH_
19 #define IGN_TRANSPORT_IGN_HH_
20 
21 #include <cstring>
22 
23 #include "ignition/transport/Export.hh"
24 
27 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicInfo(const char *_topic);
28 
31 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdServiceInfo(const char *_service);
32 
34 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicList();
35 
37 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdServiceList();
38 
46 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicPub(const char *_topic,
47  const char *_msgType,
48  const char *_msgData);
49 
60 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdServiceReq(const char *_service,
61  const char *_reqType,
62  const char *_repType,
63  const int _timeout,
64  const char *_reqData);
65 
69 extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicEcho(const char *_topic,
70  const double _duration);
71 
74 extern "C" const char IGNITION_TRANSPORT_VISIBLE *ignitionVersion();
75 
76 #endif
void cmdTopicInfo(const char *_topic)
External hook to execute &#39;ign topic -i&#39; from the command line.
void cmdServiceInfo(const char *_service)
External hook to execute &#39;ign service -i&#39; from the command line.
void cmdTopicPub(const char *_topic, const char *_msgType, const char *_msgData)
External hook to execute &#39;ign topic -p&#39; from the command line.
void cmdTopicList()
External hook to execute &#39;ign topic -l&#39; from the command line.
void cmdTopicEcho(const char *_topic, const double _duration)
External hook to execute &#39;ign topic -e&#39; from the command line.
const char * ignitionVersion()
External hook to read the library version.
void cmdServiceReq(const char *_service, const char *_reqType, const char *_repType, const int _timeout, const char *_reqData)
External hook to execute &#39;ign service -r&#39; from the command line.
void cmdServiceList()
External hook to execute &#39;ign service -l&#39; from the command line.