/****************************************************************************/
/* Copyright (c) 2005 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : DockOutput.h                                           */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 10 May 2006                                                   */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

#ifndef _DockOutput_H
#define _DockOutput_H

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

#define DockOutputName "DockOutput_ShmemName"

/*
CLASS 
DockOutput

DESCRIPTION
Output of Dock driver

AUTHOR
rsm
*/
class DockOutput : public SharedData {

public:

  struct Data 
  {

	Boolean deviceReady;

	char rs_response[512];
	char resolverState[32];
	char probeState[32];
	short pingError;

	unsigned long updateTimeMSec;
	double updateTimeSecs;
		
	TimeIF::TimeSpec updateTime;
    
  };

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

  ~DockOutput();


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