Class upisnd::Activity#
#include <activity.h>
Inherits the following classes: upisnd::Element
Public Functions#
Type | Name |
---|---|
upisnd_activity_e | getActivity () const Get the activity of the element. |
Element () |
|
Element (upisnd_element_ref_t el) Implicitly increments the refcount. If you got the element from C API, don't forget to unref it afterwards. |
|
Element (const Element & rhs) |
|
Element (Element && rhs) |
|
Element (upisnd_element_ref_t el, bool) |
Public Functions inherited from upisnd::Element#
See upisnd::Element
Type | Name |
---|---|
Element () |
|
Element (upisnd_element_ref_t el) Implicitly increments the refcount. If you got the element from C API, don't forget to unref it afterwards. |
|
Element (const Element & rhs) |
|
Element & | operator= (const Element & rhs) |
Element (Element && rhs) |
|
Element & | operator= (Element && rhs) |
~Element () Unreferences the element. |
|
bool | isValid () const Checks if the element is valid. |
void | release () Unreferences the underlying C upisnd_element_ref_t handle and resets the object. |
const char * | getName () const Gets the name of the element. |
upisnd_element_type_e | getType () const Gets the type of the element. |
upisnd_pin_t | getPin () const Gets the pin of the element. |
ValueFd | openValueFd (int flags) const Opens the Element 's value attribute as a file descriptor. |
T | as () const Safely casts the element to the requested class. Returns an invalid object if the cast is not possible. |
Public Static Functions#
Type | Name |
---|---|
Activity | setupActivity (ElementName name, upisnd_pin_t pin, upisnd_activity_e activity) Set up an activity element. |
Public Static Functions inherited from upisnd::Element#
See upisnd::Element
Type | Name |
---|---|
Element | get (ElementName name) Gets an Element followingupisnd_element_get semantics. |
Element | setup (ElementName name, upisnd_setup_t setup) Sets up a new Element from aupisnd_setup_t setup option container. |
Protected Functions inherited from upisnd::Element#
See upisnd::Element
Type | Name |
---|---|
upisnd_element_ref_t | ref () const |
Element (upisnd_element_ref_t el, bool) |
getActivity#
Get the activity of the element.
upisnd_activity_e upisnd::Activity::getActivity () const
Element [1/5]#
upisnd::Activity::Element ()
Element [2/5]#
Implicitly increments the refcount. If you got the element from C API, don't forget to unref it afterwards.
explicit upisnd::Activity::Element (
upisnd_element_ref_t el
)
Element [3/5]#
upisnd::Activity::Element (
const Element & rhs
)
Element [4/5]#
upisnd::Activity::Element (
Element && rhs
)
Element [5/5]#
upisnd::Activity::Element (
upisnd_element_ref_t el,
bool
)
setupActivity#
Set up an activity element.
static Activity upisnd::Activity::setupActivity (
ElementName name,
upisnd_pin_t pin,
upisnd_activity_e activity
)
See also: upisnd_setup_activity