/****************************************************************************/
/* 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: simGulper.cc,v 1.3 2008/09/09 19:39:41 rob Exp $
  *-----------------------------------------------------------------------*/

#include "SimulatedGulperServer.h"
#include "Syslog.h"
#include "System.cc"

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

  Syslog::write("Begin simGulper.");
  try {
     //gulperServer = new SimulatedGulperServer("simGulperServer");
     gulperServer = new SimulatedGulperServer();
     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;
}
