[Bio] / MExplorer / xduGenMain.cc Repository:
ViewVC logotype

View of /MExplorer/xduGenMain.cc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (download) (as text) (annotate)
Sun May 18 00:16:29 2003 UTC (16 years, 6 months ago) by efrank
Branch: MAIN
CVS Tags: ldrd-2003-01, HEAD
Changes since 1.2: +0 -2 lines
get rid of dump printout

//************************************************************************
// Play with exploring the e. coli reco in biosimscratch.
//
//************************************************************************

#include <stdio.h>
#include <string>
#include <vector>
#include <iterator>

#include "RecoReadout/RecoElem.hh"
#include "RecoReadout/Reaction.hh"

#include "RecoReadoutOracle/BssFactory.hh"
#include "RecoReadoutOracle/OracleMgr.hh"

void usage( void );
int  xduGen( RecoElem& r, std::string path );


//************************************************************************
int
main(int argc, char* argv[] ) {
//************************************************************************

  if ( 2 != argc ) {
    usage();
    return 1;
  }

  unsigned int topNodeId = atoi( argv[1] );

  OracleMgr::mgr().startJob();
  BssFactory  bssFactory;
  RecoElem* recoTop = bssFactory.getRecoElemById( topNodeId);

  // OK.  Mess with it.  Get its kids and print them out.

  std::string path="";
  xduGen( *recoTop, path );

  OracleMgr::mgr().endJob();
  delete recoTop;
  return 0;
}


//************************************************************************
void
usage( void ) {
//************************************************************************
  cout << endl;
  cout << "usage: xduGen TopNodeId" << endl;
  cout << "   TopNodeId is the ProcessId of the top of the reconstruction." << endl;
  cout << "   You can find the top node of a reconstruction with lsCat," << endl;
  cout << "   which lists the Catalog." << endl;
  cout << endl;

  return;
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3