Classdesc 3.44
|
Public Member Functions | |
RESTProcessWeakPtr (T &ptr) | |
RPPtr | process (const string &remainder, const REST_PROCESS_BUFFER &arguments) override |
std::vector< Signature > | signature () const override |
return signature(s) of the operations | |
RESTProcess_t | list () const override |
return list of subcommands to this | |
std::string | type () const override |
return type name of this | |
object * | getClassdescObject () override |
returns a classdesc object if referring to an object derived from classdesc::object | |
const object * | getConstClassdescObject () override |
REST_PROCESS_BUFFER | asBuffer () const override |
bool | isObject () const override |
Public Member Functions inherited from RESTProcessBase | |
virtual void | populate (RESTProcess_t &map) const |
populate map from the object wrapped by this, if any | |
template<class F> | |
Signature | functionSignature () const |
return signature for a function type F | |
template<class T> | |
T * | getObject () |
returns a pointer to the underlying object if it is one of type T, otherwise null | |
virtual bool | isConst () const |
true if this is a const object, a const member function or static/free function | |
virtual unsigned | arity () const |
arity if this is a function, 0 otherwise | |
virtual size_t | size () const |
size if this is a container, 0 otherwise | |
virtual RPPtr | getElem (const REST_PROCESS_BUFFER &) |
get element by position for sequences, by key for associative containers | |
virtual RPPtr | setElem (const REST_PROCESS_BUFFER &index, const REST_PROCESS_BUFFER &value) |
virtual void | insert (const REST_PROCESS_BUFFER &value) |
append to end of a sequence, or inserts key into an associative container | |
virtual void | erase (const REST_PROCESS_BUFFER &index) |
erase an element - by position for sequences, by key for associative containers | |
virtual bool | contains (const REST_PROCESS_BUFFER &key) const |
returns true if an associative container contains key | |
virtual RPPtr | keys () const |
returns a list of keys if this is an associative container, otherwise void |
Public Attributes | |
T & | ptr |
Additional Inherited Members | |
Protected Member Functions inherited from RESTProcessBase | |
template<class T> | |
enable_if< is_base_of< object, T >, constobject * >::T | getClassdescObjectImpl (T &obj) |
implementation of upcasting to a classdesc::object | |
template<class T> | |
enable_if< Not< is_base_of< object, T > >, constobject * >::T | getClassdescObjectImpl (T &obj) |
|
inlineoverridevirtual |
Implements RESTProcessBase.
returns a classdesc object if referring to an object derived from classdesc::object
Reimplemented from RESTProcessBase.
References RESTProcessBase::getClassdescObjectImpl().
Reimplemented from RESTProcessBase.
|
inlineoverridevirtual |
true if this is an object, not a function
Reimplemented from RESTProcessBase.
|
inlineoverridevirtual |
return list of subcommands to this
Implements RESTProcessBase.
References RESTProcessObject< T >::list().
|
overridevirtual |
perform the REST operation, with path being the path string and arguments as body text result of operation is returned as an object, and can be serialised into REST_PROCESS_BUFFER using asBuffer
Implements RESTProcessBase.
return signature(s) of the operations
Implements RESTProcessBase.
|
inlineoverridevirtual |
return type name of this
Implements RESTProcessBase.