1 #============================================================================
2 # STARTS THE DESCRIPTION OF THE BLACK BOX
3 <blackbox name="BBCB_BOX_NAME">
4 #============================================================================
6 #============================================================================
7 # THE BOX DOCUMENTATION
8 <author>BBCB_AUTHOR</author>
9 <description>BBCB_DESCRIPTION</description>
10 <category>BBCB_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' and description 'First input'
25 <input name="In" type="double" description="First input"/>
26 # Declares an output with name 'Out', type 'double' and description 'First output'
27 <output name="Out" type="double" description="First output"/>
28 #============================================================================
30 #============================================================================
31 # THE PROCESSING METHOD BODY :
32 # Here simpy copies the value of the input 'In' to the output 'Out'
33 # INPUT/OUTPUT ACCESSORS ARE OF THE FORM :
34 # void bbSet{Input|Output}NAME(const TYPE&)
35 # const TYPE& bbGet{Input|Output}NAME() const
37 # * NAME is the name of the input/output
38 # (the one provided in the attribute 'name' of the tag <input>)
39 # * TYPE is the C++ type of the input/output
40 # (the one provided in the attribute 'type' of the tag <input>)
42 bbSetOutputOut( bbGetInputIn() );
43 std::cout << "Here I am !" << std::endl;
45 #============================================================================
47 #============================================================================
48 # CONSTRUCTORS / DESTRUCTORS (OPTIONAL)
49 # THE CONSTRUCTION METHOD BODY :
50 # Here initializes the input 'In' to 0
51 # This is also where you should allocate the output pointers
55 # THE COPY-CONSTRUCTION METHOD BODY :
57 # But this is where you should allocate the output pointers if any
58 # and copy the pointed values (to avoid bug caused by multiple references)
59 <copyconstructor><PRE>
60 </PRE></copyconstructor>
61 # THE DESTRUCTION METHOD BODY :
63 # but this is where you should desallocate the output pointers if any
66 #============================================================================
68 #============================================================================
69 # END OF BLACK BOX DESCRIPTION
71 #============================================================================