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

#ifndef __AdamIF_H
#define __AdamIF_H

#include "TaskInterface.h"

#include "InstrumentIF.h"
#include "TimeIF.h"

#define AdamIFServerName "AdamIFServer"

class AdamIF : public InstrumentIF {

  friend class AdamIF_SK;

  public:

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

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

  ~AdamIF();

  /////////////////////////////////////////////////////////
  // Return true if device is ready to go, otherwise false
  Boolean ready();

  /////////////////////////////////////////////////////////
  // Get all Data from CTD Simultaneously
  DeviceIF::Status get(TimeIF::TimeSpec *sampleTime, unsigned short *v1, unsigned short *v2, unsigned short *v3, unsigned short *v4, unsigned short *v5, unsigned short *v6, unsigned short *v7, unsigned short *v8);

  
  protected:

  // Message codes for each method
  enum AdamIFMsgCode {
    ReadyMsgCode = 8,
    GetMsgCode
  };

  // Define message structure for each method
  struct ReadyMsg : Request, Reply {
    Boolean returnVal;
  
  } _readyMsg;

  struct GetMsg : Request, Reply {
    DeviceIF::Status returnVal;
    TimeIF::TimeSpec sampleTime;
    unsigned short v1;
    unsigned short v2;
    unsigned short v3;
    unsigned short v4;
    unsigned short v5;
    unsigned short v6;
    unsigned short v7;
    unsigned short v8;
  
  } _getMsg;

};

#endif

