A flexible data format for holding a bunch of numbers and strings. More...
#include <yarp/os/impl/BottleImpl.h>
Public Types | |
| using | size_type = size_t |
Public Member Functions | |
| BottleImpl () | |
| BottleImpl (Searchable *parent) | |
| virtual | ~BottleImpl () |
| bool | isInt8 (int index) |
| bool | isInt16 (int index) |
| bool | isInt32 (int index) |
| bool | isInt64 (int index) |
| bool | isFloat32 (int index) |
| bool | isFloat64 (int index) |
| bool | isString (int index) |
| bool | isList (int index) |
| Storable * | pop () |
| Storable & | get (size_type index) const |
| void | addInt8 (std::int8_t x) |
| void | addInt16 (std::int16_t x) |
| void | addInt32 (std::int32_t x) |
| void | addInt64 (std::int64_t x) |
| void | addFloat32 (yarp::conf::float32_t x) |
| void | addFloat64 (yarp::conf::float64_t x) |
| void | addVocab (std::int32_t x) |
| void | addString (const std::string &text) |
| yarp::os::Bottle & | addList () |
| yarp::os::Property & | addDict () |
| void | clear () |
| void | fromString (const std::string &line) |
| std::string | toString () const |
| size_type | size () const |
| bool | read (ConnectionReader &reader) |
| bool | write (ConnectionWriter &writer) const |
| void | onCommencement () |
| const char * | getBytes () const |
| size_t | byteCount () const |
| void | copyRange (const BottleImpl *alt, size_type first=0, size_type len=npos) |
| bool | fromBytes (const yarp::os::Bytes &data) |
| void | toBytes (yarp::os::Bytes &data) |
| bool | fromBytes (yarp::os::ConnectionReader &reader) |
| void | fromBinary (const char *text, size_t len) |
| void | specialize (std::int32_t subCode) |
| int | getSpecialization () |
| void | setNested (bool nested) |
| std::int32_t | subCode () |
| void | addBit (yarp::os::Value *bit) |
| void | addBit (const yarp::os::Value &bit) |
| yarp::os::Value & | addBit (const char *str) |
| void | hasChanged () |
| bool | checkIndex (size_type index) const |
| void | edit () |
| Value & | findGroupBit (const std::string &key) const |
| Value & | findBit (const std::string &key) const |
Static Public Member Functions | |
| static StoreNull & | getNull () |
| static bool | isComplete (const char *txt) |
Public Attributes | |
| Searchable * | parent |
| bool | invalid |
| bool | ro |
Static Public Attributes | |
| static constexpr size_type | npos = static_cast<size_type>(-1) |
A flexible data format for holding a bunch of numbers and strings.
Handy to use until you work out how to make your own more efficient formats for transmission.
Definition at line 35 of file BottleImpl.h.
| using yarp::os::impl::BottleImpl::size_type = size_t |
Definition at line 38 of file BottleImpl.h.
| BottleImpl::BottleImpl | ( | ) |
Definition at line 36 of file BottleImpl.cpp.
| BottleImpl::BottleImpl | ( | Searchable * | parent | ) |
Definition at line 46 of file BottleImpl.cpp.
|
virtual |
Definition at line 57 of file BottleImpl.cpp.
|
inline |
Definition at line 147 of file BottleImpl.h.
|
inline |
Definition at line 139 of file BottleImpl.h.
|
inline |
Definition at line 133 of file BottleImpl.h.
| yarp::os::Property & BottleImpl::addDict | ( | ) |
Definition at line 654 of file BottleImpl.cpp.
|
inline |
Definition at line 80 of file BottleImpl.h.
|
inline |
Definition at line 85 of file BottleImpl.h.
|
inline |
Definition at line 65 of file BottleImpl.h.
|
inline |
Definition at line 70 of file BottleImpl.h.
|
inline |
Definition at line 75 of file BottleImpl.h.
|
inline |
Definition at line 60 of file BottleImpl.h.
| yarp::os::Bottle & BottleImpl::addList | ( | ) |
Definition at line 647 of file BottleImpl.cpp.
|
inline |
Definition at line 95 of file BottleImpl.h.
|
inline |
Definition at line 90 of file BottleImpl.h.
| size_t BottleImpl::byteCount | ( | ) | const |
Definition at line 426 of file BottleImpl.cpp.
| bool BottleImpl::checkIndex | ( | size_type | index | ) | const |
Definition at line 583 of file BottleImpl.cpp.
| void BottleImpl::clear | ( | ) |
Definition at line 70 of file BottleImpl.cpp.
| void BottleImpl::copyRange | ( | const BottleImpl * | alt, |
| size_type | first = 0, |
||
| size_type | len = npos |
||
| ) |
Definition at line 661 of file BottleImpl.cpp.
| void BottleImpl::edit | ( | ) |
Definition at line 685 of file BottleImpl.cpp.
| Value & BottleImpl::findBit | ( | const std::string & | key | ) | const |
Definition at line 711 of file BottleImpl.cpp.
| Value & BottleImpl::findGroupBit | ( | const std::string & | key | ) | const |
Definition at line 695 of file BottleImpl.cpp.
| void BottleImpl::fromBinary | ( | const char * | text, |
| size_t | len | ||
| ) |
Definition at line 358 of file BottleImpl.cpp.
| bool BottleImpl::fromBytes | ( | const yarp::os::Bytes & | data | ) |
Definition at line 370 of file BottleImpl.cpp.
| bool BottleImpl::fromBytes | ( | yarp::os::ConnectionReader & | reader | ) |
Definition at line 334 of file BottleImpl.cpp.
| void BottleImpl::fromString | ( | const std::string & | line | ) |
Definition at line 193 of file BottleImpl.cpp.
Definition at line 642 of file BottleImpl.cpp.
| const char * BottleImpl::getBytes | ( | ) | const |
Definition at line 419 of file BottleImpl.cpp.
|
inlinestatic |
Definition at line 158 of file BottleImpl.h.
| int BottleImpl::getSpecialization | ( | ) |
Definition at line 567 of file BottleImpl.cpp.
|
inline |
Definition at line 167 of file BottleImpl.h.
|
static |
Definition at line 258 of file BottleImpl.cpp.
| bool BottleImpl::isFloat32 | ( | int | index | ) |
Definition at line 608 of file BottleImpl.cpp.
| bool BottleImpl::isFloat64 | ( | int | index | ) |
Definition at line 613 of file BottleImpl.cpp.
| bool BottleImpl::isInt16 | ( | int | index | ) |
Definition at line 593 of file BottleImpl.cpp.
| bool BottleImpl::isInt32 | ( | int | index | ) |
Definition at line 598 of file BottleImpl.cpp.
| bool BottleImpl::isInt64 | ( | int | index | ) |
Definition at line 603 of file BottleImpl.cpp.
| bool BottleImpl::isInt8 | ( | int | index | ) |
Definition at line 588 of file BottleImpl.cpp.
| bool BottleImpl::isList | ( | int | index | ) |
Definition at line 623 of file BottleImpl.cpp.
| bool BottleImpl::isString | ( | int | index | ) |
Definition at line 618 of file BottleImpl.cpp.
| void BottleImpl::onCommencement | ( | ) |
Definition at line 432 of file BottleImpl.cpp.
| Storable * BottleImpl::pop | ( | ) |
Definition at line 628 of file BottleImpl.cpp.
| bool BottleImpl::read | ( | ConnectionReader & | reader | ) |
Definition at line 450 of file BottleImpl.cpp.
| void BottleImpl::setNested | ( | bool | nested | ) |
Definition at line 572 of file BottleImpl.cpp.
| BottleImpl::size_type BottleImpl::size | ( | ) | const |
Definition at line 328 of file BottleImpl.cpp.
| void BottleImpl::specialize | ( | std::int32_t | subCode | ) |
Definition at line 561 of file BottleImpl.cpp.
| std::int32_t BottleImpl::subCode | ( | ) |
Definition at line 578 of file BottleImpl.cpp.
| void BottleImpl::toBytes | ( | yarp::os::Bytes & | data | ) |
Definition at line 411 of file BottleImpl.cpp.
| std::string BottleImpl::toString | ( | ) | const |
Definition at line 315 of file BottleImpl.cpp.
| bool BottleImpl::write | ( | ConnectionWriter & | writer | ) | const |
Definition at line 437 of file BottleImpl.cpp.
| bool yarp::os::impl::BottleImpl::invalid |
Definition at line 174 of file BottleImpl.h.
Definition at line 39 of file BottleImpl.h.
| Searchable* yarp::os::impl::BottleImpl::parent |
Definition at line 45 of file BottleImpl.h.
| bool yarp::os::impl::BottleImpl::ro |
Definition at line 175 of file BottleImpl.h.