]> Creatis software - bbtk.git/blob - packages/std/src/bbstdGetDoubleVectorSize.h
Feature #1742 Modified the output type from double to int.
[bbtk.git] / packages / std / src / bbstdGetDoubleVectorSize.h
1 #ifndef __bbstdGetDoubleVectorSize_h_INCLUDED__
2 #define __bbstdGetDoubleVectorSize_h_INCLUDED__
3 #include "bbstd_EXPORT.h"
4 #include "bbtkAtomicBlackBox.h"
5 #include "iostream"
6
7 namespace bbstd
8 {
9
10 class bbstd_EXPORT GetDoubleVectorSize
11  : 
12    public bbtk::AtomicBlackBox
13 {
14   BBTK_BLACK_BOX_INTERFACE(GetDoubleVectorSize,bbtk::AtomicBlackBox);
15   BBTK_DECLARE_INPUT(In,std::vector<double>);
16   BBTK_DECLARE_OUTPUT(VectorSize, int);
17   BBTK_PROCESS(Process);
18   void Process();
19 };
20
21 BBTK_BEGIN_DESCRIBE_BLACK_BOX(GetDoubleVectorSize,bbtk::AtomicBlackBox);
22 BBTK_NAME("GetDoubleVectorSize");
23 BBTK_AUTHOR("Claire Mouton");
24 BBTK_DESCRIPTION("Retrieves the size of a vector of double.");
25 BBTK_CATEGORY("std");
26 BBTK_INPUT(GetDoubleVectorSize,In,"Input vector.",std::vector<double>,"");
27 BBTK_OUTPUT(GetDoubleVectorSize,VectorSize,"The vector size.",int,"");
28 BBTK_END_DESCRIBE_BLACK_BOX(GetDoubleVectorSize);
29 }
30 // EO namespace bbstd
31
32 #endif // __bbstdGetDoubleVectorSize_h_INCLUDED__
33