/****************************************************************************/
/* Copyright (c) 2001 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : Ips4Output.h                                                   */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 04/04/2001                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

#ifndef _IPS4OUTPUT_H
#define _IPS4OUTPUT_H

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

extern "C" {
#include "IceDraft.h"
	 }

#define Ips4OutputName "Ips4Output_ShmemName"

/*
CLASS 
Ips4Output

DESCRIPTION
Ouput of Ips4 driver

AUTHOR
Rich Henthorn
*/
class Ips4Output : public SharedData {

public:

  struct Ips4Data {

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

    // Indicates that faulty data was received
    Boolean _badComms;

    // Ips4 data
    icedraft_t _iceDraft;
  };

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

  ~Ips4Output();


  ////////////////////////////////////////////////////////////////////
  // 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();

  Ips4Data data;

};

#endif
