24 if (
rhs.prop !=
nullptr) {
48 if (
rhs.prop !=
nullptr) {
51 }
else if (
prop !=
nullptr) {
61 if (
prop ==
nullptr) {
69 if (
prop ==
nullptr) {
111 *mPriv = *(
rhs.mPriv);
119 std::swap(mPriv,
rhs.mPriv);
126 return mPriv->readProperties();
131 return mPriv->writeProperties();
146 return mPriv->name_on_wire;
151 return !mPriv->name.empty();
161 if (!mPriv->name_on_wire.empty()) {
162 return mPriv->name +
":" + mPriv->name_on_wire;
164 if (!mPriv->name.empty()) {
174 t.mPriv->name = name;
181 t.mPriv->name = name;
182 t.mPriv->name_on_wire = name_on_wire;
189 t.mPriv->name =
"yarp/bottle";
190 t.mPriv->name_on_wire = name_on_wire;
const Searchable & readProperties() const
void addProperty(const char *key, const Value &val)
Private(Private &&rhs) noexcept
Private(const Private &rhs)
Private & operator=(const Private &rhs)
Property & writeProperties()
static Bottle & getNullBottle()
A special Bottle with no content.
A mini-server for performing network communication in the background.
A class for storing options and configuration information.
void put(const std::string &key, const std::string &value)
Associate the given key with the given string.
A base class for nested structures that can be searched.
static Type byNameOnWire(const char *name_on_wire)
const Searchable & readProperties() const
static Type byName(const char *name)
virtual ~Type()
Destructor.
std::string getNameOnWire() const
Type & addProperty(const char *key, const Value &val)
std::string toString() const
std::string getName() const
Type & operator=(const Type &rhs)
Copy assignment operator.
Property & writeProperties()
A single value (typically within a Bottle).
An interface to the operating system, including Port based communication.