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

#include "CathxM12Output.h"
#include "Syslog.h"

CathxM12Output::CathxM12Output(Access access, Boolean init)
  : SharedData(CathxM12OutputName,
               sizeof(CathxM12Output::Data),
               access, init)
{
    // Profile and capture states
    //
    data.req_profile = data.act_profile = 0;
    data.req_capture = data.act_capture = 0;

    // Timestamp
    //
    data.updateTime.seconds     = 0;
    data.updateTime.nanoSeconds = 0;

    write();
}


CathxM12Output::~CathxM12Output()
{
}


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

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



