Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
Gadgetabstract

#include "api.hh"

Inheritance diagram for Gadget:
[legend]

Public Member Functions

virtual GadgetImpl *_parent () const =0
ProjectImpl *_project () const
virtual void_set_parent (GadgetImpl *parent)=0
virtual PropertySaccess_properties ()=0
virtual PropertyPaccess_property (String ident)
virtual Valueget_data (const String &key) const =0
Valueget_value (String ident)
virtual StringSlist_properties ()
virtual boolset_data (const String &key, const Value &v)=0
boolset_value (String ident, const Value &v)
virtual Stringtype_nick () const =0
- Public Member Functions inherited from Emittable
virtual voidemit_event (const String &type, const String &detail, const ValueR fields={})=0
virtual voidemit_notify (const String &detail)=0
voidjs_trigger (const String &eventselector, JsTrigger callback)
virtual ASE_USE_RESULT Connectionon_event (const String &eventselector, const EventHandler &eventhandler)=0

Public Attributes

Member<&Gadget::name_ >name

Protected Member Functions

Gadget ()
virtual boolname_ (const std::string *n, std::string *q)=0
- Protected Member Functions inherited from Object
virtual~Object ()=0
- Protected Member Functions inherited from VirtualBase
virtual~VirtualBase () noexcept=0

Detailed Description

Base type for classes that have a Property.

Constructor & Destructor Documentation

Gadget()

Gadget ( )
explicitprotected

Member Function Documentation

name_()

virtual bool name_ ( const std::string * n,
std::string * q
)
protectedpure virtual

Implemented in GadgetImpl.

_parent()

virtual GadgetImpl * _parent ( ) const
pure virtual

Retrieve parent container.

Implemented in GadgetImpl.

_set_parent()

virtual void _set_parent ( GadgetImpl * parent)
pure virtual

Assign parent container.

Implemented in ClapDeviceImpl, DeviceImpl, GadgetImpl, NativeDeviceImpl, and TrackImpl.

_project()

ProjectImpl * _project ( ) const

Find Project in parent ancestry.

type_nick()

virtual String type_nick ( ) const
pure virtual

Implemented in GadgetImpl.

list_properties()

StringS list_properties ( )
virtual

List all property identifiers.

access_property()

PropertyP access_property ( String ident)
virtual

Retrieve handle for a Property.

access_properties()

virtual PropertyS access_properties ( )
pure virtual

Retrieve handles for all properties.

Implemented in ClapDeviceImpl, GadgetImpl, and NativeDeviceImpl.

get_value()

Value get_value ( String ident)

Get native property value.

set_value()

bool set_value ( String ident,
const Value & v
)

Set native property value.

set_data()

virtual bool set_data ( const String & key,
const Value & v
)
pure virtual

Assign session data, prefix ephemerals with '_'.

Implemented in GadgetImpl, and ServerImpl.

get_data()

virtual Value get_data ( const String & key) const
pure virtual

Retrieve session data.

Implemented in GadgetImpl, and ServerImpl.

Member Data Documentation

name