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

#ifndef __EventLogIF_H
#define __EventLogIF_H

#include "TaskInterface.h"


#define EventLogIFServerName "EventLogIFServer"

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

DESCRIPTION
TaskInterface to EventLog

AUTHOR
Tom O'Reilly

*/
class EventLogIF : public TaskInterface {

  friend class EventLogIF_SK;

  public:

  
  enum Level {
    Info,
    Warning,
    Error
  };

  
  typedef char Message[128];
  
  EventLogIF(const char *name, int timeout = 10);

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

  ~EventLogIF();

  /////////////////////////////////////////////////////////
  // Write message to log
  // [input] level: Event level
  // [input] message: Event message
  long write(EventLogIF::Level level, EventLogIF::Message message);

  
  protected:

  // Message codes for each method
  enum EventLogIFMsgCode {
    WriteMsgCode
  };

  // Define message structure for each method
  struct WriteMsg : Request, Reply {
    long returnVal;
    EventLogIF::Level level;
    EventLogIF::Message message;
  
  } _writeMsg;

};

#endif

