From e0df8df54991d75c3d61d7df7f5b627d42525ba2 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Tue, 10 Nov 2009 08:06:14 +0000 Subject: [PATCH] *** empty log message *** --- kernel/appli/bbfy/bbfy.cpp | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/kernel/appli/bbfy/bbfy.cpp b/kernel/appli/bbfy/bbfy.cpp index 390e5b0..e2bddff 100644 --- a/kernel/appli/bbfy/bbfy.cpp +++ b/kernel/appli/bbfy/bbfy.cpp @@ -105,6 +105,8 @@ private: std::string mHName; std::string mCxxName; + void AlertString(); + }; //========================================================================== @@ -140,11 +142,21 @@ void bbfy::CreateBlackBox() } //========================================================================== - +void bbfy::AlertString() +{ + + mFile << "//===== \n"; + mFile << "// Don't edit this file. This file is generated from xml description.. \n"; + mFile << "//===== \n"; + +} //========================================================================== void bbfy::ParseXML() { + + + XMLResults* res = new XMLResults; XMLNode BB = XMLNode::parseFile(mFilename.c_str(),"blackbox",res); @@ -426,7 +438,7 @@ void bbfy::ParseXML() // process tag given ? if (BB.nChildNode("process")) { - bbtk::GetTextOrClear(BB.getChildNode("process"),mProcess); + bbtk::GetTextOrClear(BB.getChildNode("process"),mProcess); } // CreateWidget @@ -501,7 +513,9 @@ void bbfy::CreateHeader() mess += fullname + "\""; throw bbfyException(mess); } - + + AlertString(); + // If is widget if (mIsWidget) { @@ -609,6 +623,7 @@ void bbfy::CreateHeader() } + AlertString(); // Inputs std::vector::iterator ioi; @@ -673,6 +688,7 @@ void bbfy::CreateHeader() throw bbfyException(mess); } } + // Outputs for (ioi=mOutput.begin(); ioi!=mOutput.end(); ++ioi) @@ -736,6 +752,7 @@ void bbfy::CreateHeader() mFile << " void CreateWidget(wxWindow*);\n"; } + AlertString(); // EO black box declaration mFile << "};\n\n"; @@ -763,7 +780,8 @@ void bbfy::CreateHeader() { throw bbfyException("template bb with more than 1 templ param not impl"); } - + + // Author mFile << "BBTK_AUTHOR(\""<