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

#include "MyInterface.h"

MyInterface::MyInterface(const char *name)
  :  TaskInterface(name, MyInterfaceServerName)
{
}

MyInterface::~MyInterface()
{
}

long MyInterface::foo(short x, float *y)
{
  // Copy any input args to appropriate message fields
  _fooMsg.x = x;
  
  // Set message code and send message
  _fooMsg.code = FooMsgCode;

  send(&_fooMsg, sizeof(FooMsg),
       &_fooMsg, sizeof(FooMsg));

  // Copy any output fields of msg to appropriate output args
  *y = _fooMsg.y;
  
  return _fooMsg.returnVal;
}


