]> Creatis software - bbtk.git/blob - packages/std/src/bbstdConfiguration.h
Renamed UserBlackBox into AtomicBlackBox which is a better name (versus ComplexBlackB...
[bbtk.git] / packages / std / src / bbstdConfiguration.h
1 #ifndef __bbstdConfiguration_h_INCLUDED__
2 #define __bbstdConfiguration_h_INCLUDED__
3
4 #include "bbtkAtomicBlackBox.h"
5
6 namespace bbstd
7 {
8   class Configuration
9     : 
10     public bbtk::AtomicBlackBox
11   {
12     BBTK_USER_BLACK_BOX_INTERFACE(Configuration,bbtk::AtomicBlackBox);
13       BBTK_DECLARE_OUTPUT(DataPath,std::string);
14       BBTK_DECLARE_OUTPUT(FileSeparator,std::string);
15       BBTK_DECLARE_OUTPUT(SystemType,int);
16     BBTK_PROCESS(DoProcess);
17     void DoProcess();
18
19   protected:
20     virtual void bbUserConstructor();
21
22   };
23
24   BBTK_BEGIN_DESCRIBE_BLACK_BOX(Configuration,bbtk::AtomicBlackBox);
25   BBTK_NAME("Configuration");
26   BBTK_AUTHOR("jpr@creatis.insa-lyon.fr");
27   BBTK_CATEGORY("misc");
28   BBTK_DESCRIPTION("Gets configuration informations");
29   BBTK_OUTPUT(Configuration,DataPath,"Sample Data Path",std::string);
30   BBTK_OUTPUT(Configuration,FileSeparator,"/ or \\",std::string);  
31   BBTK_OUTPUT(Configuration,SystemType,"0=Linux 1=Windows",int);  
32   BBTK_END_DESCRIBE_BLACK_BOX(Configuration);
33 }
34 // EO namespace bbstd
35
36 #endif //  __bbstdConfiguration_h_INCLUDED__