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

#include "StreamSerialDriver.h"
#include "PA200LROutput.h"

/*
CLASS 
PA200LR

DESCRIPTION
Tritech PA200LR Device Driver Interface

AUTHOR
Rich Henthorn

*/

class PA200LR : public StreamSerialDriver {

  friend class PA200LRLog;
public:
  
  /////////////////////////////////////////////////////////
  // Constructor, not used...
  PA200LR();

  /////////////////////////////////////////////////////////
  // overloaded Constructor
  PA200LR(SerialDevice *interface, Boolean verbose = False);

  ///////////////////////////////////////////////////////
  //destructor
  virtual  ~PA200LR();


protected:

  PA200LRLog *_log;
  Boolean _verbose;
  
  float _range;
  Boolean _valid;

  PA200LROutput *_output;
  SerialDevice *_device;
  
  //////////////////////////////////////////////////////////////// 
  // initialization function
  virtual DeviceIF::Status initialize();

  ////////////////////////////////////////////////////////////////////
  // Process a record
  virtual DeviceIF::Status processRecord(unsigned char *record, 
					 int nRecordBytes);

};

#endif
