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

#ifndef _ParosciOutput_H
#define _ParosciOutput_H

#include <time.h>
#include "SharedData.h"
#include "DeviceIF.h"
#define ParosciOutputName "ParosciOutput_ShmemName"

/*
CLASS 
ParosciOutput

DESCRIPTION
Output of ParoSci driver

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

public:

  struct Data {

    // Indicates that device is initialized and ready
    DeviceIF::Status deviceStatus;

    timespec updateTime;
    double pressure;
    double depth;
    double temp;
  };

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

  ~ParosciOutput();

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

  Data data;

};

#endif
