#include <DOMSCXMLReader.h>
Implementation based on xerces-cpp library of the SCXMLReader interface to load in memory an SCXML document.
◆ DOMSCXMLReader()
DOMSCXMLReader::DOMSCXMLReader |
( |
| ) |
|
Constructor initializing xerces-cpp library and allocating:
- XML tags
- error handler
- DOM parser.
◆ ~DOMSCXMLReader()
DOMSCXMLReader::~DOMSCXMLReader |
( |
| ) |
|
Destructor releasing the allocated memory for:
- XML tags
- error handler
- DOM parser.
◆ clearReplaceRules()
void DOMSCXMLReader::clearReplaceRules |
( |
| ) |
|
◆ getWarnings()
const std::vector< std::string > & DOMSCXMLReader::getWarnings |
( |
| ) |
const |
◆ read() [1/2]
bool DOMSCXMLReader::read |
( |
const std::string & |
filename, |
|
|
std::list< Action * > * |
actions, |
|
|
std::list< Activity * > * |
activities, |
|
|
StateMachine & |
sm |
|
) |
| |
|
virtual |
Read an SCXML document from file using xerces-cpp DOM parser.
- Exceptions
-
- Parameters
-
filename | File containing the SCXML document. |
actions | List of Action objects to be used by the given SCXML document. |
activities | List of Activity objects to be used by the given SCXML document. |
- Returns
- true if SCXML document could be parsed without errors, false otherwise.
Implements scxml4cpp::SCXMLReader.
◆ read() [2/2]
bool DOMSCXMLReader::read |
( |
const std::string & |
input, |
|
|
const std::string & |
id, |
|
|
std::list< Action * > * |
actions, |
|
|
std::list< Activity * > * |
activities, |
|
|
StateMachine & |
sm |
|
) |
| |
|
virtual |
Read an SCXML document from string g xerces-cpp DOM parser.
- Exceptions
-
- Parameters
-
input | String containing the SCXML document. |
id | String used as identifier for the SCXML document. |
actions | List of Action objects to be used by the given SCXML document. |
activities | List of Activity objects to be used by the given SCXML document. |
- Returns
- true if SCXML document could be parsed without errors, false otherwise.
Implements scxml4cpp::SCXMLReader.
◆ resetWarnings()
void DOMSCXMLReader::resetWarnings |
( |
| ) |
|
◆ setReplaceRules()
void DOMSCXMLReader::setReplaceRules |
( |
const ReplaceRules & |
replaceRules | ) |
|
The documentation for this class was generated from the following files: