00001 /* 00002 * RTServerWrapper.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 RTServerWrapper.hh 00014 * 00015 * Header file for the RTServerWrapper class. 00016 */ 00017 00018 #ifndef _rt_server_wrapper_hh 00019 #define _rt_server_wrapper_hh 00020 00021 #include "BrokerC.h" 00022 #include "RTServerAdapter.h" 00023 00024 /** 00025 * A QuO wrapper for the RTServerAdapter class. 00026 */ 00027 class RTServerWrapper : public RTServerAdapter 00028 { 00029 00030 public: 00031 00032 /** 00033 * Construct an RTServerWrapper object with the given values. 00034 * 00035 * @param rtt The task object to report CPU usage to. 00036 * @param period The server's period, in microseconds. 00037 * @param deadline The server's deadline, in microseconds. 00038 */ 00039 RTServerWrapper(Broker::RealTimeTask_ptr rtt, 00040 CORBA::ULong period, 00041 CORBA::ULong deadline); 00042 00043 /** 00044 * Deconstruct an RTServerWrapper object. 00045 */ 00046 virtual ~RTServerWrapper(); 00047 00048 /** 00049 * @return The wrapped RTServer object. 00050 */ 00051 RTServer_ptr getRemoteObject(void); 00052 00053 }; 00054 00055 #endif