|
libmapper 2.4.12
|
#include <mapper_cpp.h>
Public Types | |
| enum class | Status { UNDEFINED = MPR_STATUS_UNDEFINED , EXPIRED = MPR_STATUS_EXPIRED , NEW = MPR_STATUS_NEW , MODIFIED = MPR_STATUS_MODIFIED , STAGED = MPR_STATUS_STAGED , ACTIVE = MPR_STATUS_ACTIVE , REMOVED = MPR_STATUS_REMOVED , HAS_VALUE = MPR_STATUS_HAS_VALUE , NEW_VALUE = MPR_STATUS_NEW_VALUE , UPDATE_LOC = MPR_STATUS_UPDATE_LOC , UPDATE_REM = MPR_STATUS_UPDATE_REM , REL_UPSTRM = MPR_STATUS_REL_UPSTRM , REL_DNSTRM = MPR_STATUS_REL_DNSTRM , INST_OFLW = MPR_STATUS_OVERFLOW , ANY = MPR_STATUS_ANY } |
Public Member Functions | |
| operator bool () const | |
| Type | type () const |
| Graph | graph () const |
| int | get_status () const |
| Object & | reset_status () |
| template<typename... Values> | |
| Object & | set_property (const Values... vals) |
| template<typename... Values> | |
| Object & | set_local_property (const Values... vals) |
| virtual Object & | remove_property (Property prop) |
| virtual Object & | remove_property (const str_type &key) |
| virtual const Object & | push () const |
| int | num_props (bool staged=false) const |
| PropVal | property (const str_type &key=NULL) const |
| PropVal | property (Property prop) const |
| PropVal | property (int idx) const |
Objects provide a generic representation of Devices, Signals, and Maps.
|
strong |
The set of possible statuses for an Object.
| Enumerator | |
|---|---|
| UNDEFINED | Object status is undefined. |
| EXPIRED | Object record has expired. |
| NEW | Object record is new. |
| MODIFIED | Object properties have changed. |
| STAGED | Object has been staged. |
| ACTIVE | Object is active. |
| REMOVED | Object was removed. |
| HAS_VALUE | Object has a value. |
| NEW_VALUE | Object value has changed since last check. |
| UPDATE_LOC | Object value was set locally since last check. |
| UPDATE_REM | Object value was set remotely since last check. |
| REL_UPSTRM | Object instance was released upstream since last check. |
| REL_DNSTRM | Object instance was released downstream since last check. |
| INST_OFLW | No local object instances left. |
|
inline |
Get the status bitflags for an Object.
|
inline |
Retrieve the number of Properties owned by an Object.
| staged | Set to true to count properties that have been staged but not synchronized with the graph. |
|
inline |
Cast to a boolean value based on whether the underlying C object exists.
|
inline |
Retrieve a Property by name.
| key | The name of the Property to retrieve. |
|
inline |
Retrieve a Property by index.
| idx | The index of the Property to retrieve. |
|
inline |
Retrieve a Property by Property enum value.
| prop | The symbolic identifier of the Property to retrieve. |
|
inlinevirtual |
Push "staged" property changes out to the distributed graph.
Reimplemented in mapper::Device, mapper::Graph, mapper::Map, and mapper::Signal.
|
inlinevirtual |
|
inlinevirtual |
Remove a Property from an Object by symbolic identifier.
| prop | The Property to remove. |
|
inline |
Reset the ephemeral status bitflags for an Object.
|
inline |
|
inline |
Set arbitrary properties for an Object.
| vals | The Properties to add or modify. |