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

#ifndef __Seabird25pIF_SK_H
#define __Seabird25pIF_SK_H

#include "TaskServer.h"
#include "Seabird25pIF.h"
#include "CtdIF_SK.h"

class Seabird25pIF_SK : public CtdIF_SK {

  public:

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

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

  virtual ~Seabird25pIF_SK();
  
  protected:

  // These methods must be defined in subclass
  virtual DeviceIF::Status get_CTD_data(float *conductivity, float *temperature, float *depth, float *tfreq, float *cfreq, TimeIF::TimeSpec *conductivityTime, TimeIF::TimeSpec *temperatureTime, float *v1, float *v2, float *v3, float *v4, float *v5, float *v6, float *v7, float *v8) = 0;
  virtual DeviceIF::Status voltages(float *v1, float *v2, float *v3, float *v4, float *v5, float *v6, float *v7, float *v8) = 0;
  
  // Declare callbacks corresponding to each method
  Boolean get_CTD_dataCallback(Request *request, int nReqBytes,
                 Reply **reply, int *nReplyBytes);

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

  
  // Message structure pointer for each method
  Seabird25pIF::Get_CTD_dataMsg *_get_CTD_dataMsg;
  Seabird25pIF::VoltagesMsg *_voltagesMsg;
  
  // 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

