Changeset 1044 for trunk


Ignore:
Timestamp:
May 15, 2009, 12:25:18 PM (15 years ago)
Author:
garnier
Message:

maj en aussi sur CVS

Location:
trunk/source/intercoms
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/intercoms/History

    r1016 r1044  
    1 $Id: History,v 1.73 2008/11/21 10:57:25 kmura Exp $
     1$Id: History,v 1.75 2009/05/14 02:59:33 kmura Exp $
    22-------------------------------------------------------------------
    33
     
    1717     * Reverse chronological order (last date on top), please *
    1818     ----------------------------------------------------------
     19
     2014 May 2009 K.Murakami (intercoms-V09-02-00)
     21 - tagged for release 9.3 beta
     22
     237th 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 "/"
    1928
    202921 November, 2008 K.Murakami (intercoms-V09-01-01)
  • trunk/source/intercoms/include/G4UIcommandTree.hh

    r1031 r1044  
    2525//
    2626//
    27 // $Id: G4UIcommandTree.hh,v 1.16 2008/01/30 11:20:03 lgarnier 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: $
    2929//
    3030
  • trunk/source/intercoms/src/G4UIcommandTree.cc

    r1031 r1044  
    2525//
    2626//
    27 // $Id: G4UIcommandTree.cc,v 1.14 2008/01/30 11:20:03 lgarnier 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: $
    2929//
    3030
     
    229229  G4String pathName = aCommandPath;
    230230  G4String remainingPath = aCommandPath;
     231  G4String empty = "";
     232  G4String matchingPath = empty;
    231233
    232234  // find the tree
     
    235237  G4UIcommandTree* aTree = FindCommandTree(pathName);
    236238
    237   G4String empty = "";
    238239  if (!aTree) {
    239240    return empty;
     
    245246
    246247  // list matched directories/commands
    247   G4String stream, strtmp;
     248  G4String strtmp;
    248249  G4int nMatch= 0;
    249250
     
    257258    if( fpdir.index(remainingPath, 0) == 0) {
    258259      if(nMatch==0) {
    259         stream = fpdir;
     260        matchingPath = fpdir;
    260261      } else {
    261         stream = GetFirstMatchedString(fpdir,stream);
     262        matchingPath = GetFirstMatchedString(fpdir,matchingPath);
    262263      }
    263264      nMatch++;
     
    282283    if( fpcmd.index(remainingPath, 0) ==0) {
    283284      if(nMatch==0) {
    284         stream= fpcmd + " ";
     285        matchingPath= fpcmd + " ";
    285286      } else {
    286287        strtmp= fpcmd + " ";
    287         stream= GetFirstMatchedString(stream, strtmp);
     288        matchingPath= GetFirstMatchedString(matchingPath, strtmp);
    288289      }
    289290      nMatch++;
     
    299300  }
    300301
    301   return stream;
     302  return matchingPath;
    302303}
    303304
Note: See TracChangeset for help on using the changeset viewer.