Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] View of /trunk/paramin-beta/commandlineinfo.h
[mareframe] / trunk / paramin-beta / commandlineinfo.h Repository:
ViewVC logotype

View of /trunk/paramin-beta/commandlineinfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Mon Feb 10 17:09:07 2014 UTC (10 years, 4 months ago) by agomez
File size: 1342 byte(s)
Initial version based on Gadget 2.2.00
#ifndef commandlineinfo_h
#define commandlineinfo_h

#include "charptrvector.h"

class CommandLineInfo {
public:
  CommandLineInfo();
  ~CommandLineInfo();
  void read(int aNumber, char *const aVector[]);
  void readNetworkInfo();
  void showCorrectUsage(char* error);
  void showCorrectUsage();
  void showUsage();
  int getNumProc() { return numProc; };
  int getWaitMaster() { return waitMaster; };
  double getRunMultiple() { return runMultiple; };
  double getBestMultiple() { return bestMultiple; };
  double getHostMultiple() { return hostMultiple; };
  int getScale() { return scale; };
  char* getInputFilename();
  char* getOutputFilename();
  char* getOptFilename();
  int getOptInfoFileGiven();
  const CharPtrVector& getFunction();
private:
  CharPtrVector inputfile;
  CharPtrVector outputfile;
  CharPtrVector optfile;
  CharPtrVector networkfile;
  CharPtrVector function;
  int numProc;
  int scale;
  // Time in sec. for how long slave will wait for
  // a message from master before bailing out.
  // value of 0 means that slave will check for a message from master and
  // immediately return even if there is no message from master
  // value of -1 will have slave wait forever for a message. Default value
  // set to 300.
  int waitMaster;
  double runMultiple;
  double hostMultiple;
  double bestMultiple;
};

#endif

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge