rad 8.2.0
Loading...
Searching...
No Matches
scxml4cpp::SCXMLWriter Class Referenceabstract

#include <SCXMLWriter.h>

Inheritance diagram for scxml4cpp::SCXMLWriter:
scxml4cpp::SCXMLWriterImpl

Public Member Functions

virtual ~SCXMLWriter ()=default
 
virtual void write (const std::string &filename, StateMachine &sm)=0
 
virtual std::string write (StateMachine &sm)=0
 

Detailed Description

Interface class for writing an SCXML document from the State Machine in memory representation.

Constructor & Destructor Documentation

◆ ~SCXMLWriter()

virtual scxml4cpp::SCXMLWriter::~SCXMLWriter ( )
virtualdefault

Member Function Documentation

◆ write() [1/2]

virtual void scxml4cpp::SCXMLWriter::write ( const std::string & filename,
StateMachine & sm )
pure virtual

Write an SCXML document to file. In case of errors, exception is thrown.

Parameters
filenameFile containing the SCXML document.
smSCXML model to be saved to file.

Implemented in scxml4cpp::SCXMLWriterImpl.

◆ write() [2/2]

virtual std::string scxml4cpp::SCXMLWriter::write ( StateMachine & sm)
pure virtual

Write an SCXML document to string. In case of errors, exception is thrown.

Parameters
smSCXML model to be converted to string.
Returns
The SM model serialized to string.

Implemented in scxml4cpp::SCXMLWriterImpl.


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