Changeset 14543 for trunk/FACT++/src/RemoteControl.cc
- Timestamp:
- 10/30/12 12:53:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/RemoteControl.cc
r14126 r14543 53 53 54 54 // 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) 57 57 return beg + "> "; 58 58 … … 61 61 62 62 // If no match found or something wrong found just output the server 63 if (state. first<-1)63 if (state.index<-1) 64 64 return beg + " " + serv + "> "; 65 65 66 66 // 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> "; 68 68 } 69 69 … … 78 78 return beg + "> "; 79 79 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) 82 82 return beg + "> ";//Form("\n[%d] \033[34m\033[1m%s\033[0m> ", GetLine(), fCurrentServer.c_str()); 83 83 84 84 // If no match found or something wrong found just output the server 85 if (state. first<-1)85 if (state.index<-1) 86 86 return beg + " " + fCurrentServer + "> "; 87 87 88 88 // If everything found add the state to the server 89 return beg + " " + fCurrentServer + ":" + state. second+ "> ";89 return beg + " " + fCurrentServer + ":" + state.name + "> "; 90 90 }
Note:
See TracChangeset
for help on using the changeset viewer.