12 #ifndef CXFRAMEFOREST_H_
13 #define CXFRAMEFOREST_H_
15 #include "cxResourceExport.h"
19 #include <QDomDocument>
67 explicit FrameForest(
const std::map<QString, DataPtr>& source);
68 QDomNode getNode(QString frame);
69 QDomNode getOldestAncestor(QDomNode node);
71 QDomNode getOldestAncestorNotCommonToRef(QDomNode child, QDomNode ref);
72 std::vector<QDomNode> getDescendantsAndSelf(QDomNode node);
73 std::vector<DataPtr> getDataFromDescendantsAndSelf(QDomNode node);
74 QDomDocument getDocument();
76 bool isRootNode(QDomNode node);
77 QDomNode getNodeAnyway(QString frame);
78 bool isAncestorOf(QDomNode node, QDomNode ancestor);
80 QDomDocument mDocument;
82 std::map<QString, DataPtr> mSource;