CoreLinux++  0.4.32
Memento.hpp
1 #if !defined(__MEMENTO_HPP)
2 #define __MEMENTO_HPP
3 
4 /*
5  CoreLinux++
6  Copyright (C) 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( Memento );
31 
37  class Memento
38  {
39  public:
40 
41  //
42  // Constructors and destructor
43  //
44 
49  Memento( void ) ;
50 
57 
59 
60  virtual ~Memento( void );
61 
62  //
63  // Operator overloads
64  //
65 
67 
69 
71 
72  bool operator==( MementoCref ) const;
73 
75 
76  bool operator!=( MementoCref ) const;
77  //
78  // Accessors
79  //
80 
81  //
82  // Mutators
83  //
84 
85  protected:
86 
87 
88  private:
89 
90  };
91 }
92 
93 #endif // if !defined(__MEMENTO_HPP)
94 
95 /*
96  Common rcs information do not modify
97  $Author: frankc $
98  $Revision: 1.1 $
99  $Date: 2000/05/07 03:41:47 $
100  $Locker: $
101 */
102 
103 
virtual ~Memento(void)
Virtual destructor.
Definition: Memento.cpp:53
Memento(void)
Default constructor.
Definition: Memento.cpp:35
MementoRef operator=(MementoCref)
Assignment operator.
Definition: Memento.cpp:62
bool operator==(MementoCref) const
Equality operator.
Definition: Memento.cpp:71
Memento knows its Mediator object, communicates with its mediator whenever it would have otherwise co...
Definition: Memento.hpp:37
bool operator!=(MementoCref) const
In-Equality operator.
Definition: Memento.cpp:80

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