Ignition Transport

API Reference

4.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
27extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicInfo(const char *_topic);
28
31extern "C" void IGNITION_TRANSPORT_VISIBLE cmdServiceInfo(const char *_service);
32
34extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicList();
35
37extern "C" void IGNITION_TRANSPORT_VISIBLE cmdServiceList();
38
46extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicPub(const char *_topic,
47 const char *_msgType,
48 const char *_msgData);
49
60extern "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
69extern "C" void IGNITION_TRANSPORT_VISIBLE cmdTopicEcho(const char *_topic,
70 const double _duration);
71
74extern "C" const char IGNITION_TRANSPORT_VISIBLE *ignitionVersion();
75
76#endif
void cmdTopicPub(const char *_topic, const char *_msgType, const char *_msgData)
External hook to execute 'ign topic -p' from the command line.
const char * ignitionVersion()
External hook to read the library version.
void cmdTopicList()
External hook to execute 'ign topic -l' from the command line.
void cmdServiceList()
External hook to execute 'ign service -l' from the command line.
void cmdServiceInfo(const char *_service)
External hook to execute 'ign service -i' from the command line.
void cmdTopicEcho(const char *_topic, const double _duration)
External hook to execute 'ign topic -e' from the command line.
void cmdServiceReq(const char *_service, const char *_reqType, const char *_repType, const int _timeout, const char *_reqData)
External hook to execute 'ign service -r' from the command line.
void cmdTopicInfo(const char *_topic)
External hook to execute 'ign topic -i' from the command line.