/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : workSite.cc                                                   */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include <stdio.h>
#include <process.h>
#include "WorkSite.h"
#include "Syslog.h"
#include "System.h"

int main(int argc, char **argv)
{
  Boolean debug = True;

  const char *configFile = "workSite.cfg";

  try {

    dprintf("Initializing worksiteServer");

    WorkSite *server = new WorkSite(configFile);

    dprintf("WorkSite server: 0x%x", server);

    server->run();

    delete server;
  }
  catch (WorkSite::Error e) {
    Syslog::write("workSite: caught exception: %s\n", e.msg);
  }
  catch (Exception e) {
    Syslog::write("workSite: caught exception: %s\n", e.msg);
  }

  catch (...) {
    Syslog::write("workSite - caught exception!\n");
  }

  return 0;
}
