Changeset 373 for library/mex/mexlog.h
- Timestamp:
- 06/11/09 16:38:30 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/mex/mexlog.h
r347 r373 1 #include " ../bdm/stat/loggers_ui.h"1 #include "stat/loggers.h" 2 2 3 namespace bdm{ 3 4 int mxReplaceFieldNM(mxArray *X,const char * fname,mxArray *X1) 4 5 { … … 19 20 }; 20 21 21 class mexlog : public memlog {22 class mexlog : public memlog { 22 23 public: 23 24 //! constructor 24 mexlog( int maxlen): memlog(maxlen,"mx"){};25 mexlog(): memlog(0,"mx"){}; 25 26 //! 26 27 mxArray* toCell(){ … … 48 49 return tmp; 49 50 } 51 void from_setting (const Setting &root){ 52 maxlen=root["maxlen"]; 53 } 50 54 }; 51 52 class UImexlog: public UIbuilder{ 53 public: 54 UImexlog():UIbuilder("mexlog"){}; 55 bdmroot* build(Setting &S) const{ 56 return new mexlog(S["maxlen"]); 57 }; 58 }; 59 UIREGISTER(UImexlog); 55 UIREGISTER(mexlog); 56 }