/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : MyInterface_SK.h                                              */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*
NOTE: This file is automatically generated.
DO NOT MODIFY.
*/

#ifndef __MyInterface_SK_H
#define __MyInterface_SK_H

#include "TaskServer.h"
#include "MyInterface.h"

class MyInterface_SK : public TaskServer {

  public:

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

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

  ~MyInterface_SK();
  
  protected:

  // These methods must be defined in subclass
  virtual long foo(short x, float *y) = 0;
  
  // Declare callbacks corresponding to each method
  Boolean fooCallback(Request *request, int nReqBytes,
                 Reply **reply, int *nReplyBytes);

  
  // Message structure pointer for each method
  MyInterface::FooMsg *_fooMsg;
  
  // 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

