X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdConfiguration.h;h=00c89964bba5c7b203765adc42d15751138210b8;hb=6d2f79e0ff9b1c0b2db0d7f3d164f4f62434f08d;hp=6d8834415973ec201d06f0eb31bd03ecfaf5a2bc;hpb=e27f49d94042bf18dc5067807594325eea8b6d56;p=bbtk.git diff --git a/packages/std/src/bbstdConfiguration.h b/packages/std/src/bbstdConfiguration.h index 6d88344..00c8996 100644 --- a/packages/std/src/bbstdConfiguration.h +++ b/packages/std/src/bbstdConfiguration.h @@ -1,19 +1,20 @@ #ifndef __bbstdConfiguration_h_INCLUDED__ #define __bbstdConfiguration_h_INCLUDED__ -#include "bbtkUserBlackBox.h" +#include "bbtkAtomicBlackBox.h" namespace bbstd { - class Configuration : - public bbtk::UserBlackBox + public bbtk::AtomicBlackBox { - BBTK_USER_BLACK_BOX_INTERFACE(Configuration,bbtk::UserBlackBox); - BBTK_DECLARE_OUTPUT(DataPath,std::string); - BBTK_DECLARE_OUTPUT(FileSeparator,std::string); - BBTK_DECLARE_OUTPUT(SystemType,int); + BBTK_USER_BLACK_BOX_INTERFACE(Configuration,bbtk::AtomicBlackBox); + BBTK_DECLARE_OUTPUT(BinPath,std::string); + BBTK_DECLARE_OUTPUT(DataPath,std::string); + BBTK_DECLARE_OUTPUT(DocPath,std::string); + BBTK_DECLARE_OUTPUT(FileSeparator,std::string); + BBTK_DECLARE_OUTPUT(SystemType,int); BBTK_PROCESS(DoProcess); void DoProcess(); @@ -22,18 +23,18 @@ namespace bbstd }; - BBTK_BEGIN_DESCRIBE_BLACK_BOX(Configuration,bbtk::UserBlackBox); + BBTK_BEGIN_DESCRIBE_BLACK_BOX(Configuration,bbtk::AtomicBlackBox); BBTK_NAME("Configuration"); BBTK_AUTHOR("jpr@creatis.insa-lyon.fr"); + BBTK_CATEGORY("misc"); BBTK_DESCRIPTION("Gets configuration informations"); - BBTK_OUTPUT(Configuration,DataPath,"Sample Data Path",std::string); - BBTK_OUTPUT(Configuration,FileSeparator,"/ or \\",std::string); - BBTK_OUTPUT(Configuration,SystemType,"0=Linux 1=Windows",int); + BBTK_OUTPUT(Configuration,BinPath,"Binaries path",std::string); + BBTK_OUTPUT(Configuration,DataPath,"Data path",std::string); + BBTK_OUTPUT(Configuration,DocPath,"Documentation path",std::string); + BBTK_OUTPUT(Configuration,FileSeparator,"/ or \\",std::string); + BBTK_OUTPUT(Configuration,SystemType,"0=Linux 1=Windows",int); BBTK_END_DESCRIBE_BLACK_BOX(Configuration); - } // EO namespace bbstd #endif // __bbstdConfiguration_h_INCLUDED__ - -