CoreLinux++  0.4.32
AbstractCommand.hpp
1 #if !defined(__ABSTRACTCOMMAND_HPP)
2 #define __ABSTRACTCOMMAND_HPP
3 
4 /*
5  CoreLinux++
6  Copyright (C) 1999,2000 CoreLinux Consortium
7 
8  The CoreLinux++ Library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public License as
10  published by the Free Software Foundation; either version 2 of the
11  License, or (at your option) any later version.
12 
13  The CoreLinux++ Library Library is distributed in the hope that it will
14  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public
19  License along with the GNU C Library; see the file COPYING.LIB. If not,
20  write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  Boston, MA 02111-1307, USA.
22 */
23 
24 #if !defined(__COMMON_HPP)
25 #include <Common.hpp>
26 #endif
27 
28 namespace corelinux
29 {
30  DECLARE_CLASS( AbstractCommand );
31 
39  {
40 
41  public:
42 
43  //
44  // Constructors and destructor
45  //
47 
48  AbstractCommand( void );
49 
51 
53 
55 
56  virtual ~AbstractCommand( void );
57 
58  //
59  // Operator overloads
60  //
61 
63 
65 
67 
68  bool operator==( AbstractCommandCref ) const;
69 
70  //
71  // Abstract methods
72  //
73 
75 
76  virtual void execute( void ) = 0;
77 
79 
80  virtual void executeReverse( void ) = 0;
81 
82  protected:
83 
84  private:
85 
86  };
87 }
88 
89 #endif // if !defined(__ABSTRACTCOMMAND_HPP)
90 
91 /*
92  Common rcs information do not modify
93  $Author: frankc $
94  $Revision: 1.1 $
95  $Date: 2000/05/03 03:56:47 $
96  $Locker: $
97 */
98 
virtual void executeReverse(void)=0
Execute the reverse command.
virtual ~AbstractCommand(void)
Virtual Destructor.
Definition: AbstractCommand.cpp:51
Forward reference the various common classes.
Definition: AbstractAllocator.hpp:32
AbstractCommand captures the semantics of the capabilities of commands, which is basically to provide...
Definition: AbstractCommand.hpp:38
bool operator==(AbstractCommandCref) const
Equality operator.
Definition: AbstractCommand.cpp:65
AbstractCommand(void)
Default Constructor.
Definition: AbstractCommand.cpp:33
AbstractCommandRef operator=(AbstractCommandCref)
Assignment operator.
Definition: AbstractCommand.cpp:58
virtual void execute(void)=0
Execute the command.
Synchronized is a mixin which allows class objects to enable monitor functionality.
Definition: Synchronized.hpp:41

This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium