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

DriverServer::DriverServer(const char *name)
{
  char statusName[256];
  sprintf(statusName, "%s_driverStatus", name);

  _driverStatus = new DriverStatus(statusName, SharedData::ReadWrite);

  _driverStatus->data.deviceReady = False;
  _driverStatus->write();
}


DriverServer::~DriverServer()
{
  delete _driverStatus;
}


Boolean DriverServer::deviceReady()
{
  _driverStatus->read();
  return _driverStatus->data.deviceReady;
}


