extend C++ library API

This commit is contained in:
Alexey Fedoseev
2024-05-10 18:08:01 +03:00
parent 0b974d4c1b
commit 345847ce2d
2 changed files with 19 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ namespace Cyberiada {
// -----------------------------------------------------------------------------
// Cyberiada diagram element types:
enum ElementType {
elementRoot, // document (root namespace)
elementRoot = 0, // document (root namespace)
elementSM, // state machine
elementSimpleState, // simple state
elementCompositeState, // composite state
@@ -624,6 +624,7 @@ namespace Cyberiada {
std::list<const StateMachine*> get_state_machines() const;
std::list<StateMachine*> get_state_machines();
const StateMachine* get_parent_sm(const Element* element) const;
protected:
virtual std::ostream& dump(std::ostream& os) const;