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

#ifndef _MultibeamerOutput_H
#define _MultibeamerOutput_H

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

#define MultibeamerOutputName "MultibeamerOutput_ShmemName"

/*
CLASS 
MultibeamerOutput

DESCRIPTION
Output of Multibeamer driver

AUTHOR
Henthorn
*/
class MultibeamerOutput : public SharedData {

public:

  struct Data {

    // Indicates that multibeam client is initialized and ready
    Boolean ready;
    
    Boolean goodComms;

    TimeIF::TimeSpec updateTime;

    float range;

  };

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

  ~MultibeamerOutput();


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