rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
scxml4cpp::DOMSCXMLReader::Impl Class Reference

#include <DOMSCXMLReaderImpl.h>

Public Member Functions

 Impl ()
 
 ~Impl ()
 
 Impl (const Impl &)=delete
 
Imploperator= (const Impl &)=delete
 
 Impl (Impl &&)=default
 
Imploperator= (Impl &&)=default
 
bool read (const std::string &filename, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)
 
bool read (const std::string &input, const std::string &id, std::list< Action * > *actions, std::list< Activity * > *activities, StateMachine &sm)
 
void setReplaceRules (const ReplaceRules &replaceRules)
 
void clearReplaceRules ()
 
const std::vector< std::string > & getWarnings () const
 
void resetWarnings ()
 

Detailed Description

Implementation based on xerces-cpp library of the SCXMLReader interface to load in memory an SCXML document.

Constructor & Destructor Documentation

◆ Impl() [1/3]

scxml4cpp::DOMSCXMLReader::Impl::Impl ( )

Constructor initializing xerces-cpp library and allocating:

  • XML tags
  • error handler
  • DOM parser.

◆ ~Impl()

scxml4cpp::DOMSCXMLReader::Impl::~Impl ( )

Destructor releasing the allocated memory for:

  • XML tags
  • error handler
  • DOM parser.

◆ Impl() [2/3]

scxml4cpp::DOMSCXMLReader::Impl::Impl ( const Impl & )
delete

Make type move-only, forbid copying.

◆ Impl() [3/3]

scxml4cpp::DOMSCXMLReader::Impl::Impl ( Impl && )
default

Member Function Documentation

◆ clearReplaceRules()

void scxml4cpp::DOMSCXMLReader::Impl::clearReplaceRules ( )

◆ getWarnings()

const std::vector< std::string > & scxml4cpp::DOMSCXMLReader::Impl::getWarnings ( ) const

◆ operator=() [1/2]

Impl & scxml4cpp::DOMSCXMLReader::Impl::operator= ( const Impl & )
delete

◆ operator=() [2/2]

Impl & scxml4cpp::DOMSCXMLReader::Impl::operator= ( Impl && )
default

◆ read() [1/2]

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

Read an SCXML document from file using xerces-cpp DOM parser.

Exceptions
std::runtime_error
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.

◆ read() [2/2]

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

Read an SCXML document from string g xerces-cpp DOM parser.

Exceptions
std::runtime_error
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.

◆ resetWarnings()

void scxml4cpp::DOMSCXMLReader::Impl::resetWarnings ( )

◆ setReplaceRules()

void scxml4cpp::DOMSCXMLReader::Impl::setReplaceRules ( const ReplaceRules & replaceRules)

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