Changeset 921 for trunk/source/interfaces/common/src/G4VBasicShell.cc
- Timestamp:
- Feb 16, 2009, 10:14:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/common/src/G4VBasicShell.cc
r850 r921 186 186 // From intercoms/src/G4UIcommandTree::FindPath. 187 187 { 188 #ifdef G4DEBUG 189 printf("G4VBasicShell::FindMatchingPath %s\n",aCommandPath.c_str()); 190 #endif 188 191 G4String empty = ""; 189 192 if(aTree==NULL) return empty; … … 193 196 remainingPath.remove(0,pathName.length()); 194 197 size_t i = remainingPath.first('/'); 198 #ifdef G4DEBUG 199 printf("G4VBasicShell::FindMatchingPath remainingPath:%s\n",remainingPath.c_str()); 200 #endif 195 201 if( i == std::string::npos ) { 202 #ifdef G4DEBUG 203 printf("G4VBasicShell::FindMatchingPath npos \n"); 204 #endif 196 205 // Look for number of matching commands : 197 206 std::vector<G4UIcommand*> commands; … … 202 211 ss.resize(remainingPath.length()); 203 212 if( remainingPath == ss ) commands.push_back(cmd); 213 #ifdef G4DEBUG 214 printf("look for command check %s %s \n",ss.c_str(),remainingPath.c_str()); 215 #endif 204 216 } 205 217 n_commandEntry = commands.size(); 218 #ifdef G4DEBUG 219 printf("%d found\n",n_commandEntry); 220 #endif 206 221 if(n_commandEntry==1) { 207 222 return (pathName + commands[0]->GetCommandName());
Note: See TracChangeset
for help on using the changeset viewer.