]> Creatis software - bbtk.git/blob - packages/std/src/bbstdConfiguration.h
*** empty log message ***
[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(DocPath,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::AtomicBlackBox);
26   BBTK_NAME("Configuration");
27   BBTK_AUTHOR("jpr@creatis.insa-lyon.fr");
28   BBTK_CATEGORY("misc");
29   BBTK_DESCRIPTION("Gets configuration informations");
30   BBTK_OUTPUT(Configuration,DataPath,"Data Path",std::string);
31   BBTK_OUTPUT(Configuration,DocPath,"Documentation Path",std::string);
32   BBTK_OUTPUT(Configuration,FileSeparator,"/ or \\",std::string);  
33   BBTK_OUTPUT(Configuration,SystemType,"0=Linux 1=Windows",int);  
34   BBTK_END_DESCRIBE_BLACK_BOX(Configuration);
35 }
36 // EO namespace bbstd
37
38 #endif //  __bbstdConfiguration_h_INCLUDED__