Changeset 2645 in Sophya for trunk/SophyaPI/PIext/basexecut.cc


Ignore:
Timestamp:
Feb 7, 2005, 3:23:45 PM (21 years ago)
Author:
cmv
Message:

openppf modified to allow for object selection at the line command level. cmv 070205

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/basexecut.cc

    r2638 r2645  
    364364}
    365365else if (kw == "openppf" ) {
    366   if (tokens.size() < 1) { cout << "Usage: openppf file " << endl; return(0); }
    367   mObjMgr->ReadAll(tokens[0]); 
     366  if (tokens.size()<1) {cout<<"Usage: openppf file [objname1 objname2 ...]"<<endl; return(0); }
     367  else if (tokens.size()==1) mObjMgr->ReadAll(tokens[0]); 
     368  else mObjMgr->ReadObj(tokens);
    368369}
    369370else if ((kw == "saveobjs") || (kw == "saveppf"))  {
     
    14601461mpiac->RegisterCommand(kw, usage, this, "FileIO");
    14611462kw = "openppf";
    1462 usage = "Reads all objects from a PPF file \n Usage: openppf filename";
     1463usage = "Reads all or some objects from a PPF file \n Usage: openppf filename [objname1 objname2 ...]";
    14631464usage += "\n  Related commands: saveall openfits"; 
    14641465mpiac->RegisterCommand(kw, usage, this, "FileIO");
Note: See TracChangeset for help on using the changeset viewer.