diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-04-10 19:59:37 +0000 |
commit | 3df4acfa816441fc28a95dee6d0191a927145d95 (patch) | |
tree | b5ae7ca44662cfd8e5c95f1826e4406021a606f5 /ace/Method_Request.h | |
parent | 60a5612b83d856fc0adc52b9f39fac9960ec9818 (diff) | |
download | ATCD-pre-subset.tar.gz |
This commit was manufactured by cvs2svn to create tag 'pre-subset'.pre-subset
Diffstat (limited to 'ace/Method_Request.h')
-rw-r--r-- | ace/Method_Request.h | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/ace/Method_Request.h b/ace/Method_Request.h deleted file mode 100644 index 145b468566e..00000000000 --- a/ace/Method_Request.h +++ /dev/null @@ -1,93 +0,0 @@ -// -*- C++ -*- - -//============================================================================= -/** - * @file Method_Request.h - * - * $Id$ - * - * @author Andres Kruse <Andres.Kruse@cern.ch> - * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> - */ -//============================================================================= - - -#ifndef ACE_METHOD_REQUEST_H -#define ACE_METHOD_REQUEST_H - -#include "ace/pre.h" - -#include "ace/ACE_export.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -#include "Global_Macros.h" - -/** - * @class ACE_Method_Request - * - * @brief Reifies a method into a request. Subclasses must provide - * the necessary state and behavior. - * - * An ACE_Method_Request is inserted in an ACE_Activation_Queue, - * where it is subsequently removed by a scheduler object (often - * derived from ACE_Task), which invokes the @c call() method. - * - * This class is discussed in depth in the Active Object chapter - * of POSA2. - * - * @sa ACE_Activation_Queue - */ -class ACE_Export ACE_Method_Request -{ -public: - // = Initialization and termination methods. - /// Constructor. - ACE_Method_Request (unsigned long priority = 0); - - /// Destructor. - virtual ~ACE_Method_Request (void); - - // = Accessors. - /// Get priority. - unsigned long priority (void) const; - - /// Set priority. - /** - * Priority values are user-defined. The default (set in the constructor) - * is 0. The priority value is used in the ACE_Activation_Queue::enqueue() - * method to order the method requests in the queue by priority. - * 0 is the lowest priority. - * - * @param prio unsigned long, the new priority value for this object. - * - * @sa ACE_Activation_Queue::enqueue - */ - void priority (unsigned long prio); - - // = Invocation method (must be overridden by subclasses). - /// Invoked by the scheduler to execute the request. - /** - * This method must be implemented by the subclass to perform the - * desired actions. - * - * @return int; not interpreted by ACE. The scheduler class must - * decide the meaning of this return value and act on it - * if needed. - */ - virtual int call (void) = 0; - -protected: - /// The priority of the request. - unsigned long priority_; - -private: - ACE_UNIMPLEMENTED_FUNC (void operator= (const ACE_Method_Request &)) - ACE_UNIMPLEMENTED_FUNC (ACE_Method_Request (const ACE_Method_Request &)) -}; - - -#include "ace/post.h" -#endif /* ACE_METHOD_REQUEST_H */ |