Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

Foo.hpp

00001 #if !defined(__FOO_HPP) 00002 #define __FOO_HPP 00003 /* 00004 CoreLinux++ 00005 Copyright (C) 2000 CoreLinux Consortium 00006 00007 The CoreLinux++ Library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public License as 00009 published by the Free Software Foundation; either version 2 of the 00010 License, or (at your option) any later version. 00011 00012 The CoreLinux++ Library Library is distributed in the hope that it will 00013 be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public 00018 License along with the GNU C Library; see the file COPYING.LIB. If not, 00019 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 Boston, MA 02111-1307, USA. 00021 */ 00022 00023 #if !defined(__COMMON_HPP) 00024 #include <Common.hpp> 00025 #endif 00026 00027 DECLARE_CLASS( Foo ); 00028 00043 class Foo 00044 { 00045 00046 public: 00047 00049 00050 Foo( void ); 00051 00053 00054 Foo( FooCref ); 00055 00057 00058 virtual ~Foo( void ); 00059 00060 // 00061 // Operator overloads 00062 // 00063 00065 00066 FooRef operator=( FooCref ); 00067 00069 00070 bool operator==( FooCref ); 00071 00072 // 00073 // Accessors 00074 // 00075 00077 00078 virtual CORELINUX(IntCref) getVerticalPosition( void ) const = 0; 00079 00081 00082 virtual CORELINUX(IntCref) getHorizontalPosition( void ) const = 0; 00083 00084 // 00085 // Mutators 00086 // 00088 00089 virtual void setVerticalPosition( CORELINUX(Int) ) 00090 throw(CORELINUX(Exception)) = 0; 00091 00093 00094 virtual void setHorizontalPosition( CORELINUX(Int) ) 00095 throw(CORELINUX(Exception)) = 0; 00096 00097 00098 protected: 00099 00101 00102 static CORELINUX(IntCref) getMinimumVerticalPosition( void ); 00103 00105 00106 static CORELINUX(IntCref) getMaximumVerticalPosition( void ); 00107 00109 00110 static CORELINUX(IntCref) getMinimumHorizontalPosition( void ); 00111 00113 00114 static CORELINUX(IntCref) getMaximumHorizontalPosition( void ); 00115 00116 protected: 00117 00119 00120 static CORELINUX(Int) theMinimumVertical; 00121 00123 00124 static CORELINUX(Int) theMaximumVertical; 00125 00127 00128 static CORELINUX(Int) theMinimumHorizontal; 00129 00131 00132 static CORELINUX(Int) theMaximumHorizontal; 00133 00134 }; 00135 00136 #endif 00137 00138 /* 00139 Common rcs information do not modify 00140 $Author: frankc $ 00141 $Revision: 1.4 $ 00142 $Date: 2000/02/10 14:32:20 $ 00143 $Locker: $ 00144 */ 00145

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