rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
scxml4cpp::SCXMLReader Class Referenceabstract

#include <SCXMLReader.h>

Inheritance diagram for scxml4cpp::SCXMLReader:
scxml4cpp::DOMSCXMLReader

Public Member Functions

virtual ~SCXMLReader ()=default
 
virtual bool read (const std::string &filename, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)=0
 
virtual bool read (const std::string &input, const std::string &id, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)=0
 

Detailed Description

Interface class for parsing an SCXML document.

Constructor & Destructor Documentation

◆ ~SCXMLReader()

virtual scxml4cpp::SCXMLReader::~SCXMLReader ( )
virtualdefault

Member Function Documentation

◆ read() [1/2]

virtual bool scxml4cpp::SCXMLReader::read ( const std::string & filename,
std::list< Action * > * actions,
std::list< Activity * > * activities,
StateMachine & sm )
pure virtual

Read an SCXML document from file.

Parameters
filenameFile containing the SCXML document.
actionsList of Action objects to be used by the given SCXML document.
activitiesList of Activity objects to be used by the given SCXML document.
Returns
true if SCXML document could be parsed without errors, false otherwise.

Implemented in scxml4cpp::DOMSCXMLReader.

◆ read() [2/2]

virtual bool scxml4cpp::SCXMLReader::read ( const std::string & input,
const std::string & id,
std::list< Action * > * actions,
std::list< Activity * > * activities,
StateMachine & sm )
pure virtual

Read an SCXML document from string.

Parameters
inputString containing the SCXML document.
idString used as identifier for the SCXML document.
actionsList of Action objects to be used by the given SCXML document.
activitiesList of Activity objects to be used by the given SCXML document.
Returns
true if SCXML document could be parsed without errors, false otherwise.

Implemented in scxml4cpp::DOMSCXMLReader.


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