1 <!--==========================================================================
2 STARTS THE DESCRIPTION OF THE BLACK BOX -->
3 <blackbox name="__BLACKBOXNAME__">
4 <!--=======================================================================-->
6 <!--========================================================================
7 THE BOX DOCUMENTATION -->
9 <author>__AUTHOR__</author>
10 <description>__DESCRIPTION__</description>
11 <category>__CATEGORY__</category>
12 <!--=====================================================================-->
14 <!--========================================================================
15 #include directives to be put in the .h generated
16 There must be one tag per file to include
17 Here we include the standard header iostream.h -->
18 <include><PRE>iostream</PRE></include>
19 <!--=====================================================================-->
21 <!--========================================================================
22 INPUTS/OUTPUTS DECLARATION -->
23 <!-- Declares an input with name 'In', type 'double'
24 and description 'First input' -->
26 <input name="In" type="double" description="First input"/>
28 <!-- Declares an output with name 'Out', type 'double'
29 and description 'First output' -->
30 <output name="Out" type="double" description="First output"/>
31 <!--=====================================================================-->
35 // THE MAIN PROCESSING METHOD BODY
36 // Here we simply set the input 'In' value to the output 'Out'
37 // And print out the output value
38 // INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
39 // void bbSet{Input|Output}NAME(const TYPE&)
40 // const TYPE& bbGet{Input|Output}NAME() const
42 // * NAME is the name of the input/output
43 // (the one provided in the attribute 'name' of the tag 'input')
44 // * TYPE is the C++ type of the input/output
45 // (the one provided in the attribute 'type' of the tag 'input')
46 bbSetOutputOut( bbGetInputIn() );
47 std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
50 <!--=====================================================================-->
54 // SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
55 // Here we initialize the input 'In' to 0
62 <initializeProcessing>
64 // THE INITIALIZATION METHOD BODY :
66 // but this is where you should allocate the internal/output pointers
70 </initializeProcessing>
74 // THE FINALIZATION METHOD BODY :
76 // but this is where you should desallocate the internal/output pointers
80 <!--=====================================================================-->
82 <!--=======================================================================-->
83 <!-- END OF BLACK BOX DESCRIPTION -->
85 <!--=======================================================================-->