rad  5.1.0
Public Member Functions | List of all members
scxml4cpp::Merger Class Reference

#include <Merger.h>

Public Member Functions

 Merger (StateMachine &sm)
 
 ~Merger ()
 
void append (StateMachine &append)
 
StatefindState (const std::string &id, std::list< State * > &list)
 

Detailed Description

This class can be used to append (in memory) an SCXML document to another (main) one.

The merging supports only a limited number of features:

Constructor & Destructor Documentation

◆ Merger()

Merger::Merger ( StateMachine sm)

Creates a merger object that is able to merge in memory two SCXML documents.

Parameters
smMain SCXML document.

◆ ~Merger()

Merger::~Merger ( )

Member Function Documentation

◆ append()

void Merger::append ( StateMachine append)

This method appends the given SCXML document to the main one passed in the constructor.

◆ findState()

State * Merger::findState ( const std::string &  id,
std::list< State * > &  list 
)

This method find a state with given identifier among a list of given states.

Parameters
idState identifier to find.
listList of states.
Returns
a pointer to the state object or null if the state is not found.

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