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

#ifndef _VehicleOutput_H
#define _VehicleOutput_H

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

#define VehicleOutputName "VehicleOutput_ShmemName"

/*
CLASS 
VehicleOutput

DESCRIPTION
Output of Vehicle driver

AUTHOR
rsm
*/
class VehicleOutput : public SharedData {

public:

  struct Data 
  {

	Boolean deviceReady;

	char  rs_response[512];

	TimeIF::TimeSpec updateTime;
    
  };

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

  ~VehicleOutput();


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