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

#ifndef __Ips4IF_SK_H
#define __Ips4IF_SK_H

#include "TaskServer.h"
#include "Ips4IF.h"
#include "InstrumentIF_SK.h"

class Ips4IF_SK : public InstrumentIF_SK {

  public:

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

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

  virtual ~Ips4IF_SK();
  
  protected:

  // These methods must be defined in subclass
  virtual DeviceIF::Status start() = 0;
  virtual DeviceIF::Status stop() = 0;
  virtual DeviceIF::Status get_ice_draft(double patm, short nelem, Ips4IF::Vector cond, Ips4IF::Vector temp, Ips4IF::Vector pressure, double *ice_draft) = 0;
  
  // Declare callbacks corresponding to each method
  Boolean startCallback(Request *request, int nReqBytes,
                 Reply **reply, int *nReplyBytes);

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

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

  
  // Message structure pointer for each method
  Ips4IF::StartMsg *_startMsg;
  Ips4IF::StopMsg *_stopMsg;
  Ips4IF::Get_ice_draftMsg *_get_ice_draftMsg;
  
  // 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

