/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : _dropWeightServer.cc                                          */
/* Author   : rsm                                                           */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : ll Feb 2004                                                   */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*
  $Id: _gulperServer.cc,v 1.1 2014/09/22 03:18:29 hthomas Exp $
  *-----------------------------------------------------------------------*/

#include "GulperServer.h"
#include "Syslog.h"
#include "System.cc"
#include "SerialParameters.h"

int main( int argc, char **argv )
{
  GulperServer *gulperServer;
  // Set task priority
  if (System::setTaskPriority(CriticalServerPriority) == -1)
    return 1;

  try {
    SerialParameters serialParams(&argc, argv);
    gulperServer = new GulperServer("gulperDriver",  &serialParams);
    gulperServer->run();
  }
  catch( SharedObject::Error e ) {
    Syslog::write("gulperServer -- Caught exception: %s\n", e.msg );
  }
  catch( ... ) {
    Syslog::write("gulperServer -- Caught exception!\n");
  }

  delete gulperServer;

  return 0;
}
