/****************************************************************************/
/* Copyright (c) 2007 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : GncOutput.cc                                                  */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 06/07/2007                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
#include "GncOutput.h"


GncOutput::GncOutput(Access access, Boolean init)
  : SharedData (GncOutputName, sizeof(GncOutput::State),
		access, init)
{
   state.sim=False;
}

GncOutput::~GncOutput()
{
}
////////////////////////////////////////////////////////////////////
// Read output command from shared memory
void GncOutput::read(State *state)
{
    SharedData::read((void *)state);
}


////////////////////////////////////////////////////////////////////
// Write output command to shared memory
void GncOutput::write(State *state)
{
    SharedData::write((void *)state);
}

void GncOutput::read()
{
  SharedData::read((void *)&state);
}

void GncOutput::write()
{
  SharedData::write((void *)&state);
}

void GncOutput::clear()
{
  memset(&state, 0, sizeof(GncOutput::State));
}
