/*
********************************************************
Copyright 2000 MBARI.
MBARI Proprietary Information. All rights reserved.
NOTE: This file is automatically generated.
DO NOT MODIFY.
********************************************************
*/

#ifndef __InstrumentIF_SK_H
#define __InstrumentIF_SK_H

#include "TaskServer.h"
#include "InstrumentIF.h"
#include "DeviceIF_SK.h"

class InstrumentIF_SK : public DeviceIF_SK {

  public:

  // Constructor for server with default name
  InstrumentIF_SK();

  // Constructor for server with specific name
  InstrumentIF_SK(const char *serverName);

  virtual ~InstrumentIF_SK();
  
  protected:

  // These methods must be defined in subclass
  virtual DeviceIF::Status dataLoggingOn() = 0;
  virtual DeviceIF::Status dataLoggingOff() = 0;
  
  // Declare callbacks corresponding to each method
  Boolean dataLoggingOnCallback(Request *request, int nReqBytes,
                 Reply **reply, int *nReplyBytes);

  Boolean dataLoggingOffCallback(Request *request, int nReqBytes,
                 Reply **reply, int *nReplyBytes);

  
  // Message structure pointer for each method
  InstrumentIF::DataLoggingOnMsg *_dataLoggingOnMsg;
  InstrumentIF::DataLoggingOffMsg *_dataLoggingOffMsg;
  
  // Determine max bytes required for message buffer
  virtual size_t maxRequestBytes();

  // Allocate buffer for messages, set pointers, etc
  virtual void allocateBuffers();

  private:

  // Initializer method called by constructors
  int init();

};

#endif

