- Timestamp:
- May 15, 2009, 12:25:18 PM (15 years ago)
- Location:
- trunk/source/intercoms
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/intercoms/History
r1016 r1044 1 $Id: History,v 1.7 3 2008/11/21 10:57:25kmura Exp $1 $Id: History,v 1.75 2009/05/14 02:59:33 kmura Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 * Reverse chronological order (last date on top), please * 18 18 ---------------------------------------------------------- 19 20 14 May 2009 K.Murakami (intercoms-V09-02-00) 21 - tagged for release 9.3 beta 22 23 7th May 2009, Laurent Garnier 24 - G4UIcommandTree : Add a new function to complete a command path with 25 maximum characters guess. 26 - G4UIcommandTree : FindCommandTree will now return current tree when 27 command path is "/" 19 28 20 29 21 November, 2008 K.Murakami (intercoms-V09-01-01) -
trunk/source/intercoms/include/G4UIcommandTree.hh
r1031 r1044 25 25 // 26 26 // 27 // $Id: G4UIcommandTree.hh,v 1.1 6 2008/01/30 11:20:03lgarnier Exp $28 // GEANT4 tag $Name: geant4-09-02$27 // $Id: G4UIcommandTree.hh,v 1.17 2009/05/07 09:33:51 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 -
trunk/source/intercoms/src/G4UIcommandTree.cc
r1031 r1044 25 25 // 26 26 // 27 // $Id: G4UIcommandTree.cc,v 1.1 4 2008/01/30 11:20:03lgarnier Exp $28 // GEANT4 tag $Name: geant4-09-02$27 // $Id: G4UIcommandTree.cc,v 1.15 2009/05/07 09:33:51 lgarnier Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 … … 229 229 G4String pathName = aCommandPath; 230 230 G4String remainingPath = aCommandPath; 231 G4String empty = ""; 232 G4String matchingPath = empty; 231 233 232 234 // find the tree … … 235 237 G4UIcommandTree* aTree = FindCommandTree(pathName); 236 238 237 G4String empty = "";238 239 if (!aTree) { 239 240 return empty; … … 245 246 246 247 // list matched directories/commands 247 G4String str eam, strtmp;248 G4String strtmp; 248 249 G4int nMatch= 0; 249 250 … … 257 258 if( fpdir.index(remainingPath, 0) == 0) { 258 259 if(nMatch==0) { 259 stream= fpdir;260 matchingPath = fpdir; 260 261 } else { 261 stream = GetFirstMatchedString(fpdir,stream);262 matchingPath = GetFirstMatchedString(fpdir,matchingPath); 262 263 } 263 264 nMatch++; … … 282 283 if( fpcmd.index(remainingPath, 0) ==0) { 283 284 if(nMatch==0) { 284 stream= fpcmd + " ";285 matchingPath= fpcmd + " "; 285 286 } else { 286 287 strtmp= fpcmd + " "; 287 stream= GetFirstMatchedString(stream, strtmp);288 matchingPath= GetFirstMatchedString(matchingPath, strtmp); 288 289 } 289 290 nMatch++; … … 299 300 } 300 301 301 return stream;302 return matchingPath; 302 303 } 303 304
Note: See TracChangeset
for help on using the changeset viewer.