]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdSpin.h
#3468 spin box
[bbtk.git] / packages / std / src / bbstdSpin.h
diff --git a/packages/std/src/bbstdSpin.h b/packages/std/src/bbstdSpin.h
new file mode 100644 (file)
index 0000000..0b45cba
--- /dev/null
@@ -0,0 +1,58 @@
+//===== 
+// 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)
+//===== 
+#ifndef __bbstdSpin_h_INCLUDED__
+#define __bbstdSpin_h_INCLUDED__
+
+#include "bbstd_EXPORT.h"
+#include "bbtkAtomicBlackBox.h"
+#include "iostream"
+
+namespace bbstd
+{
+
+class bbstd_EXPORT Spin
+ : 
+   public bbtk::AtomicBlackBox
+{
+  BBTK_BLACK_BOX_INTERFACE(Spin,bbtk::AtomicBlackBox);
+//===== 
+// 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)
+//===== 
+//  BBTK_DECLARE_INPUT(In,double);
+  BBTK_DECLARE_INPUT(Loop,bool);
+  BBTK_DECLARE_INPUT(Step,double);
+  BBTK_DECLARE_INPUT(Start,double);
+  BBTK_DECLARE_INPUT(End,double);
+  BBTK_DECLARE_OUTPUT(Out,double);
+  BBTK_PROCESS(Process);
+  void Process();
+  
+  double count;
+//===== 
+// 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)
+//===== 
+};
+
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(Spin,bbtk::AtomicBlackBox);
+  BBTK_NAME("Spin");
+  BBTK_AUTHOR("InfoDev");
+  BBTK_DESCRIPTION("Automatic counter");
+  BBTK_CATEGORY("empty");
+
+  BBTK_INPUT(Spin,Loop,"(default true) true/false",bool,"");
+  BBTK_INPUT(Spin,Step,"(default 1) step in each BoxExecute",double,"");
+  BBTK_INPUT(Spin,Start,"(default 0) Start range",double,"");
+  BBTK_INPUT(Spin,End,"(default 100) End range",double,"");
+
+  BBTK_OUTPUT(Spin,Out,"Internar count",double,"");
+  
+BBTK_END_DESCRIBE_BLACK_BOX(Spin);
+//===== 
+// 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)
+//===== 
+}
+// EO namespace bbstd
+
+#endif // __bbstdSpin_h_INCLUDED__
+