]> Creatis software - bbtk.git/blob - packages/std/src/bbstdConfiguration.h
6d8834415973ec201d06f0eb31bd03ecfaf5a2bc
[bbtk.git] / packages / std / src / bbstdConfiguration.h
1 #ifndef __bbstdConfiguration_h_INCLUDED__
2 #define __bbstdConfiguration_h_INCLUDED__
3
4 #include "bbtkUserBlackBox.h"
5
6 namespace bbstd
7 {
8
9   class Configuration
10     : 
11     public bbtk::UserBlackBox
12   {
13     BBTK_USER_BLACK_BOX_INTERFACE(Configuration,bbtk::UserBlackBox);
14       BBTK_DECLARE_OUTPUT(DataPath,std::string);
15       BBTK_DECLARE_OUTPUT(FileSeparator,std::string);
16       BBTK_DECLARE_OUTPUT(SystemType,int);
17     BBTK_PROCESS(DoProcess);
18     void DoProcess();
19
20   protected:
21     virtual void bbUserConstructor();
22
23   };
24
25   BBTK_BEGIN_DESCRIBE_BLACK_BOX(Configuration,bbtk::UserBlackBox);
26   BBTK_NAME("Configuration");
27   BBTK_AUTHOR("jpr@creatis.insa-lyon.fr");
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 }
35 // EO namespace bbstd
36
37 #endif //  __bbstdConfiguration_h_INCLUDED__
38
39