Ignore:
Timestamp:
06/18/11 12:12:48 (13 years ago)
Author:
tbretz
Message:
Removed RunDim and replaces it with RunShell and LocalStream
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fscctrl.cc

    r11043 r11057  
    449449}
    450450
     451/*
    451452template<class S, class T>
    452453int RunDim(Configuration &conf)
    453454{
    454455    WindowLog wout;
    455 
    456     /*
    457     static Test shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);
    458 
    459     WindowLog &win  = shell.GetStreamIn();
    460     WindowLog &wout = shell.GetStreamOut();
    461     */
    462456
    463457    ReadlineColor::PrintBootMsg(wout, conf.GetName(), false);
     
    476470    io_service.Run();
    477471
    478     /*
    479     shell.SetReceiver(io_service);
    480 
    481     boost::thread t(boost::bind(RunThread, &io_service));
    482     // boost::thread t(boost::bind(&StateMachineFSC<S>::Run, &io_service));
    483 
    484     shell.Run();                 // Run the shell
    485     io_service.Stop();           // Signal Loop-thread to stop
    486     // io_service.Close();       // Obsolete, done by the destructor
    487 
    488     // Wait until the StateMachine has finished its thread
    489     // before returning and destroying the dim objects which might
    490     // still be in use.
    491     t.join();
    492     */
    493 
    494472    return 0;
    495473}
     474*/
    496475
    497476template<class T, class S, class R>
     
    645624        {
    646625            if (conf.Get<bool>("no-dim"))
    647                 return RunDim<StateMachine, ConnectionFSC>(conf);
     626                return RunShell<LocalStream, StateMachine, ConnectionFSC>(conf);
    648627            else
    649                 return RunDim<StateMachineDim, ConnectionDimFSC>(conf);
     628                return RunShell<LocalStream, StateMachineDim, ConnectionDimFSC>(conf);
    650629        }
    651630        // Cosole access w/ and w/o Dim
Note: See TracChangeset for help on using the changeset viewer.