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

#ifndef __GncIF_SK_H
#define __GncIF_SK_H

#include "TaskServer.h"
#include "GncIF.h"

class GncIF_SK : public TaskServer {

  public:

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

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

  virtual ~GncIF_SK();
  
  protected:

  // These methods must be defined in subclass
  virtual void dcSetGains(GncIF::Gains *gains) = 0;
  virtual void dcRevertGains() = 0;
  virtual void dcGetWallData(double *lastWallTime, double *wallBearing) = 0;
  
  // Declare callbacks corresponding to each method
  Boolean dcSetGainsCallback(Request *request, int nReqBytes,
                 Reply **reply, int *nReplyBytes);

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

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

  
  // Message structure pointer for each method
  GncIF::DcSetGainsMsg *_dcSetGainsMsg;
  GncIF::DcRevertGainsMsg *_dcRevertGainsMsg;
  GncIF::DcGetWallDataMsg *_dcGetWallDataMsg;
  
  // 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

