PDF
AuboStudio SDK  0.6.3
arcs::aubo_scope::ProgramNodeService Class Referenceabstract

ProgramNodeService Defines an API required for adding a new type of program node to AuboScope. More...

#include <program_node_service.h>

Public Member Functions

virtual ~ProgramNodeService ()=default
virtual std::string getId ()=0
 Get the unique identifier for this kind of program node.
virtual std::string getTitle ()=0
virtual std::string getIcon ()=0
virtual void configureContribution (ProgramContributionConfigurationPtr configuration)=0
 configureContribution
virtual ProgramNodeViewPtr createView (ViewApiProviderPtr api_provider)=0
 Creates a new View instance which implements the UI for your program node screen.
virtual ProgramNodeContributionPtr createNode (ProgramApiProviderPtr api_provider, ProgramNodeViewPtr view, DataModelPtr model, ProgramCreationContextPtr context)=0

Detailed Description

ProgramNodeService Defines an API required for adding a new type of program node to AuboScope.

Definition at line 25 of file program_node_service.h.

Constructor & Destructor Documentation

◆ ~ProgramNodeService()

virtual arcs::aubo_scope::ProgramNodeService::~ProgramNodeService ( )
virtualdefault

Member Function Documentation

◆ configureContribution()

virtual void arcs::aubo_scope::ProgramNodeService::configureContribution ( ProgramContributionConfigurationPtr configuration)
pure virtual

configureContribution

Parameters
configuration

◆ createNode()

virtual ProgramNodeContributionPtr arcs::aubo_scope::ProgramNodeService::createNode ( ProgramApiProviderPtr api_provider,
ProgramNodeViewPtr view,
DataModelPtr model,
ProgramCreationContextPtr context )
pure virtual

Creates a new program node contribution instance.

The returned node must use the supplied data model object to retrieve and store the data contained in it. All modifications to the supplied data model from the program node constructor are ignored when an existing program node is loaded or copy/pasted. Every change to the model object is registered as a separate undo/redo event in the program tree.

Parameters
api_providerthe AuboCap API object with access to domain data
viewthe View created by createView
modelobject where all configuration data of the new program node instance is to be stored in and retrieved from
contextthe creation context
Returns
the newly constructed program node contribution instance

◆ createView()

virtual ProgramNodeViewPtr arcs::aubo_scope::ProgramNodeService::createView ( ViewApiProviderPtr api_provider)
pure virtual

Creates a new View instance which implements the UI for your program node screen.

Called once when a new program is loaded or created.

Parameters
api_providerProvides access to functionality and services available from within AuboScope related to user interface and end user interaction
Returns
the view

◆ getIcon()

virtual std::string arcs::aubo_scope::ProgramNodeService::getIcon ( )
pure virtual

Returns
The icon displayed for program nodes created by this factory.

◆ getId()

virtual std::string arcs::aubo_scope::ProgramNodeService::getId ( )
pure virtual

Get the unique identifier for this kind of program node.

The identifier will be used when storing programs that use the program node.

Returns
the unique identifier.

◆ getTitle()

virtual std::string arcs::aubo_scope::ProgramNodeService::getTitle ( )
pure virtual

Returns
The text displayed in the Structure Tab for program nodes created by this factory.

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