A 32-bit integer item. More...
#include <yarp/os/impl/Storable.h>
Inheritance diagram for yarp::os::impl::StoreInt32:Public Member Functions | |
| StoreInt32 ()=default | |
| StoreInt32 (std::int32_t x) | |
| Storable * | createStorable () const override |
| Factory method. | |
| void | copy (const Storable &alt) override |
| Become a copy of the passed item. | |
| std::string | toString () const override |
| Return a standard text representation of the content of the object. | |
| void | fromString (const std::string &src) override |
| Initialize from a string representation, assuming that any syntax around this representation such as braces or parentheses has already been consumed. | |
| std::int32_t | getCode () const override |
| Get standard type code of value. | |
| bool | readRaw (ConnectionReader &reader) override |
| bool | writeRaw (ConnectionWriter &writer) const override |
| std::int8_t | asInt8 () const override |
| Get 8-bit integer value. | |
| bool | asBool () const override |
| Get boolean value. | |
| std::int16_t | asInt16 () const override |
| Get 16-bit integer value. | |
| bool | isInt32 () const override |
| Checks if value is a 32-bit integer. | |
| std::int32_t | asInt32 () const override |
| Get 32-bit integer value. | |
| std::int64_t | asInt64 () const override |
| Get 64-bit integer value. | |
| yarp::conf::float32_t | asFloat32 () const override |
| Get 32-bit floating point value. | |
| yarp::conf::float64_t | asFloat64 () const override |
| Get 64-bit floating point value. | |
| yarp::conf::vocab32_t | asVocab32 () const override |
| Get 32 bit vocabulary identifier as an integer. | |
Public Member Functions inherited from yarp::os::impl::Storable | |
| virtual | ~Storable () |
| Destructor. | |
| virtual Storable * | cloneStorable () const |
| Typed synonym for clone() | |
| bool | operator== (const yarp::os::Value &alt) const |
| yarp::os::Value * | create () const override |
| Create a new value of the same type. | |
| yarp::os::Value * | clone () const override |
| Create a copy of the value. | |
| bool | read (ConnectionReader &connection) override |
| Read this object from a network connection. | |
| bool | write (ConnectionWriter &connection) const override |
| Write this object to a network connection. | |
| bool | isBool () const override |
| Checks if value is a boolean. | |
| bool | isInt8 () const override |
| Checks if value is a 8-bit integer. | |
| bool | isInt16 () const override |
| Checks if value is a 16-bit integer. | |
| bool | isInt64 () const override |
| Checks if value is a 64-bit integer. | |
| bool | isFloat32 () const override |
| Checks if value is a 32-bit floating point number. | |
| bool | isFloat64 () const override |
| Checks if value is a 64-bit floating point number. | |
| bool | isString () const override |
| Checks if value is a string. | |
| std::string | asString () const override |
| Get string value. | |
| bool | isList () const override |
| Checks if value is a list. | |
| yarp::os::Bottle * | asList () const override |
| Get list value. | |
| bool | isDict () const override |
| Checks if value is a dictionary. | |
| yarp::os::Property * | asDict () const override |
| Get dictionary (hash table) value. | |
| bool | isVocab32 () const override |
| Checks if value is a 32bit vocabulary identifier. | |
| bool | isVocab64 () const override |
| Checks if value is a 64bit vocabulary identifier. | |
| yarp::conf::vocab64_t | asVocab64 () const override |
| Get 64 bit vocabulary identifier as an integer. | |
| bool | isBlob () const override |
| Checks if value is a binary object. | |
| const char * | asBlob () const override |
| Get binary data value. | |
| size_t | asBlobLength () const override |
| Get binary data length. | |
| bool | isNull () const override |
| Checks if the object is invalid. | |
| Searchable * | asSearchable () const override |
| Get dictionary or list value. | |
| bool | check (const std::string &key) const override |
| Check if there exists a property of the given name. | |
| yarp::os::Value & | find (const std::string &key) const override |
| Gets a value corresponding to a given keyword. | |
| yarp::os::Bottle & | findGroup (const std::string &key) const override |
| Gets a list corresponding to a given keyword. | |
| virtual void | fromStringNested (const std::string &src) |
| Initialize from a string representation. | |
| virtual std::string | toStringNested () const |
| Create string representation, including any syntax that should wrap it such as braces or parentheses. | |
| virtual std::int32_t | subCode () const |
| Return a code describing this item, used in serializing bottles. | |
| bool | isLeaf () const override |
Public Member Functions inherited from yarp::os::Value | |
| Value () | |
| Construct a list Value. | |
| Value (std::int32_t x, bool isVocab32=false) | |
| Construct an integer Value. | |
| Value (yarp::conf::float64_t x) | |
| Construct a floating point Value. | |
| Value (const std::string &str, bool isVocab32=false) | |
| Construct a string Value. | |
| Value (void *data, int length) | |
| Construct a binary data Value. | |
| Value (const Value &alt) | |
| Copy constructor. | |
| const Value & | operator= (const Value &alt) |
| Assignment operator. | |
| ~Value () override | |
| Destructor. | |
| bool | read (ConnectionReader &connection) override |
| Read this object from a network connection. | |
| bool | write (ConnectionWriter &connection) const override |
| Write this object to a network connection. | |
| bool | check (const std::string &key) const override |
| Check if there exists a property of the given name. | |
| Value & | find (const std::string &key) const override |
| Gets a value corresponding to a given keyword. | |
| Bottle & | findGroup (const std::string &key) const override |
| Gets a list corresponding to a given keyword. | |
| bool | operator== (const Value &alt) const |
| Equality test. | |
| bool | operator!= (const Value &alt) const |
| Inequality test. | |
| void | fromString (const char *str) |
| Set value to correspond to a textual representation. | |
| std::string | toString () const override |
| Return a standard text representation of the content of the object. | |
| bool | isNull () const override |
| Checks if the object is invalid. | |
| virtual bool | check (const std::string &key) const=0 |
| Check if there exists a property of the given name. | |
| virtual bool | check (const std::string &key, const std::string &comment) const |
| Check if there exists a property of the given name. | |
| virtual bool | check (const std::string &key, Value *&result, const std::string &comment="") const |
| Gets a value corresponding to a given keyword. | |
| virtual Value | check (const std::string &key, const Value &fallback, const std::string &comment="") const |
| Gets a value corresponding to a given keyword. | |
| virtual Bottle & | findGroup (const std::string &key) const=0 |
| Gets a list corresponding to a given keyword. | |
| Bottle & | findGroup (const std::string &key, const std::string &comment) const |
| Gets a list corresponding to a given keyword. | |
Public Member Functions inherited from yarp::os::Portable | |
| virtual Type | getType () const |
Public Member Functions inherited from yarp::os::PortReader | |
| virtual | ~PortReader () |
| Destructor. | |
| virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
| virtual | ~PortWriter () |
| Destructor. | |
| virtual void | onCompletion () const |
| This is called when the port has finished all writing operations. | |
| virtual void | onCommencement () const |
| This is called when the port is about to begin writing operations. | |
| virtual yarp::os::Type | getWriteType () const |
Public Member Functions inherited from yarp::os::Searchable | |
| Searchable () | |
| Default constructor. | |
| Searchable (const Searchable &rhs)=default | |
| Copy constructor. | |
| Searchable (Searchable &&rhs) noexcept=default | |
| Move constructor. | |
| virtual | ~Searchable () |
| Destructor. | |
| Searchable & | operator= (const Searchable &rhs)=default |
| Copy assignment operator. | |
| Searchable & | operator= (Searchable &&rhs) noexcept=default |
| Move assignment operator. | |
| Bottle & | findGroup (const std::string &key, const std::string &comment) const |
| Gets a list corresponding to a given keyword. | |
Static Public Attributes | |
| static const std::int32_t | code = 1 |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::impl::Storable | |
| static Storable * | createByCode (std::int32_t id) |
Static Public Member Functions inherited from yarp::os::Value | |
| static Value * | makeInt8 (std::int8_t x) |
| Create a 8-bit integer Value. | |
| static Value * | makeInt16 (std::int16_t x) |
| Create a 16-bit integer Value. | |
| static Value * | makeInt32 (std::int32_t x) |
| Create a 32-bit integer Value. | |
| static Value * | makeInt64 (std::int64_t x) |
| Create a 64-bit integer Value. | |
| static Value * | makeFloat32 (yarp::conf::float32_t x) |
| Create a 32-bit floating point Value. | |
| static Value * | makeFloat64 (yarp::conf::float64_t x) |
| Create a 64-bit floating point Value. | |
| static Value * | makeString (const std::string &str) |
| Create a string Value. | |
| static Value * | makeVocab32 (yarp::conf::vocab32_t v) |
| Create a 32 bit vocabulary identifier Value. | |
| static Value * | makeVocab32 (char a, char b=0, char c=0, char d=0) |
| Create a 32 bit vocabulary identifier Value. | |
| static Value * | makeVocab32 (const std::string &str) |
| Create a 32 bit vocabulary identifier Value If the string is longer than 4 characters, only the first 4 are used. | |
| static Value * | makeBlob (void *data, int length) |
| Create a Value containing binary data. | |
| static Value * | makeList () |
| Create a list Value. | |
| static Value * | makeList (const char *txt) |
| Create a list Value and initialize it. | |
| static Value * | makeValue (const std::string &txt) |
| Create a Value from a text description. | |
| static Value & | getNullValue () |
| Return an invalid, "null" Value. | |
Static Public Member Functions inherited from yarp::os::Portable | |
| static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
| Copy one portable to another, via writing and reading. | |
A 32-bit integer item.
Definition at line 519 of file Storable.h.
|
default |
|
inline |
Definition at line 528 of file Storable.h.
|
inlineoverridevirtual |
Get boolean value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 560 of file Storable.h.
|
inlineoverridevirtual |
Get 32-bit floating point value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 585 of file Storable.h.
|
inlineoverridevirtual |
Get 64-bit floating point value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 590 of file Storable.h.
|
inlineoverridevirtual |
Get 16-bit integer value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 565 of file Storable.h.
|
inlineoverridevirtual |
Get 32-bit integer value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 575 of file Storable.h.
|
inlineoverridevirtual |
Get 64-bit integer value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 580 of file Storable.h.
|
inlineoverridevirtual |
Get 8-bit integer value.
Reimplemented from yarp::os::impl::Storable.
Definition at line 555 of file Storable.h.
|
inlineoverridevirtual |
Get 32 bit vocabulary identifier as an integer.
Reimplemented from yarp::os::impl::Storable.
Definition at line 595 of file Storable.h.
Become a copy of the passed item.
Implements yarp::os::impl::Storable.
Definition at line 538 of file Storable.h.
|
inlineoverridevirtual |
Initialize from a string representation, assuming that any syntax around this representation such as braces or parentheses has already been consumed.
Implements yarp::os::impl::Storable.
Definition at line 229 of file Storable.cpp.
|
inlineoverridevirtual |
Get standard type code of value.
Reimplemented from yarp::os::Value.
Definition at line 547 of file Storable.h.
|
inlineoverridevirtual |
Checks if value is a 32-bit integer.
If so, asInt32() will return that integer.
Reimplemented from yarp::os::impl::Storable.
Definition at line 570 of file Storable.h.
|
overridevirtual |
Implements yarp::os::impl::Storable.
Definition at line 234 of file Storable.cpp.
|
overridevirtual |
Return a standard text representation of the content of the object.
The representation is readable by the Bottle and Property classes.
Implements yarp::os::impl::Storable.
Definition at line 224 of file Storable.cpp.
|
overridevirtual |
Implements yarp::os::impl::Storable.
Definition at line 240 of file Storable.cpp.
Definition at line 546 of file Storable.h.