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

#include "gadget.hh"

Inheritance diagram for GadgetImpl:
[legend]

Public Types

usingMemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)>
usingMemberClassT = bool(*)(const SharedBase &)
usingMemberInfosP = const StringS &(*)()

Public Member Functions

GadgetImpl *_parent () const override
template<class O , class M >
void_register_parameter (O *, M *, const Param::ExtraVals &) const
void_set_parent (GadgetImpl *parent) override
PropertySaccess_properties () override
Valueget_data (const String &key) const override
boolset_data (const String &key, const Value &v) override
Stringtype_nick () const override
- Public Member Functions inherited from EmittableImpl
voidemit_event (const String &type, const String &detail, const ValueR fields={}) override
voidemit_notify (const String &detail) override
ASE_USE_RESULT Connectionon_event (const String &eventselector, const EventHandler &eventhandler) override
- Public Member Functions inherited from Emittable
voidjs_trigger (const String &eventselector, JsTrigger callback)
- Public Member Functions inherited from CustomDataContainer
template<class T >
booldel_custom_data (CustomDataKey< T > *key)
template<class T >
Tget_custom_data (CustomDataKey< T > *key) const
template<class T >
boolhas_custom_data (CustomDataKey< T > *key) const
template<class T >
voidset_custom_data (CustomDataKey< T > *key, T data)
- Public Member Functions inherited from Gadget
ProjectImpl *_project () const
virtual PropertyPaccess_property (String ident)
Valueget_value (String ident)
virtual StringSlist_properties ()
boolset_value (String ident, const Value &v)

Protected Types

enum : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK }

Protected Member Functions

virtual voidcreate_properties ()
virtual Stringfallback_name () const
uint64_tgadget_flags () const
uint64_tgadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0))
virtual boolname_ (const std::string *n, std::string *q) override
voidserialize (WritNode &xs) override
virtual~GadgetImpl ()
- Protected Member Functions inherited from ObjectImpl
virtual~ObjectImpl ()=0
- Protected Member Functions inherited from EmittableImpl
virtual~EmittableImpl ()
- Protected Member Functions inherited from VirtualBase
virtual~VirtualBase () noexcept=0
- Protected Member Functions inherited from Object
virtual~Object ()=0
- Protected Member Functions inherited from CustomDataContainer
voidcustom_data_destroy ()
~CustomDataContainer ()
- Protected Member Functions inherited from Gadget
Gadget ()

Static Protected Member Functions

static Stringcanonify_key (const String &input)

Protected Attributes

PropertyImplSprops_

Additional Inherited Members

- Public Attributes inherited from Gadget
Member<&Gadget::name_ >name

Detailed Description

Base type for classes that have a Property.

Member Typedef Documentation

MemberAccessF

using MemberAccessF = std::function<bool(GadgetImpl*,const Value*,Value*)>

MemberInfosP

using MemberInfosP = const StringS& (*) ()

MemberClassT

using MemberClassT = bool (*) (const SharedBase&)

Member Enumeration Documentation

anonymous enum

anonymous enum : uint64_t
protected
Enumerator
GADGET_DESTROYED
DEVICE_ACTIVE
MASTER_TRACK

Constructor & Destructor Documentation

~GadgetImpl()

~GadgetImpl ( )
protectedvirtual

Member Function Documentation

gadget_flags() [1/2]

uint64_t gadget_flags ( ) const
protected

gadget_flags() [2/2]

uint64_t gadget_flags ( uint64_t setbits,
uint64_t mask = ~uint64_t (0)
)
protected

canonify_key()

String canonify_key ( const String & input)
staticprotected

fallback_name()

String fallback_name ( ) const
protectedvirtual

Reimplemented in TrackImpl.

name_()

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

Implements Gadget.

serialize()

void serialize ( WritNode & xs)
overrideprotectedvirtual

Serialize members and childern.

Implements Serializable.

Reimplemented in NativeDeviceImpl, ProjectImpl, and TrackImpl.

create_properties()

void create_properties ( )
protectedvirtual

_set_parent()

void _set_parent ( GadgetImpl * parent)
overridevirtual

Assign parent container.

Implements Gadget.

Reimplemented in NativeDeviceImpl, and TrackImpl.

_parent()

GadgetImpl * _parent ( ) const
overridevirtual

Retrieve parent container.

Implements Gadget.

type_nick()

String type_nick ( ) const
overridevirtual

Implements Gadget.

access_properties()

PropertyS access_properties ( )
overridevirtual

Retrieve handles for all properties.

Implements Gadget.

Reimplemented in NativeDeviceImpl.

set_data()

bool set_data ( const String & key,
const Value & v
)
overridevirtual

Assign session data, prefix ephemerals with '_'.

Implements Gadget.

Reimplemented in ServerImpl.

get_data()

Value get_data ( const String & key) const
overridevirtual

Retrieve session data.

Implements Gadget.

Reimplemented in ServerImpl.

_register_parameter()

template<class O , class M >
void _register_parameter ( O * obj,
M * memb,
const Param::ExtraVals & ev
) const

Member Data Documentation

props_

PropertyImplS props_
protected