Changeset 373 for library/mex/mexlog.h

Show
Ignore:
Timestamp:
06/11/09 16:38:30 (15 years ago)
Author:
smidl
Message:

adaptation of mexes to new UI (compiles - does not work!!)

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" 
    22 
     3namespace bdm{ 
    34int mxReplaceFieldNM(mxArray *X,const char * fname,mxArray *X1) 
    45{ 
     
    1920}; 
    2021 
    21 class mexlog : public memlog{ 
     22class mexlog : public memlog { 
    2223        public: 
    2324        //! constructor 
    24         mexlog(int maxlen): memlog(maxlen,"mx"){}; 
     25        mexlog(): memlog(0,"mx"){}; 
    2526        //! 
    2627        mxArray* toCell(){ 
     
    4849                return tmp; 
    4950        } 
     51        void from_setting (const Setting &root){ 
     52          maxlen=root["maxlen"]; 
     53        } 
    5054}; 
    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); 
     55UIREGISTER(mexlog); 
     56}