Ignore:
Timestamp:
May 5, 2009, 5:45:31 PM (15 years ago)
Author:
garnier
Message:

en test. Ok

Location:
trunk/source/interfaces
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/interfaces/basic/src/G4VUIshell.cc

    r989 r1027  
    149149//////////////////////////////////////////////////////////////////////
    150150{
     151  printf("G4VUIshell::GetAbsCommandDirPath %s\n",apath.c_str());
    151152  if(apath.empty()) return apath;  // null string
    152153
     
    157158
    158159  // parsing...
     160  printf("G4VUIshell::GetAbsCommandDirPath bpath %s\n",bpath.c_str());
    159161  G4String absPath= "/";
     162  printf("G4VUIshell::GetAbsCommandDirPath num %d \n",G4int(bpath.length())-1);
    160163  for(G4int indx=1; indx<=G4int(bpath.length())-1; ) {
     164    printf("G4VUIshell::GetAbsCommandDirPath for %d/%d \n",indx,G4int(bpath.length())-1);
    161165    G4int jslash= bpath.index("/", indx);  // search index begin with "/"
    162166    if(jslash != G4int(G4String::npos)) {
     
    177181    indx= jslash+1;
    178182  }
     183  printf("G4VUIshell::GetAbsCommandDirPath RETURN %s\n",absPath.c_str());
    179184  return  absPath;
    180185}
  • trunk/source/interfaces/common/include/G4VBasicShell.hh

    r989 r1027  
    8585    G4String Complete(G4String);
    8686    // command completion
     87
     88    G4String CompleteCommand(G4String);
     89    // command completion
    8790    G4String FindMatchingPath(G4UIcommandTree*,G4String);
    8891
  • trunk/source/interfaces/common/src/G4VBasicShell.cc

    r921 r1027  
    180180  return value;
    181181}
     182
     183
     184
     185
    182186G4String G4VBasicShell::FindMatchingPath(
    183187 G4UIcommandTree* aTree
     
    186190// From intercoms/src/G4UIcommandTree::FindPath.
    187191{
     192  return aTree->CompleteCommandPath(aCommandPath);
     193
    188194#ifdef G4DEBUG
    189195  printf("G4VBasicShell::FindMatchingPath %s\n",aCommandPath.c_str());
     
    226232        G4UIcommand* cmd = commands[i_thCommand];
    227233        G4cout << cmd->GetCommandName() << G4endl;
     234#ifdef G4DEBUG
     235        printf("%s found\n",cmd->GetCommandName().c_str());
     236#endif
    228237      }
    229238      return empty;
     
    258267    nextPath.append(remainingPath(0,i+1));
    259268    G4int n_treeEntry = aTree->GetTreeEntry();
     269#ifdef G4DEBUG
     270    printf(" find PATH\n");
     271#endif
    260272    for( G4int i_thTree = 1; i_thTree <= n_treeEntry; i_thTree++ ) {
    261273      G4UIcommandTree* tree = aTree->GetTree(i_thTree);
     274#ifdef G4DEBUG
     275      printf("++++LOOP+++++++++++++%s == %s \n",nextPath.c_str(), tree->GetPathName().c_str());
     276#endif
    262277      if( nextPath == tree->GetPathName() ) {
    263278        return FindMatchingPath(tree,aCommandPath );
Note: See TracChangeset for help on using the changeset viewer.