/****************************************************************************/
/* Copyright (c) 2012 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : DeltaTOutput.cc                                          */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 09/17/2012                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/

#include "DeltaTOutput.h"
#include "Syslog.h"

DeltaTOutput::DeltaTOutput(const char* name, Access access, Boolean init)
  : SharedData(name, 
               sizeof(DeltaTOutput::Data),
               access, init)
{
  data.enabled = False;
  data.nbeams = 0;
}


DeltaTOutput::~DeltaTOutput()
{
}

static char* DeltaTOutput::makeName(char* dest, char* suffix, int destlen)
{
  strncat(strncpy(dest, DeltaTOutputName, destlen), suffix, destlen);
  //Syslog::write("%s\n", dest);
  return (char*)dest;
}


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

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



