]> Creatis software - bbtk.git/blob - packages/std/src/bbstdConfiguration.h
=== MAJOR RELEASE ====
[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_BLACK_BOX_INTERFACE(Configuration,bbtk::AtomicBlackBox);
13     BBTK_DECLARE_OUTPUT(BinPath,std::string);
14     BBTK_DECLARE_OUTPUT(DataPath,std::string);
15     BBTK_DECLARE_OUTPUT(DocPath,std::string);
16     BBTK_DECLARE_OUTPUT(FileSeparator,std::string);
17     BBTK_DECLARE_OUTPUT(SystemType,int);
18     BBTK_PROCESS(DoProcess);
19     void DoProcess();
20
21   protected:
22     virtual void bbUserConstructor();
23
24   };
25
26   BBTK_BEGIN_DESCRIBE_BLACK_BOX(Configuration,bbtk::AtomicBlackBox);
27   BBTK_NAME("Configuration");
28   BBTK_AUTHOR("jpr@creatis.insa-lyon.fr");
29   BBTK_CATEGORY("misc");
30   BBTK_DESCRIPTION("Gets configuration informations");
31   BBTK_OUTPUT(Configuration,BinPath,"Binaries path",std::string,"directory name");
32   BBTK_OUTPUT(Configuration,DataPath,"Data path",std::string,"directory name");
33   BBTK_OUTPUT(Configuration,DocPath,"Documentation path",std::string,"directory name");
34   BBTK_OUTPUT(Configuration,FileSeparator,"/ or \\",std::string,"");  
35   BBTK_OUTPUT(Configuration,SystemType,"0=Linux 1=Windows",int,"");  
36   BBTK_END_DESCRIBE_BLACK_BOX(Configuration);
37 }
38 // EO namespace bbstd
39
40 #endif //  __bbstdConfiguration_h_INCLUDED__