Functions
gpcoord/main.cpp File Reference
#include <QGpCoreTools.h>
#include "gpcoordVersion.h"
#include "gpcoordInstallPath.h"
#include "CoordReader.h"

Functions

ApplicationHelphelp ()
int main (int argc, char **argv)
 PACKAGE_INFO (gpcoord, GPCOORD)

Function Documentation

int main ( int  argc,
char **  argv 
)

References CoordReader::hasInput(), help(), QGpCoreTools::ArgumentStdinReader::read(), CoordReader::setOptions(), and CoordReader::terminate().

{
  CoreApplication a(argc, argv, help);

  // Options
  CoordReader reader;
  if(reader.setOptions(argc, argv) &&
     (!reader.hasInput() || reader.read(argc, argv)) &&
     reader.terminate()) {
    return 0;
  } else {
    return 2;
  }
}
PACKAGE_INFO ( gpcoord  ,
GPCOORD   
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines