]> Creatis software - bbtk.git/blob - packages/std/src/bbstdSpin.h
#3468 spin box
[bbtk.git] / packages / std / src / bbstdSpin.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 __bbstdSpin_h_INCLUDED__
5 #define __bbstdSpin_h_INCLUDED__
6
7 #include "bbstd_EXPORT.h"
8 #include "bbtkAtomicBlackBox.h"
9 #include "iostream"
10
11 namespace bbstd
12 {
13
14 class bbstd_EXPORT Spin
15  : 
16    public bbtk::AtomicBlackBox
17 {
18   BBTK_BLACK_BOX_INTERFACE(Spin,bbtk::AtomicBlackBox);
19 //===== 
20 // 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)
21 //===== 
22 //  BBTK_DECLARE_INPUT(In,double);
23   BBTK_DECLARE_INPUT(Loop,bool);
24   BBTK_DECLARE_INPUT(Step,double);
25   BBTK_DECLARE_INPUT(Start,double);
26   BBTK_DECLARE_INPUT(End,double);
27   BBTK_DECLARE_OUTPUT(Out,double);
28   BBTK_PROCESS(Process);
29   void Process();
30   
31   double count;
32 //===== 
33 // 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)
34 //===== 
35 };
36
37 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Spin,bbtk::AtomicBlackBox);
38   BBTK_NAME("Spin");
39   BBTK_AUTHOR("InfoDev");
40   BBTK_DESCRIPTION("Automatic counter");
41   BBTK_CATEGORY("empty");
42
43   BBTK_INPUT(Spin,Loop,"(default true) true/false",bool,"");
44   BBTK_INPUT(Spin,Step,"(default 1) step in each BoxExecute",double,"");
45   BBTK_INPUT(Spin,Start,"(default 0) Start range",double,"");
46   BBTK_INPUT(Spin,End,"(default 100) End range",double,"");
47
48   BBTK_OUTPUT(Spin,Out,"Internar count",double,"");
49   
50 BBTK_END_DESCRIBE_BLACK_BOX(Spin);
51 //===== 
52 // 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)
53 //===== 
54 }
55 // EO namespace bbstd
56
57 #endif // __bbstdSpin_h_INCLUDED__
58