/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : SeabirdOutput.cc                                                  */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include <malloc.h>
#include "SeabirdOutput.h"
#include "Syslog.h"


SeabirdOutput::SeabirdOutput(char *name, Access access, Boolean init)
  : SharedData(name, 
               sizeof(SeabirdOutput::Data),
               access, init)
{
  //allocate default names for voltages
  //  v1name = strdup("v1");
  //v2name = strdup("v2");
  //v3name = strdup("v3");
  //v4name = strdup("v4");
  //v5name = strdup("v5");
  //v6name = strdup("v6");
}


SeabirdOutput::~SeabirdOutput()
{

  //free vnames
  free(data.v1name);
  free(data.v2name);
  free(data.v3name);
  free(data.v4name);
  free(data.v5name);
  free(data.v6name);
}

void SeabirdOutput::read()
{
  SharedData::read((void *)&data);
}


void SeabirdOutput::write()
{
  SharedData::write((void *)&data);
}



