00001 /* 00002 * BasicTaskCallbackImpl.hh 00003 * 00004 * Copyright (c) 2003 The University of Utah and the Flux Group. 00005 * All rights reserved. 00006 * 00007 * This file is licensed under the terms of the GNU Public License. 00008 * See the file "license.terms" for restrictions on redistribution 00009 * of this file, and for a DISCLAIMER OF ALL WARRANTIES. 00010 */ 00011 00012 /** 00013 * @file BasicTaskCallbackImpl.hh 00014 * 00015 * Header file for the BasicTaskCallbackImpl class. 00016 */ 00017 00018 #ifndef _basic_task_callback_impl_hh 00019 #define _basic_task_callback_impl_hh 00020 00021 #include "BasicTaskCallbackS.h" 00022 00023 /** 00024 * An implementation of a Qosket::Basic::BasicTaskCallback that logs when its 00025 * methods were called. 00026 * 00027 * @sa Qosket::Basic::BasicTaskCallback 00028 */ 00029 class BasicTaskCallbackImpl : 00030 public virtual POA_Qosket::Basic::BasicTaskCallback 00031 { 00032 00033 public: 00034 00035 /** 00036 * Send a message to the call back. This is also used by the other methods 00037 * to do logging. 00038 * 00039 * @param msg The message to log. 00040 */ 00041 virtual void sendMessage(const char *msg) 00042 throw (CORBA::SystemException); 00043 00044 /** @copydoc Qosket::Basic::BasicTaskCallback::MissedDeadline */ 00045 virtual void MissedDeadline(void) 00046 throw (CORBA::SystemException); 00047 00048 /** @copydoc Qosket::Basic::BasicTaskCallback::MadeDeadline */ 00049 virtual void MadeDeadline(void) 00050 throw (CORBA::SystemException); 00051 00052 }; 00053 00054 #endif