X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2FbbCreateBlackBox%2Fxml-templates%2Fstd-template.xml;h=924e6c5fb8e9bf84b06f6b27de11c9297a246134;hb=cfad95b6e08e6e53846ffcda7fbc5932065f2c47;hp=70e19b1c41e3efa504e9e260cb8ac8b5f03143b9;hpb=f87c49c48b5b99956697759168cffb06826e4fe8;p=bbtk.git diff --git a/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml b/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml index 70e19b1..924e6c5 100644 --- a/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml +++ b/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml @@ -1,24 +1,112 @@ - + + + + + __AUTHOR__ __DESCRIPTION__ - __CategoryBlackBox__ + __CATEGORY__ + + + +
iostream
+ - - - + + -
-    bbSetOutputOut( bbGetInputIn1() + bbGetInputIn2() );
-  
+ -
-    bbSetInputIn1(0);
-    bbSetInputIn2(0);
-    bbSetOutputOut(0);
-  
+ + + + + +
+// THE MAIN PROCESSING METHOD BODY
+//   Here we simply set the input 'In' value to the output 'Out'
+//   And print out the output value
+// INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
+//    void bbSet{Input|Output}NAME(const TYPE&)
+//    const TYPE& bbGet{Input|Output}NAME() const 
+//    Where :
+//    * NAME is the name of the input/output
+//      (the one provided in the attribute 'name' of the tag 'input')
+//    * TYPE is the C++ type of the input/output
+//      (the one provided in the attribute 'type' of the tag 'input')
+    bbSetOutputOut( bbGetInputIn() );
+    std::cout << "Output value = " <
+  
+  
+
+   
+  
+//  SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX 
+//    Here we initialize the input 'In' to 0
+   bbSetInputIn(0);
+  
+
- + + +
+//  THE INITIALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should allocate the internal/output pointers 
+//    if any 
+
+  
+
+ + +
+//  THE FINALIZATION METHOD BODY :
+//    Here does nothing 
+//    but this is where you should desallocate the internal/output pointers 
+//    if any
+  
+
+ + + + + +