Changeset 257 for pmsm

Show
Ignore:
Timestamp:
01/28/09 10:01:19 (15 years ago)
Author:
smidl
Message:

All objects have a virtual predecessor. This allows type checking in UI, see

Location:
pmsm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pmsm/CMakeLists.txt

    r250 r257  
    3030EXEC (mpf_load pmsmsim) 
    3131 
    32 #EXEC (sim pmsmsim config++) 
     32EXEC (sim pmsmsim) 
    3333EXEC (sim_var pmsmsim) 
    3434EXEC (sim_var_arx pmsmsim) 
  • pmsm/sim.cpp

    r254 r257  
    1111*/ 
    1212 
    13 #include <config/uibuilder.h> 
     13#include <uibuilder.h> 
    1414#include <stat/libDS.h> 
    1515#include "pmsmDS.h" 
    1616 
     17#include <stat/loggers_ui.h> 
     18 
    1719using namespace bdm; 
    1820int main() { 
    19         UIFile F("sim.bdm"); 
     21        UIFile F("sim.txt"); 
    2022 
    2123        logger* L;  
    22         UIbuild(F.lookup("logger"),&L); 
     24        UIbuild(F.lookup("logger"),L); 
    2325        pmsmDS * DS; 
    24         UIbuild(F.lookup("system"),&DS); 
     26        UIbuild(F.lookup("system"),DS); 
    2527        int Ndat; 
    2628        F.lookupValue("ndat",Ndat); 
     
    3638         
    3739        L->finalize();  
     40         
     41        delete L; 
     42        delete DS; 
    3843        return 0; 
    3944}