rad 8.2.0
Loading...
Searching...
No Matches
scxml4cpp::SCXMLWriterImpl Class Reference

#include <SCXMLWriterImpl.h>

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

Public Member Functions

 SCXMLWriterImpl ()
 
 ~SCXMLWriterImpl () override=default
 
std::string write (StateMachine &sm) override
 
void write (const std::string &filename, StateMachine &sm) override
 
- Public Member Functions inherited from scxml4cpp::SCXMLWriter
virtual ~SCXMLWriter ()=default
 

Detailed Description

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

Constructor & Destructor Documentation

◆ SCXMLWriterImpl()

scxml4cpp::SCXMLWriterImpl::SCXMLWriterImpl ( )

◆ ~SCXMLWriterImpl()

scxml4cpp::SCXMLWriterImpl::~SCXMLWriterImpl ( )
overridedefault

Member Function Documentation

◆ write() [1/2]

void scxml4cpp::SCXMLWriterImpl::write ( const std::string & filename,
StateMachine & sm )
overridevirtual

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.

Implements scxml4cpp::SCXMLWriter.

◆ write() [2/2]

std::string scxml4cpp::SCXMLWriterImpl::write ( StateMachine & sm)
overridevirtual

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.

Implements scxml4cpp::SCXMLWriter.


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