#ifndef _ADAM6017LOG_H
#define _ADAM6017LOG_H

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

class adam6017;

#define adam6017LogName "adam6017"

/*
CLASS 
adam6017Log

DESCRIPTION
Logs analog data from an ADAM 6017 Module.

AUTHOR
Hans Thomas
*/
class adam6017Log: public DataLogWriter {

public:

  ///////////////////////////////////////////////////////////////////
  // Constructor
  // [input] navigation: BluefinBatt object. The setFields() method
  //         accesses this object as the source of the logged data.
  // [input] fileFormat: Specifies either DataLog::AsciiFormat or 
  //         DataLog::BinaryFormat.
  adam6017Log(adam6017 *adam, DataLog::FileFormat fileFormat);
  ~adam6017Log();

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 BluefinBatt 
  // object.
  adam6017 *_adam;
  DoubleData *_chan[8];
};

#endif
