Ignore:
Timestamp:
10/30/12 12:53:53 (12 years ago)
Author:
tbretz
Message:
Adapted to the use of a State instance.
File:
1 edited

Legend:

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

    r14126 r14543  
    5353
    5454    // Check if we have cd'ed to a valid server
    55     const pair<int32_t, string> state = fImp->GetServerState(fCurrentServer);
    56     if (state.first==-256)
     55    const State state = fImp->GetServerState(fCurrentServer);
     56    if (state.index==-256)
    5757        return beg + "> ";
    5858
     
    6161
    6262    // If no match found or something wrong found just output the server
    63     if (state.first<-1)
     63    if (state.index<-1)
    6464        return beg + " " + serv + "> ";
    6565
    6666    // If everything found add the state to the server
    67     return beg + " " + serv + ":\033[32m\033[1m" + state.second + "\033[0m> ";
     67    return beg + " " + serv + ":\033[32m\033[1m" + state.name + "\033[0m> ";
    6868}
    6969
     
    7878        return beg + "> ";
    7979
    80     const pair<int32_t, string> state = fImp->GetServerState(fCurrentServer);
    81     if (state.first==-256)
     80    const State state = fImp->GetServerState(fCurrentServer);
     81    if (state.index==-256)
    8282        return beg + "> ";//Form("\n[%d] \033[34m\033[1m%s\033[0m> ", GetLine(), fCurrentServer.c_str());
    8383
    8484    // If no match found or something wrong found just output the server
    85     if (state.first<-1)
     85    if (state.index<-1)
    8686        return beg + " " + fCurrentServer + "> ";
    8787
    8888    // If everything found add the state to the server
    89     return beg + " " + fCurrentServer + ":" + state.second + "> ";
     89    return beg + " " + fCurrentServer + ":" + state.name + "> ";
    9090}
Note: See TracChangeset for help on using the changeset viewer.