std::vector<std::string> mInclude;
std::vector<std::string> mTypedef;
- std::string mUserConstructor;
- std::string mUserCopyConstructor;
- std::string mUserDestructor;
+ std::string mUserSetDefaultValues;
+ std::string mUserInitializeProcessing;
+ std::string mUserFinalizeProcessing;
typedef struct
{
bbtk::GetTextOrClear(BB.getChildNode("namespace"),mNamespace);
}
- // UserConstructor body
- if (BB.nChildNode("constructor"))
+ // UserSetDefaultValues body
+ if (BB.nChildNode("defaultValues"))
{
- bbtk::GetTextOrClear(BB.getChildNode("constructor"),mUserConstructor);
+ bbtk::GetTextOrClear(BB.getChildNode("defaultValues"),
+ mUserSetDefaultValues);
}
- // UserCopyConstructor body
- if (BB.nChildNode("copyconstructor"))
+ // UserInitializeProcessing body
+ if (BB.nChildNode("initializeProcessing"))
{
- bbtk::GetTextOrClear(BB.getChildNode("copyconstructor"),mUserCopyConstructor);
+ bbtk::GetTextOrClear(BB.getChildNode("initializeProcessing"),
+ mUserInitializeProcessing);
}
- // UserDestructor body
- if (BB.nChildNode("destructor"))
+ // UserFinalizeProcessing body
+ if (BB.nChildNode("finalizeProcessing"))
{
- bbtk::GetTextOrClear(BB.getChildNode("destructor"),mUserDestructor);
+ bbtk::GetTextOrClear(BB.getChildNode("finalizeProcessing"),
+ mUserFinalizeProcessing);
}
-
- // Template parameters
+
+
+
+ // Template parameters
// mNbTemplateParam = BB.nChildNode("template");
if ( BB.nChildNode("template") > 0)
{
bbtk::GetTextOrClear(BB.getChildNode("createwidget"),mCreateWidget);
}
+
+
+
+
+
+
+
+ // OBSOLETE/UNSUPPORTED TAGS
+ // WARN IF OBSOLETE TAGS PROVIDED
+ if (BB.nChildNode("constructor"))
+ {
+ std::cout << "WARNING !!! The tag <constructor> is obsolete !!"<<std::endl;
+ }
+ if (BB.nChildNode("destructor"))
+ {
+ std::cout << "WARNING !!! The tag <destructor> is obsolete !!"<<std::endl;
+ }
+ if (BB.nChildNode("copy_constructor"))
+ {
+ std::cout << "WARNING !!! The tag <copy_constructor> is obsolete !!"<<std::endl;
+ }
+
+
+
}
//==========================================================================
}
// Declare user constructor / copy cons /destr
+ /*
mFile << "//=================================================================="<<std::endl;
mFile << "/// User callback called in the box contructor"<<std::endl;
mFile << "virtual void bbUserDestructor();"<<std::endl;
mFile << "//=================================================================="<<std::endl;
-
+ */
// Inputs
std::vector<IO>::iterator ioi;
}
// User constr / copy constr / destr implementation
- mFile <<"void "<<mName<<"::bbUserConstructor()"<<std::endl;
- mFile << "{"<<std::endl;
- //mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserConstructor()"<<std::endl);"<<std::endl;
-
- mFile << mUserConstructor << std::endl;
+ mFile <<"void "<<mName<<"::bbUserSetDefaultValues()"<<std::endl;
+ mFile << "{"<<std::endl;
+ mFile << mUserSetDefaultValues << std::endl;
mFile << "}" << std::endl;
- mFile <<"void "<<mName<<"::bbUserCopyConstructor(bbtk::BlackBox::Pointer)"
+ mFile <<"void "<<mName<<"::bbUserInitializeProcessing()"
<<std::endl;
mFile << "{"<<std::endl;
- //mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserCopyConstructor()"<<std::endl);"<<std::endl;
- mFile << mUserCopyConstructor << std::endl;
+ mFile << mUserInitializeProcessing << std::endl;
mFile << "}" << std::endl;
- mFile <<"void "<<mName<<"::bbUserDestructor()"<<std::endl;
+ mFile <<"void "<<mName<<"::bbUserFinalizeProcessing()"<<std::endl;
mFile << "{"<<std::endl;
- //mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserDestructor()"<<std::endl);"<<std::endl;
- mFile << mUserDestructor << std::endl;
+ mFile << mUserFinalizeProcessing << std::endl;
mFile << "}" << std::endl;