/****************************************************************************/
/* Copyright (c) 2001 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : IsusLog.h                                                     */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 06/01/2001                                                    *1
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#ifndef _ISUSLOG_H
#define _ISUSLOG_H

#include "DataLogWriter.h"
#include "DataLog.h"
#include "IntegerData.h"
#include "DoubleData.h"
#include "ShortData.h"
#include "AngleData.h"
#include "TimeTag.h"

class Isus;

#define IsusLogName "isuslog"

/*
CLASS 
IsusLog

DESCRIPTION
Logs ISUS data through the DataLogWriter interface.

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

  IsusLog *log = new IsusLog(this);

  [...other stuff...]

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

</pre>
AUTHOR
Rich Henthorn
*/
class IsusLog : public DataLogWriter {

public:

  ///////////////////////////////////////////////////////////////////
  // Constructor
  IsusLog(Isus *isus, DataLog::FileFormat format); 

  ~IsusLog();

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 Isus
  // object.
  Isus *_isus;

  ///////////////////////////////////////////////////////////////////
  // Data to log

  DoubleData  *_isusNitrate;
  DoubleData  *_isusTemp;
  DoubleData  *_isusQuality;


private:


};

#endif
