20 #ifndef PROMELAINLINES_H_29BF8EF3
21 #define PROMELAINLINES_H_29BF8EF3
23 #include "uscxml/config.h"
28 #include <xercesc/dom/DOM.hpp>
36 enum PromelaInlineType {
39 PROMELA_CODE = 0x0002,
40 PROMELA_EVENT_ALL_BUT = 0x0004,
41 PROMELA_EVENT_ONLY = 0x0008,
42 PROMELA_PROGRESS_LABEL = 0x0010,
43 PROMELA_ACCEPT_LABEL = 0x0020,
44 PROMELA_END_LABEL = 0x0040
51 return (type != PROMELA_NIL);
54 std::list<PromelaInline*> children;
60 virtual bool relatesTo(
const XERCESC_NS::DOMNode* node) {
61 return container == node;
66 const XERCESC_NS::DOMElement* container;
67 PromelaInlineType type;
70 PromelaInline() : prevSibling(NULL), nextSibling(NULL), type(PROMELA_NIL) {};
77 type = pmlInline.type;
78 container = pmlInline.container;
79 content = pmlInline.content;
80 events = Data::fromJSON(pmlInline.content);
83 virtual bool relatesTo(
const XERCESC_NS::DOMNode* node) {
84 return container == node || DOMUtils::isDescendant(node, container);
99 std::list<PromelaInline*> getRelatedTo(
const XERCESC_NS::DOMNode* node, PromelaInline::PromelaInlineType type);
100 std::list<PromelaInline*> getAllOfType(uint32_t type);
102 std::map<const XERCESC_NS::DOMNode*, std::list<PromelaInline*> > inlines;
103 std::list<PromelaInline*> allInlines;
105 static std::list<std::string> getStringLiterals(
const Data& data);
106 static std::list<std::string> getEventNames(
const Data& data);
Definition: Breakpoint.cpp:26
Definition: PromelaInlines.h:91
Definition: PromelaInlines.h:74
Definition: PromelaInlines.h:34