|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_OS_ABSTRACTCONTACTABLE_H
10 #define YARP_OS_ABSTRACTCONTACTABLE_H
42 bool open(
const std::string& name)
override;
45 bool open(
const Contact& contact,
bool registerName =
true)
override;
48 bool addOutput(
const std::string& name)
override;
51 bool addOutput(
const std::string& name,
const std::string& carrier)
override;
54 bool addOutput(
const Contact& contact)
override;
57 void close()
override;
60 void interrupt()
override;
63 void resume()
override;
69 std::string getName()
const override;
72 bool setEnvelope(
PortWriter& envelope)
override;
75 bool getEnvelope(
PortReader& envelope)
override;
78 int getInputCount()
override;
81 int getOutputCount()
override;
87 void setReporter(
PortReport& reporter)
override;
90 void resetReporter()
override;
93 bool isWriting()
override;
99 void setAdminReader(
PortReader& reader)
override;
102 void setInputMode(
bool expectInput)
override;
105 void setOutputMode(
bool expectOutput)
override;
108 void setRpcMode(
bool expectRpc)
override;
111 Type getType()
override;
114 void promiseType(
const Type& typ)
override;
117 Property* acquireProperties(
bool readOnly)
override;
120 void releaseProperties(
Property* prop)
override;
124 const PortWriter* callback =
nullptr)
const override;
129 const PortWriter* callback =
nullptr)
const override;
138 bool replyAndDrop(
PortWriter& writer)
override;
141 void includeNodeInName(
bool flag)
override;
143 #ifndef YARP_NO_DEPRECATED // Since YARP 3.3
148 bool setCallbackLock(
yarp::os::
Mutex* mutex) override;
153 bool setCallbackLock(std::mutex* mutex =
nullptr)
override;
156 bool removeCallbackLock()
override;
159 bool lockCallback()
override;
162 bool tryLockCallback()
override;
165 void unlockCallback()
override;
171 #endif // YARP_OS_ABSTRACTCONTACTABLE_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)
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.
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.