Changeset 1027 for trunk/source/interfaces
- Timestamp:
- May 5, 2009, 5:45:31 PM (15 years ago)
- Location:
- trunk/source/interfaces
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/src/G4VUIshell.cc
r989 r1027 149 149 ////////////////////////////////////////////////////////////////////// 150 150 { 151 printf("G4VUIshell::GetAbsCommandDirPath %s\n",apath.c_str()); 151 152 if(apath.empty()) return apath; // null string 152 153 … … 157 158 158 159 // parsing... 160 printf("G4VUIshell::GetAbsCommandDirPath bpath %s\n",bpath.c_str()); 159 161 G4String absPath= "/"; 162 printf("G4VUIshell::GetAbsCommandDirPath num %d \n",G4int(bpath.length())-1); 160 163 for(G4int indx=1; indx<=G4int(bpath.length())-1; ) { 164 printf("G4VUIshell::GetAbsCommandDirPath for %d/%d \n",indx,G4int(bpath.length())-1); 161 165 G4int jslash= bpath.index("/", indx); // search index begin with "/" 162 166 if(jslash != G4int(G4String::npos)) { … … 177 181 indx= jslash+1; 178 182 } 183 printf("G4VUIshell::GetAbsCommandDirPath RETURN %s\n",absPath.c_str()); 179 184 return absPath; 180 185 } -
trunk/source/interfaces/common/include/G4VBasicShell.hh
r989 r1027 85 85 G4String Complete(G4String); 86 86 // command completion 87 88 G4String CompleteCommand(G4String); 89 // command completion 87 90 G4String FindMatchingPath(G4UIcommandTree*,G4String); 88 91 -
trunk/source/interfaces/common/src/G4VBasicShell.cc
r921 r1027 180 180 return value; 181 181 } 182 183 184 185 182 186 G4String G4VBasicShell::FindMatchingPath( 183 187 G4UIcommandTree* aTree … … 186 190 // From intercoms/src/G4UIcommandTree::FindPath. 187 191 { 192 return aTree->CompleteCommandPath(aCommandPath); 193 188 194 #ifdef G4DEBUG 189 195 printf("G4VBasicShell::FindMatchingPath %s\n",aCommandPath.c_str()); … … 226 232 G4UIcommand* cmd = commands[i_thCommand]; 227 233 G4cout << cmd->GetCommandName() << G4endl; 234 #ifdef G4DEBUG 235 printf("%s found\n",cmd->GetCommandName().c_str()); 236 #endif 228 237 } 229 238 return empty; … … 258 267 nextPath.append(remainingPath(0,i+1)); 259 268 G4int n_treeEntry = aTree->GetTreeEntry(); 269 #ifdef G4DEBUG 270 printf(" find PATH\n"); 271 #endif 260 272 for( G4int i_thTree = 1; i_thTree <= n_treeEntry; i_thTree++ ) { 261 273 G4UIcommandTree* tree = aTree->GetTree(i_thTree); 274 #ifdef G4DEBUG 275 printf("++++LOOP+++++++++++++%s == %s \n",nextPath.c_str(), tree->GetPathName().c_str()); 276 #endif 262 277 if( nextPath == tree->GetPathName() ) { 263 278 return FindMatchingPath(tree,aCommandPath );
Note: See TracChangeset
for help on using the changeset viewer.