Skip to content

Commit

Permalink
XML printing of PF/PG
Browse files Browse the repository at this point in the history
  • Loading branch information
tand00 committed Aug 20, 2024
1 parent 84ed7f1 commit e88dfb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/PQL/XMLPrinter.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ namespace unfoldtacpn {

void _accept(const AFCondition *condition) override;

void _accept(const PGCondition *condition) override;

void _accept(const PFCondition *condition) override;

void _accept(const EXCondition *condition) override;

void _accept(const AXCondition *condition) override;
Expand Down
12 changes: 12 additions & 0 deletions src/PQL/XMLPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,18 @@ namespace unfoldtacpn {
closeXmlTag("all-paths");
}

void XMLPrinter::_accept(const PGCondition *element) {
openXmlTag("globally");
(*element)[0]->visit(*this);
closeXmlTag("globally");
}

void XMLPrinter::_accept(const PFCondition *element) {
openXmlTag("finally");
(*element)[0]->visit(*this);
closeXmlTag("finally");
}

void XMLPrinter::_accept(const ControlCondition *element) {
openXmlTag("control");
(*element)[0]->visit(*this);
Expand Down

0 comments on commit e88dfb3

Please sign in to comment.