00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef __bbstdConfiguration_h_INCLUDED__
00033 #define __bbstdConfiguration_h_INCLUDED__
00034
00035 #include "bbtkAtomicBlackBox.h"
00036
00037 namespace bbstd
00038 {
00039 class Configuration
00040 :
00041 public bbtk::AtomicBlackBox
00042 {
00043 BBTK_BLACK_BOX_INTERFACE(Configuration,bbtk::AtomicBlackBox);
00044 BBTK_DECLARE_OUTPUT(BinPath,std::string);
00045 BBTK_DECLARE_OUTPUT(DataPath,std::string);
00046 BBTK_DECLARE_OUTPUT(DocPath,std::string);
00047 BBTK_DECLARE_OUTPUT(FileSeparator,std::string);
00048 BBTK_DECLARE_OUTPUT(SystemType,int);
00049 BBTK_PROCESS(DoProcess);
00050 void DoProcess();
00051
00052 protected:
00053 virtual void bbUserConstructor();
00054
00055 };
00056
00057 BBTK_BEGIN_DESCRIBE_BLACK_BOX(Configuration,bbtk::AtomicBlackBox);
00058 BBTK_NAME("Configuration");
00059 BBTK_AUTHOR("jpr@creatis.insa-lyon [dot] fr");
00060 BBTK_CATEGORY("misc");
00061 BBTK_DESCRIPTION("Gets configuration informations");
00062 BBTK_OUTPUT(Configuration,BinPath,"Binaries path",std::string,"directory name");
00063 BBTK_OUTPUT(Configuration,DataPath,"Data path",std::string,"directory name");
00064 BBTK_OUTPUT(Configuration,DocPath,"Documentation path",std::string,"directory name");
00065 BBTK_OUTPUT(Configuration,FileSeparator,"/ or \\",std::string,"");
00066 BBTK_OUTPUT(Configuration,SystemType,"0=Linux 1=Windows",int,"");
00067 BBTK_END_DESCRIBE_BLACK_BOX(Configuration);
00068 }
00069
00070
00071 #endif // __bbstdConfiguration_h_INCLUDED__