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

#ifndef _ISUSOUTPUT_H
#define _ISUSOUTPUT_H

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

#define IsusOutputName "IsusOutput_ShmemName"

/*
CLASS 
IsusOutput

DESCRIPTION
Ouput of Isus driver

AUTHOR
Rich Henthorn
*/
class IsusOutput : public SharedData {

public:

  struct IsusData {

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

    // Indicates that faulty data was received
    Boolean _badComms;

    // Isus data
    double _nitrate;
  };

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

  ~IsusOutput();


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

  IsusData data;

};

#endif
