Ignore:
Timestamp:
05/30/12 16:16:27 (12 years ago)
Author:
tbretz
Message:
Cleaned main function.
File:
1 edited

Legend:

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

    r13983 r13984  
    607607        return -1;
    608608
    609     //try
    610     {
    611         // No console access at all
    612         if (!conf.Has("console"))
    613         {
    614 //            if (conf.Get<bool>("no-dim"))
    615 //                return RunShell<LocalStream, StateMachine, ConnectionFSC>(conf);
    616 //            else
    617                 return RunShell<LocalStream>(conf);
    618         }
    619         // Cosole access w/ and w/o Dim
    620 /*        if (conf.Get<bool>("no-dim"))
    621         {
    622             if (conf.Get<int>("console")==0)
    623                 return RunShell<LocalShell, StateMachine, ConnectionFSC>(conf);
    624             else
    625                 return RunShell<LocalConsole, StateMachine, ConnectionFSC>(conf);
    626         }
    627         else
    628 */        {
    629             if (conf.Get<int>("console")==0)
    630                 return RunShell<LocalShell>(conf);
    631             else
    632                 return RunShell<LocalConsole>(conf);
    633         }
    634     }
    635     /*catch (std::exception& e)
    636     {
    637         cerr << "Exception: " << e.what() << endl;
    638         return -1;
    639     }*/
     609    if (!conf.Has("console"))
     610        return RunShell<LocalStream>(conf);
     611
     612    if (conf.Get<int>("console")==0)
     613        return RunShell<LocalShell>(conf);
     614    else
     615        return RunShell<LocalConsole>(conf);
    640616
    641617    return 0;
Note: See TracChangeset for help on using the changeset viewer.