Ignore:
Timestamp:
07/05/11 10:24:02 (13 years ago)
Author:
tbretz
Message:
Changed SetConfiguration to EvalConfiguration and its return value from bool to int; Main now returns with its return value if it is positive or zero.
File:
1 edited

Legend:

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

    r11251 r11253  
    18281828    }
    18291829
    1830     bool SetConfiguration(const Configuration &conf)
     1830    int EvalConfiguration(const Configuration &conf)
    18311831    {
    18321832        SetEndpoint(conf.Get<string>("addr"));
     
    18381838//        fFTM.SetDefaultSetup(conf.Get<string>("default-setup"));
    18391839
    1840         return true;
     1840        return -1;
    18411841    }
    18421842};
     
    18701870    // Start io_service.run to only use the commandHandler command detaching
    18711871    StateMachineFTM<S, T> io_service(wout);
    1872     if (!io_service.SetConfiguration(conf))
     1872    if (!io_service.EvalConfiguration(conf))
    18731873        return -1;
    18741874
     
    18941894
    18951895    StateMachineFTM<S, R> io_service(wout);
    1896     if (!io_service.SetConfiguration(conf))
     1896    if (!io_service.EvalConfiguration(conf))
    18971897        return -1;
    18981898
Note: See TracChangeset for help on using the changeset viewer.