+void BlockImplementation::assignPatterns(FunctionalBlock *_block) throw(Exception) {\r
+ \r
+ block = _block;\r
+\r
+ QFile implFile(xmlFile);\r
+\r
+ // reading in into QDomDocument\r
+ QDomDocument document("implFile");\r
+\r
+ if (!implFile.open(QIODevice::ReadOnly)) {\r
+ throw(Exception(IMPLFILE_NOACCESS));\r
+ }\r
+ if (!document.setContent(&implFile)) {\r
+ implFile.close();\r
+ throw(Exception(IMPLFILE_NOACCESS));\r
+ }\r
+ implFile.close();\r
+ QDomElement impl = document.documentElement();\r
+ QDomNodeList patternNode = impl.elementsByTagName("patterns");\r
+ if (patternNode.isEmpty()) return;\r
+ QDomElement patternElt = patternNode.at(0).toElement();\r
+ \r
+}\r
+\r