]> Creatis software - bbtk.git/blob - packages/std/src/bbstdAdd.xml
b6df26b4b88e23c8be3bd8e039d8fb2abfec2b55
[bbtk.git] / packages / std / src / bbstdAdd.xml
1 <?xml version="1.0" encoding="iso-8859-1"?>
2
3 <blackbox name="Add">
4
5   <author>laurent.guigues@creatis.insa-lyon.fr</author>
6   <description>Adds its inputs</description>
7   <category>math</category>
8
9   <input name="In1" type="double" description="First number to add"/>
10   <input name="In2" type="double" description="Second number to add"/>
11   <output name="Out" type="double" description="Result"/>
12
13   <process><PRE>
14     bbSetOutputOut( bbGetInputIn1() + bbGetInputIn2() );
15   </PRE></process>
16   
17   <constructor><PRE>
18     bbSetInputIn1(0);
19     bbSetInputIn2(0);
20     bbSetOutputOut(0);
21   </PRE></constructor>    
22
23 </blackbox>
24