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=501ddfbdce64c1cab01deeb4b7d0634ae2236c1d;hp=54aa42743d158a6415622e856c7da190bee7fe86;hpb=174355911252cb3817305ef368acd995a02ab245;p=bbtk.git diff --git a/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml b/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml index 54aa427..924e6c5 100644 --- a/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml +++ b/kernel/appli/bbCreateBlackBox/xml-templates/std-template.xml @@ -1,3 +1,30 @@ + + @@ -5,6 +32,7 @@ + __AUTHOR__ __DESCRIPTION__ __CATEGORY__ @@ -14,15 +42,14 @@ #include directives to be put in the .h generated There must be one tag per file to include Here we include the standard header iostream.h --> -
-    iostream.h
-  
+
iostream
+ - -
+  
+  
+// 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 = " <
+  
+
- -
-    bbSetInputIn(0);
-  
- -
-  
- -
-  
- + +
+//  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
+  
+
+