|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_PORT_H
11 #define YARP_OS_PORT_H
67 bool open(
const std::string& name)
override;
70 bool open(
const Contact& contact,
bool registerName =
true)
override;
75 bool sharedOpen(
Port& port);
86 bool openFake(
const std::string& name);
89 bool addOutput(
const std::string& name)
override;
92 bool addOutput(
const std::string& name,
const std::string& carrier)
override;
95 bool addOutput(
const Contact& contact)
override;
98 void close()
override;
101 void interrupt()
override;
104 void resume()
override;
107 Contact where()
const override;
111 const PortWriter* callback =
nullptr)
const override;
116 const PortWriter* callback =
nullptr)
const override;
125 bool replyAndDrop(
PortWriter& writer)
override;
131 void setAdminReader(
PortReader& reader)
override;
150 void enableBackgroundWrite(
bool backgroundFlag);
154 bool isWriting()
override;
157 bool setEnvelope(
PortWriter& envelope)
override;
160 bool getEnvelope(
PortReader& envelope)
override;
163 int getInputCount()
override;
166 int getOutputCount()
override;
169 void getReport(
PortReport& reporter)
override;
172 void setReporter(
PortReport& reporter)
override;
175 void resetReporter()
override;
186 void setAdminMode(
bool adminMode =
true);
189 void setInputMode(
bool expectInput)
override;
192 void setOutputMode(
bool expectOutput)
override;
195 void setRpcMode(
bool expectRpc)
override;
207 bool setTimeout(
float timeout);
209 #ifndef YARP_NO_DEPRECATED // Since YARP 3.4
217 void setVerbosity(
int level);
230 Type getType()
override;
233 void promiseType(
const Type& typ)
override;
236 Property* acquireProperties(
bool readOnly)
override;
239 void releaseProperties(
Property* prop)
override;
242 void includeNodeInName(
bool flag)
override;
249 #ifndef YARP_NO_DEPRECATED // Since YARP 3.3
259 bool setCallbackLock(std::mutex* mutex =
nullptr)
override;
262 bool removeCallbackLock()
override;
265 bool lockCallback()
override;
268 bool tryLockCallback()
override;
271 void unlockCallback()
override;
277 void* needImplementation()
const;
279 bool open(
const Contact& contact,
281 const char* fakeName);
287 #endif // YARP_OS_PORT_H
#define YARP_WARNING_PUSH
Starts a temporary alteration of the enabled warnings.
bool read(ImageOf< PixelRgb > &dest, const std::string &src, image_fileformat format=FORMAT_ANY)
#define YARP_DEPRECATED
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
A base class for objects that want information about port status changes.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A mini-server for network communication.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
#define YARP_WARNING_POP
Ends a temporary alteration of the enabled warnings.
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
The main, catch-all namespace for YARP.
RandScalar * implementation(void *t)
Basic wrapper for mutual exclusion.
bool write(const ImageOf< PixelRgb > &src, const std::string &dest, image_fileformat format=FORMAT_PPM)
#define YARP_DISABLE_DEPRECATED_WARNING
Disable deprecated warnings in the following code.
A class for storing options and configuration information.