/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : GpsOutput.h                                                   */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

#ifndef _GpsOutput_H
#define _GpsOutput_H

#include <time.h>
#include "SharedData.h"
#include "GpsIF.h"

#define GpsOutputName "GpsOutput_ShmemName"

/*
CLASS 
GpsOutput

DESCRIPTION
Output of Gps driver. Contains a GpsIF::Fix object.

AUTHOR
Tom O'Reilly
*/
class GpsOutput : public SharedData {

public:

  struct Data {

    // Indicates that device is initialized and ready
    Boolean deviceReady;

    GpsIF::Fix fix;

  } data;

  GpsOutput(Access access = NoAccess, Boolean init = False);

  ~GpsOutput();

  ////////////////////////////////////////////////////////////////////
  // Read from shared memory to this object's Data::data element
  void read();

  ////////////////////////////////////////////////////////////////////
  // Write from this object's Data::data element to shared memory
  void write();

};

#endif
