Changeset 14126 for trunk/FACT++/src/RemoteControl.cc
- Timestamp:
- 06/08/12 18:05:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/RemoteControl.cc
r14050 r14126 49 49 50 50 // If we have not cd'ed to a server show only the line start 51 if (fCurrentServer.empty() )51 if (fCurrentServer.empty() || !fImp) 52 52 return beg + "> "; 53 53 54 54 // Check if we have cd'ed to a valid server 55 const ClientList::const_iterator l = fClientList.find(fCurrentServer);56 if ( l==fClientList.end())55 const pair<int32_t, string> state = fImp->GetServerState(fCurrentServer); 56 if (state.first==-256) 57 57 return beg + "> "; 58 59 const State state = GetState(fCurrentServer, l->second->GetState());60 58 61 59 // The server … … 63 61 64 62 // If no match found or something wrong found just output the server 65 if (state. index<-1)63 if (state.first<-1) 66 64 return beg + " " + serv + "> "; 67 65 68 66 // If everything found add the state to the server 69 return beg + " " + serv + ":\033[32m\033[1m" + state. name+ "\033[0m> ";67 return beg + " " + serv + ":\033[32m\033[1m" + state.second + "\033[0m> "; 70 68 } 71 69 … … 77 75 78 76 // If we have not cd'ed to a server show only the line start 79 if (fCurrentServer.empty() )77 if (fCurrentServer.empty() || !fImp) 80 78 return beg + "> "; 81 79 82 // Check if we have cd'ed to a valid server 83 const ClientList::const_iterator l = fClientList.find(fCurrentServer); 84 if (l==fClientList.end()) 80 const pair<int32_t, string> state = fImp->GetServerState(fCurrentServer); 81 if (state.first==-256) 85 82 return beg + "> ";//Form("\n[%d] \033[34m\033[1m%s\033[0m> ", GetLine(), fCurrentServer.c_str()); 86 83 87 const State state = GetState(fCurrentServer, l->second->GetState());88 89 84 // If no match found or something wrong found just output the server 90 if (state. index<-1)85 if (state.first<-1) 91 86 return beg + " " + fCurrentServer + "> "; 92 87 93 88 // If everything found add the state to the server 94 return beg + " " + fCurrentServer + ":" + state. name+ "> ";89 return beg + " " + fCurrentServer + ":" + state.second + "> "; 95 90 }
Note:
See TracChangeset
for help on using the changeset viewer.