Kanzi  3.9.9
Kanzi Engine C++ API
kanzi::StateManager::StateManagerRuntime Class Reference

#include <kanzi/core.ui/state_manager/state_manager_runtime.hpp>

Public Member Functions

void detach ()
 Detach state manager runtime. More...
 
virtual ~StateManagerRuntime ()
 Destructor. More...
 

Static Public Member Functions

static StateManagerRuntimeSharedPtr create (StateManagerSharedPtr stateManager, Domain *domain, const StateGroupContainer &groups, Node &objectNode)
 Constructor. More...
 

Public Attributes

Domainm_domain
 
StateGroupRuntimeContainer m_groupRuntimes
 
Nodem_objectNode
 
StateManagerSharedPtr m_stateManager
 

Protected Types

typedef shared_ptr< TargetObjectTargetObjectSharedPtr
 
typedef vector< TargetObjectSharedPtrTargetObjectVector
 

Protected Member Functions

void captureTargetObjects ()
 Starts tracking target objects. More...
 
void releaseTargetObjects ()
 Stops tracking target objects. More...
 
void removeHandlers ()
 Remove handlers from state manager runtime. More...
 
 StateManagerRuntime (StateManagerSharedPtr stateManager, Domain *domain, Node &objectNode)
 Constructor. More...
 
void stopTransitions ()
 Stop transitions recursively. More...
 
void unapplyStyles ()
 Unapply and delete styles recursively. More...
 

Protected Attributes

Node::MessageSubscriptionToken m_goToNextDefinedStateMessageSubscription
 Subscription to StateManagerGoToNextDefinedState messages. More...
 
Node::MessageSubscriptionToken m_goToPreviousDefinedStateMessageSubscription
 Subscription to StateManagerGoToPreviousDefinedState messages. More...
 
Node::MessageSubscriptionToken m_goToStateMessageSubscription
 Subscription to StateManagerGoToState messages. More...
 
TargetObjectVector m_targetObjects
 Collection of target objects. More...
 

Member Typedef Documentation

Constructor & Destructor Documentation

virtual kanzi::StateManager::StateManagerRuntime::~StateManagerRuntime ( )
virtual

Destructor.

kanzi::StateManager::StateManagerRuntime::StateManagerRuntime ( StateManagerSharedPtr  stateManager,
Domain domain,
Node objectNode 
)
inlineexplicitprotected

Constructor.

Parameters
stateManagerState manager this runtime is using.
domainDomain.
objectNodeNode owning the state manager.

Member Function Documentation

static StateManagerRuntimeSharedPtr kanzi::StateManager::StateManagerRuntime::create ( StateManagerSharedPtr  stateManager,
Domain domain,
const StateGroupContainer groups,
Node objectNode 
)
static

Constructor.

Parameters
stateManagerState manager this runtime is using.
domainDomain.
groupsList of state groups in state manager.
objectNodeNode owning the state manager.
void kanzi::StateManager::StateManagerRuntime::detach ( )

Detach state manager runtime.

void kanzi::StateManager::StateManagerRuntime::removeHandlers ( )
protected

Remove handlers from state manager runtime.

void kanzi::StateManager::StateManagerRuntime::unapplyStyles ( )
protected

Unapply and delete styles recursively.

void kanzi::StateManager::StateManagerRuntime::stopTransitions ( )
protected

Stop transitions recursively.

void kanzi::StateManager::StateManagerRuntime::releaseTargetObjects ( )
protected

Stops tracking target objects.

void kanzi::StateManager::StateManagerRuntime::captureTargetObjects ( )
protected

Starts tracking target objects.

Member Data Documentation

Domain* kanzi::StateManager::StateManagerRuntime::m_domain
Node& kanzi::StateManager::StateManagerRuntime::m_objectNode
StateGroupRuntimeContainer kanzi::StateManager::StateManagerRuntime::m_groupRuntimes
StateManagerSharedPtr kanzi::StateManager::StateManagerRuntime::m_stateManager
TargetObjectVector kanzi::StateManager::StateManagerRuntime::m_targetObjects
protected

Collection of target objects.

Node::MessageSubscriptionToken kanzi::StateManager::StateManagerRuntime::m_goToStateMessageSubscription
protected

Subscription to StateManagerGoToState messages.

Node::MessageSubscriptionToken kanzi::StateManager::StateManagerRuntime::m_goToNextDefinedStateMessageSubscription
protected

Subscription to StateManagerGoToNextDefinedState messages.

Node::MessageSubscriptionToken kanzi::StateManager::StateManagerRuntime::m_goToPreviousDefinedStateMessageSubscription
protected

Subscription to StateManagerGoToPreviousDefinedState messages.


The documentation for this class was generated from the following file: