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

#ifndef __AdvIF_H
#define __AdvIF_H

#include "TaskInterface.h"


#define AdvIFServerName "AdvIFServer"

/****************************************************************************/
/* Copyright (c) 2000 MBARI                                                 */
/* MBARI Proprietary Information. All rights reserved.                      */
/****************************************************************************/
/* Summary  :                                                               */
/* Filename : AdvIF.idl                                                     */
/* Author   :                                                               */
/* Project  :                                                               */
/* Version  : 1.0                                                           */
/* Created  : 02/07/2000                                                    */
/* Modified :                                                               */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/****************************************************************************/
/*
CLASS 
AdvIF

DESCRIPTION
TaskInterface to Adv ("Acoustic Doppler Velocimeter") device driver

AUTHOR
Tom O'Reilly

*/
class AdvIF : public TaskInterface {

  friend class AdvIF_SK;

  public:

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

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

  ~AdvIF();

  /////////////////////////////////////////////////////////
  // Water speed
  // [output] speed: Speed (m/sec)
  // [output] time: Sample time
  long waterSpeed(float *speed, long *time);

  /////////////////////////////////////////////////////////
  // Velocity vector
  // [output] dx: Velocity x component
  // [output] dy: Velocity y component
  // [output] dz: Velocity z component
  // [output] quality: Data quality
  // [output] time: Sample time
  long velocity(double *dx, double *dy, double *dz, short *quality, long *time);

  
  protected:

  // Message codes for each method
  enum AdvIFMsgCode {
    WaterSpeedMsgCode,
    VelocityMsgCode
  };

  // Define message structure for each method
  struct WaterSpeedMsg : Request, Reply {
    long returnVal;
    float speed;
    long time;
  
  } _waterSpeedMsg;

  struct VelocityMsg : Request, Reply {
    long returnVal;
    double dx;
    double dy;
    double dz;
    short quality;
    long time;
  
  } _velocityMsg;

};

#endif

