MT Showcase SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Showcase::ServiceComponent Class Reference

This is a component that creates a service. More...

#include <ServiceComponent.hpp>

Inheritance diagram for Showcase::ServiceComponent:
Showcase::Component Showcase::SystemConfiguration

Public Member Functions

virtual void placeholderStatusChanged (const NodeId &id) override
 
- Public Member Functions inherited from Showcase::Component
 Component (CachedGraphPtr uiGraph=nullptr)
 Create a new component. More...
 
void setCachedGraph (CachedGraphPtr uiGraph)
 Showcase nodes are stored in cached graphs. More...
 
void init (const GraphNode &confNode)
 Initializes the component and links it to the given graph node. More...
 
const QString & name () const
 Each component has a unique name that identifies it. More...
 
void setComponentName (const QString &name)
 Set a new name for this coomponent. More...
 
void setSchema (const Schema &schema)
 Schema holds the definition of the component. More...
 
const Schemaschema () const
 Get the schema of this component. More...
 
ComponentInstancePtr createInstance ()
 A single component can have multiple instances, each instance behaves independently from one another, but is tied to the creator component. More...
 
void instanceDestroyed (ComponentInstanceKey key)
 Component keeps track of its instances, and must be notified when an instance is destroyed. More...
 
size_t numInstances () const
 Returns the current number of alive instances created from this component. More...
 
CachedGraphPtr cachedGraph () const
 Returns the cached graph that this component is part of. More...
 
CachedNodePtr cachedNode () const
 Returns the cached graph node that links to this component. More...
 
const NodeIdnodeId () const
 Returns the node id of this component's cached node. More...
 
const std::list
< ComponentInstancePtr > & 
instances () const
 Returns all current instances of this component. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Showcase::Component
void applyForInstances (std::function< void(ComponentInstancePtr)> &&f)
 Calls f for each instance.
 

Detailed Description

This is a component that creates a service.

Member Function Documentation

void Showcase::ServiceComponent::placeholderStatusChanged ( const NodeId id)
overridevirtual

This is only needed for the 'top level service' aka system_configs-node. No other service can have children when interpreted as a graph

Implements Showcase::Component.

Reimplemented in Showcase::SystemConfiguration.