1 <!--==========================================================================
2 STARTS THE DESCRIPTION OF THE BLACK BOX -->
3 <blackbox name="__BLACKBOXNAME__">
4 <!--=======================================================================-->
6 <!--========================================================================
7 THE BOX DOCUMENTATION -->
8 <author>__AUTHOR__</author>
9 <description>__DESCRIPTION__</description>
10 <category>__CATEGORY__</category>
11 <!--=====================================================================-->
13 <!--========================================================================
14 #include directives to be put in the .h generated
15 There must be one tag per file to include
16 Here we include the standard header iostream.h -->
20 <!--=====================================================================-->
22 <!--========================================================================
23 INPUTS/OUTPUTS DECLARATION -->
24 <!-- Declares an input with name 'In', type 'double'
25 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 <!--=====================================================================-->
33 <!--========================================================================
34 THE PROCESSING METHOD BODY :
35 Here simpy copies the value of the input 'In' to the output 'Out'
36 And prints out the value
37 INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
38 void bbSet{Input|Output}NAME(const TYPE&)
39 const TYPE& bbGet{Input|Output}NAME() const
41 * NAME is the name of the input/output
42 (the one provided in the attribute 'name' of the tag 'input')
43 * TYPE is the C++ type of the input/output
44 (the one provided in the attribute 'type' of the tag 'input') -->
46 bbSetOutputOut( bbGetInputIn() );
47 std::cout << "Output value = " <<bbGetOutputOut() << std::endl;
49 <!--=====================================================================-->
51 <!--========================================================================
52 CONSTRUCTORS / DESTRUCTORS (OPTIONAL)
53 THE CONSTRUCTION METHOD BODY :
54 Here initializes the input 'In' to 0
55 This is also where you should allocate the output pointers -->
59 <!-- THE COPY-CONSTRUCTION METHOD BODY :
61 But this is where you should allocate the output pointers if any
62 and copy the pointed values (to avoid bug caused by multiple references)-->
63 <copyconstructor><PRE>
64 </PRE></copyconstructor>
65 <!-- THE DESTRUCTION METHOD BODY :
67 but this is where you should desallocate the output pointers if any -->
70 <!--=====================================================================-->
72 <!--=======================================================================-->
73 <!-- END OF BLACK BOX DESCRIPTION -->
75 <!--=======================================================================-->