X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2Fbbfy%2Fbbfy.cpp;h=4aeb878c5719e47b2b1e9d657646ad44da31e59e;hb=41dd99d33d99d0e17448d401a1d46ef390b5d525;hp=0d7804033d4b412ba4c4c24de1f68afda858c7b1;hpb=566b55b48f939dbfbf5219d5f6c20c8c91ba56c3;p=bbtk.git diff --git a/kernel/appli/bbfy/bbfy.cpp b/kernel/appli/bbfy/bbfy.cpp index 0d78040..4aeb878 100644 --- a/kernel/appli/bbfy/bbfy.cpp +++ b/kernel/appli/bbfy/bbfy.cpp @@ -87,6 +87,7 @@ private: { std::string name; std::string type; + std::string nature; std::string descr; std::string special; std::string generic_type; @@ -361,6 +362,11 @@ void bbfy::ParseXML() io.special = n.getAttribute("special"); } + if (n.isAttributeSet("nature")) + { + io.nature = n.getAttribute("nature"); + } + if (n.isAttributeSet("generic_type")) { io.generic_type = n.getAttribute("generic_type"); @@ -395,6 +401,11 @@ void bbfy::ParseXML() io.special = n.getAttribute("special"); } + if (n.isAttributeSet("nature")) + { + io.nature = n.getAttribute("nature"); + } + if (n.isAttributeSet("generic_type")) { io.generic_type = n.getAttribute("generic_type"); @@ -530,7 +541,7 @@ void bbfy::CreateHeader() mFile << "{\n"; // Interface - mFile << " BBTK_USER_BLACK_BOX_INTERFACE(" + mFile << " BBTK_BLACK_BOX_INTERFACE(" << mName << "," << mParentBlackBox << ");\n"; @@ -755,7 +766,8 @@ void bbfy::CreateHeader() mFile << "BBTK_INPUT("; } mFile << mName << "," << ioi->name << ",\"" - << ioi->descr << "\"," << ioi->type <<");\n"; + << ioi->descr << "\"," << ioi->type << ",\"" + << ioi->nature<<"\");\n"; } // Outputs @@ -770,7 +782,8 @@ void bbfy::CreateHeader() mFile << "BBTK_OUTPUT("; } mFile << mName << "," << ioi->name << ",\"" - << ioi->descr << "\"," << ioi->type <<");\n"; + << ioi->descr << "\"," << ioi->type << ",\"" + << ioi->nature<<"\");\n"; } // EO black box description @@ -833,7 +846,7 @@ void bbfy::WriteGenericITKFilterHeader() mFile << "{\n"; // Interface - mFile << " BBTK_USER_BLACK_BOX_INTERFACE(" + mFile << " BBTK_BLACK_BOX_INTERFACE(" << mName << "Generic,bbtk::AtomicBlackBox);\n"; // Inputs @@ -978,14 +991,14 @@ void bbfy::CreateCode() if (mTemplateParam.size()>0) { // Implementation - mFile << "BBTK_USER_BLACK_BOX_TEMPLATE_IMPLEMENTATION(" + mFile << "BBTK_BLACK_BOX_TEMPLATE_IMPLEMENTATION(" << mName << "," << mParentBlackBox << ");\n"; if (mGeneric) { // Implementation - mFile << "BBTK_USER_BLACK_BOX_IMPLEMENTATION(" + mFile << "BBTK_BLACK_BOX_IMPLEMENTATION(" << mName << "Generic,bbtk::AtomicBlackBox);\n"; // Package mFile << "BBTK_ADD_BLACK_BOX_TO_PACKAGE(" @@ -1002,7 +1015,7 @@ void bbfy::CreateCode() << mName << ")\n"; // Implementation - mFile << "BBTK_USER_BLACK_BOX_IMPLEMENTATION(" + mFile << "BBTK_BLACK_BOX_IMPLEMENTATION(" << mName << "," << mParentBlackBox << ");\n"; }