]> Creatis software - bbtk.git/blob - packages/std/src/bbstdAdd.xml
0d388701edb1418dce76ae1bf65a92cd8f874090
[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">First number to add</input>
10   <input name="In2" type="double">Second number to add</input>
11   <output name="Out" type="double">Result</output>
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