Changeset 358
- Timestamp:
- 06/08/09 15:22:12 (16 years ago)
- Location:
- bdm
- Files:
-
- 14 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/CMakeLists.txt
r357 r358 6 6 SET(BdmUI libconfig/libconfigcpp.cc libconfig/grammar.c libconfig/libconfig.c libconfig/scanner.c user_info.cpp user_info.h ) 7 7 8 # add BDMLIB compile flag 9 ADD_DEFINITIONS(-DBDMLIB) 10 8 11 # Normal BDM library 9 12 add_library (bdm STATIC bdmroot.cpp bdmroot.h itpp_ext.cpp itpp_ext.h osutils.cpp osutils.h ${BdmMath} ${BdmStat} ${BdmEstim} ${BdmUI}) -
bdm/estim/arx.cpp
r357 r358 1 1 #include "arx.h" 2 #include "..\user_info.h"3 2 4 3 namespace bdm { -
bdm/estim/arx.h
r357 r358 16 16 #include "../stat/libFN.h" 17 17 #include "../stat/libEF.h" 18 #include "../user_info.h" 18 19 19 20 namespace bdm { -
bdm/estim/libKF.cpp
r357 r358 1 1 2 2 #include "libKF.h" 3 #include "..\user_info.h"4 3 5 4 namespace bdm{ -
bdm/estim/libKF.h
r357 r358 18 18 #include "../stat/libEF.h" 19 19 #include "../math/chmat.h" 20 #include "../user_info.h" 20 21 21 22 namespace bdm -
bdm/stat/libBM.h
r357 r358 195 195 }; 196 196 197 UIREGISTER(RV);198 197 199 198 //! Concat two random variables -
bdm/stat/libDS.cpp
r357 r358 1 1 2 2 #include "libDS.h" 3 #include "..\user_info.h"3 //#include "..\user_info.h" 4 4 5 5 using namespace bdm; -
bdm/stat/libDS.h
r357 r358 17 17 #include "libBM.h" 18 18 #include "libEF.h" 19 19 #include "../user_info.h" 20 20 21 21 namespace bdm { -
bdm/stat/libEF.cpp
r357 r358 3 3 #include <itpp/base/bessel.h> 4 4 #include "libEF.h" 5 #include "..\user_info.h"6 5 7 6 namespace bdm{ -
bdm/stat/libEF.h
r357 r358 17 17 #include "libBM.h" 18 18 #include "../math/chmat.h" 19 #include "../user_info.h"19 //#include "../user_info.h" 20 20 21 21 namespace bdm -
bdm/stat/loggers.cpp
r357 r358 30 30 { 31 31 // TODO tady se natvrdo ocekava existence stringu, nejsou zadne defaulty.. je to tak OK? 32 string itfilename = ( string)root["filename"];32 string itfilename = (const char*)root["filename"]; 33 33 maxlen = root["maxlen"]; 34 34 } … … 162 162 { 163 163 // TODO tady se natvrdo ocekava existence stringu, nejsou zadne defaulty.. je to tak OK? 164 dirname = ( string)root["dirname"];164 dirname = (const char*)root["dirname"]; 165 165 maxlen = root["maxlen"]; 166 166 scalarnames.set_length(0); -
bdm/stat/loggers.h
r357 r358 15 15 16 16 #include "libBM.h" 17 #include ".. \user_info.h"17 #include "../user_info.h" 18 18 19 19 namespace bdm{ -
bdm/user_info.cpp
r357 r358 110 110 return; 111 111 112 string link = ( string) potential_link;112 string link = (const char*) potential_link; 113 113 size_t aerobase = link.find('@'); 114 114 if ( aerobase != string::npos ) … … 397 397 { 398 398 ASSERT_UITYPE(element,TypeString); 399 str = ( string) element;399 str = (const char*) element; 400 400 } 401 401 -
bdm/user_info.h
r357 r358 16 16 using namespace libconfig; 17 17 18 #define UIREGISTER(class_name) template<> Particular_UI<class_name>& Particular_UI<class_name>::ui = Particular_UI<class_name>(#class_name) 18 #ifdef BDMLIB 19 #define UIREGISTER(class_name) template<> const Particular_UI<class_name>& Particular_UI<class_name>::ui = Particular_UI<class_name>(#class_name) 20 #else 21 #define UIREGISTER(class_name) 22 #endif 19 23 20 24 #define ASSERT_UITYPE(S,Type) it_assert_debug(S.getType()==Setting::Type, string("Wrong setting type, see input path \"")+string(S.getPath())+string("\"")) … … 314 318 template<typename T> class Particular_UI : private UI 315 319 { 316 // to permit acces to the Particular_UI<T>::ui to the UI class 317 friend UI; 320 public: 318 321 319 322 //! default constructor, which is intentionally declared as private … … 324 327 //! the only instance of this class (each type T has its own instance) 325 328 //! which is used as a factory for processing related UI 326 static Particular_UI<T>& ui;329 static const Particular_UI<T>& ui; 327 330 328 331 bdmroot* new_instance() const