/****************************************************************************/
/* Copyright (c) 2002 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : HydroscatLog.h                                                */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 06/04/2002                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _HYDROSCATLOG_H
#define _HYDROSCATLOG_H

#include "DataLogWriter.h"
#include "DataLog.h"
#include "IntegerData.h"
#include "DoubleData.h"
#include "FloatData.h"
#include "TimeTag.h"

class Hydroscat;

#define HydroscatLogName "hydroscatlog"

/*
CLASS 
HydroscatLog

DESCRIPTION
Logs Hydroscat data through the DataLogWriter interface.

To use this class, instantiate an instance within a Hydroscat object
and periodically invoke the write() method:
<pre>

  HydroscatLog *log = new HydroscatLog(this);

  [...other stuff...]

  // Log the data
  log->write();

</pre>
AUTHOR
Rich Henthorn
*/

class HydroscatLog : public DataLogWriter {

public:

  ///////////////////////////////////////////////////////////////////
  // Constructor
  HydroscatLog(Hydroscat *hydro, DataLog::FileFormat format); 

  ~HydroscatLog();

protected:

  ///////////////////////////////////////////////////////////////////
  // Set values in record array elements. This virtual method is called
  // by DataLogWriter::write()
  virtual void setFields();

  ///////////////////////////////////////////////////////////////////
  // setFields() accesses the data to be logged from this Ips4
  // object.
  Hydroscat *_hydro;

  ///////////////////////////////////////////////////////////////////
  // Data to log
  IntegerData *_seconds;
  IntegerData *_hseconds;
  IntegerData *_snorm1;
  IntegerData *_snorm2;
  IntegerData *_snorm3;
  IntegerData *_gainstatus1;
  IntegerData *_gainstatus2;
  IntegerData *_gainstatus3;
  IntegerData *_depthraw;
  IntegerData *_tempraw;
  DoubleData  *_temp;
  IntegerData *_error;
  DoubleData  *_bb470;
  DoubleData  *_bb676;
  DoubleData  *_fl676u;

private:


};

#endif
