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

Foo Class Reference

Class Foo describes the target interface that we want to adapt other objects or classes with different interfaces to behave like. More...

#include <Foo.hpp>

Inheritance diagram for Foo:

List of all members.

Public Member Functions

 Foo (void)
 Default Constructor.

 Foo (FooCref)
 Copy constructor.

virtual ~Foo (void)
 Destructor.

FooRef operator= (FooCref)
 Assignment operator.

bool operator== (FooCref)
 Equality operator.

virtual corelinux::IntCref getVerticalPosition (void) const =0
 Return the Y coordinate of the point.

virtual corelinux::IntCref getHorizontalPosition (void) const =0
 Return the X coordinate of the point.

virtual void setVerticalPosition (corelinux::Int)=0 throw (corelinux::Exception )
 Sets the Y coordinate.

virtual void setHorizontalPosition (corelinux::Int)=0 throw (corelinux::Exception )
 Sets the X coordinate.


Static Protected Member Functions

corelinux::IntCref getMinimumVerticalPosition (void)
 Return minimum Y.

corelinux::IntCref getMaximumVerticalPosition (void)
 Return maximum Y.

corelinux::IntCref getMinimumHorizontalPosition (void)
 Return minimum X.

corelinux::IntCref getMaximumHorizontalPosition (void)
 Return maximum X.


Static Protected Attributes

corelinux::Int theMinimumVertical
 Fixed minimum Y.

corelinux::Int theMaximumVertical
 Fixed maximum Y.

corelinux::Int theMinimumHorizontal
 Fixed minimum X.

corelinux::Int theMaximumHorizontal
 Fixed maximum X.


Detailed Description

Class Foo describes the target interface that we want to adapt other objects or classes with different interfaces to behave like.

Foo is an abstract class that specifies a screen coordinate system that is based on that 0,0 (X,Y) is the top left hand corner of the screen. We mock up the max dimensions to assume Xmax is 5 and Ymax is 5 inclusive. Attempting to fix to a point outside of the dimensions results in an exception.

The minimum and maximum positions are fixed in static members because the original developer once declared "Who needs more than 5 pixels?"


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium