/****************************************************************************/
/* Copyright (c) 2015 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : CathxM12Output.h                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 09/17/2015                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

#include "SharedData.h"
#include "TimeP.h"

#ifndef _CathxM12Output_H
#define _CathxM12Output_H

#define CathxM12OutputName "CathxM12Output_ShmemName"

/*
CLASS
CathxOutput

DESCRIPTION
Output of Cathx driver

AUTHOR
Henthorn
*/
class CathxM12Output : public SharedData {

public:

  struct Data {

    int  req_capture, act_capture;
    int  req_profile, act_profile;

    // Timestamp
    //
    TimeIF::TimeSpec updateTime;

  };

  CathxM12Output(Access access = ReadWrite, Boolean init = False);
  ~CathxM12Output();


  ////////////////////////////////////////////////////////////////////
  // 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
