]> Creatis software - bbtk.git/blob - packages/std/src/bbstdDoubleToInt.h
Feature #1947 Added a box allowing to convert a double to an int.
[bbtk.git] / packages / std / src / bbstdDoubleToInt.h
1 //===== 
2 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
3 //===== 
4 #ifndef __bbstdDoubleToInt_h_INCLUDED__
5 #define __bbstdDoubleToInt_h_INCLUDED__
6 #include "bbstd_EXPORT.h"
7 #include "bbtkAtomicBlackBox.h"
8 #include "iostream"
9
10 namespace bbstd
11 {
12
13 class bbstd_EXPORT DoubleToInt
14  : 
15    public bbtk::AtomicBlackBox
16 {
17   BBTK_BLACK_BOX_INTERFACE(DoubleToInt,bbtk::AtomicBlackBox);
18 //===== 
19 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
20 //===== 
21   BBTK_DECLARE_INPUT(In,double);
22   BBTK_DECLARE_OUTPUT(Out,double);
23   BBTK_PROCESS(Process);
24   void Process();
25 //===== 
26 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
27 //===== 
28 };
29
30 BBTK_BEGIN_DESCRIBE_BLACK_BOX(DoubleToInt,bbtk::AtomicBlackBox);
31 BBTK_NAME("DoubleToInt");
32 BBTK_AUTHOR("Claire Mouton");
33 BBTK_DESCRIPTION("Converts a double to an int");
34 BBTK_CATEGORY("");
35 BBTK_INPUT(DoubleToInt,In,"First input",double,"");
36 BBTK_OUTPUT(DoubleToInt,Out,"First output",double,"");
37 BBTK_END_DESCRIBE_BLACK_BOX(DoubleToInt);
38 //===== 
39 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
40 //===== 
41 }
42 // EO namespace bbstd
43
44 #endif // __bbstdDoubleToInt_h_INCLUDED__
45