- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

# mex_datasource.h

    00001 #include "../bdm/stat/datasources.h"
    00002 #include "mex_parser.h"
    00003
    00004 namespace bdm {
    00012 class MexDS : public MemDS {
    00014         MexDS () {};
    00015
    00033         void from_setting( const Setting &set )
    00034         {
    00035                 Data = mxArray2mat(mexGetVariable("base",set["varname"]));
    00036                 UI::get( rowid, set, "rids" );
    00037                 it_assert_debug ( max ( rowid ) <=Data.rows(),"MemDS rowid is too high for given Dat." );
    00038
    00039                 UI::get( delays, set, "tds" );
    00040                 time = max ( delays );
    00041                 it_assert_debug ( time < Data.cols(),"MemDS delays are too high." );
    00042
    00043                 RV* r = UI::build<RV>(set,"rv");
    00044                 RV ru=RV();
    00045                 set_rvs(*r,ru);
    00046         }
    00047
    00048
    00049         // TODO dodelat void to_setting( Setting &set ) const;
    00050 };
    00051
    00052 UIREGISTER(MexDS);
    00053
    00054 }