Functions
gpcurve/main.cpp File Reference
#include <QGpCoreTools.h>
#include "CurveReader.h"
#include "gpcurveVersion.h"
#include "gpcurveInstallPath.h"

Functions

ApplicationHelphelp ()
int main (int argc, char **argv)
 PACKAGE_INFO (gpcurve, GPCURVE)

Function Documentation

int main ( int  argc,
char **  argv 
)

References CurveReader::generateFunction(), help(), CurveReader::isFunctionMode(), QGpCoreTools::ArgumentStdinReader::read(), CurveReader::setOptions(), and CurveReader::terminate().

{
  CoreApplication a(argc, argv, help);

  // Options
  CurveReader reader;
  if(reader.setOptions(argc, argv)) {
    if(reader.isFunctionMode()) {
      reader.generateFunction();
      return 0;
    } else if(reader.read(argc, argv)) {
      return reader.terminate() ? 0 : 2;
    } else {
      return 2;
    }
  } else {
    return 2;
  }
}
PACKAGE_INFO ( gpcurve  ,
GPCURVE   
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines