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

#include "DataLogWriter.h"
#include "DoubleData.h"

class Seabird;

#define SeabirdLogName "ctdlog"

/*
CLASS 
SeabirdLog

DESCRIPTION
Logs Seabird CTD data through the DataLogWriter interface.

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

  SeabirdLog *log = new SeabirdLog(this);

  [...other stuff...]

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

</pre>
AUTHOR
John O'Rieffel
*/
class SeabirdLog : public DataLogWriter {

public:

  ///////////////////////////////////////////////////////////////////
  // Constructor
  // [input] navigation: CTD object. The setFields() method
  //         accesses this object as the source of the logged data.
  // [input] fileFormat: Specifies either DataLog::AsciiFormat or 
  //         DataLog::BinaryFormat.
  SeabirdLog(Seabird *seabird, const char *name); 

  ~SeabirdLog();

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 CTD 
  // object.
  Seabird *_seabird;


private:

  DoubleData *_cond;
  DoubleData *_temp;
  DoubleData *_cfreq;
  DoubleData *_tfreq;
  DoubleData *_v1;
  DoubleData *_v2;
  DoubleData *_v3;
  DoubleData *_v4;
  DoubleData *_v5;
  DoubleData *_v6;
  
  
//  CharData *_valid;

};

#endif
