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

#ifndef __AdaptiveSamplerIF_H
#define __AdaptiveSamplerIF_H

#include "TaskInterface.h"


#define AdaptiveSamplerIFServerName "AdaptiveSamplerIFServer"

/****************************************************************************/
/* Copyright (c) 2006 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : AdaptiveSamplerIF.idl                                         */
/* Author   : rsm                                                           */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 21/03/2007                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*
CLASS 
AdaptiveSamplerIF

DESCRIPTION
TaskInterface to Gulper device server

AUTHOR
Rob McEwen

*/
class AdaptiveSamplerIF : public TaskInterface {

  friend class AdaptiveSamplerIF_SK;

  public:

  
  enum GulperState {
    Unarmed = 0,
    Armed,
    Fired
  };

  
  typedef Boolean GULPERS_TO_ARM_T[20];
  typedef short GULPER_STATE_T[20];
  
  AdaptiveSamplerIF(const char *name, int timeout = 10);

  AdaptiveSamplerIF(const char *name, const char *serverName, int timeout = 10);

  ~AdaptiveSamplerIF();

  void armGulper(AdaptiveSamplerIF::GULPERS_TO_ARM_T gulpersToArm);

  void state(AdaptiveSamplerIF::GULPER_STATE_T gulperState);

  short counter();

  
  protected:

  // Message codes for each method
  enum AdaptiveSamplerIFMsgCode {
    ArmGulperMsgCode,
    StateMsgCode,
    CounterMsgCode
  };

  // Define message structure for each method
  struct ArmGulperMsg : Request, Reply {
    AdaptiveSamplerIF::GULPERS_TO_ARM_T gulpersToArm;
  
  } _armGulperMsg;

  struct StateMsg : Request, Reply {
    AdaptiveSamplerIF::GULPER_STATE_T gulperState;
  
  } _stateMsg;

  struct CounterMsg : Request, Reply {
    short returnVal;
  
  } _counterMsg;

};

#endif

