00001
#if !defined(__FOOBAROBJECTADAPTER_HPP)
00002
#define __FOOBAROBJECTADAPTER_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
#if !defined(__COMMON_HPP)
00025
#include <Common.hpp>
00026
#endif
00027
00028
#if !defined(__ADAPTER_HPP)
00029
#include <Adapter.hpp>
00030
#endif
00031
00032
#if !defined(__FOO_HPP)
00033
#include <Foo.hpp>
00034
#endif
00035
00036 DECLARE_CLASS(
Bar );
00037
00057 DECLARE_CLASS(FooBarObjectAdapter);
00058
00059
class FooBarObjectAdapter :
public CORELINUX(Adapter),
public Foo
00060 {
00061
00062
public:
00063
00065
00066 FooBarObjectAdapter(
BarPtr )
00067 throw(CORELINUX(Exception));
00068
00070
00071 FooBarObjectAdapter( FooBarObjectAdapterCref );
00072
00074
00075 virtual ~FooBarObjectAdapter(
void );
00076
00077
00078
00079
00080
00082
00083 FooBarObjectAdapterRef operator=( FooBarObjectAdapterCref );
00084
00086
00087
bool operator==( FooBarObjectAdapterCref );
00088
00089
00090
00091
00092
00093 virtual CORELINUX(IntCref) getVerticalPosition(
void) const;
00094
00095
00096 virtual CORELINUX(IntCref) getHorizontalPosition(
void) const;
00097
00098
00099
00100
00101
00103
00104 virtual
void setVerticalPosition(CORELINUX(Int))
00105 throw(CORELINUX(Exception));
00106
00108
00109 virtual
void setHorizontalPosition(CORELINUX(Int))
00110 throw(CORELINUX(Exception));
00111
00112 protected:
00113
00120 FooBarObjectAdapter(
void );
00121
00122
00124
00125
BarPtr getBar(
void ) const;
00126
00127
00128 private:
00129
00130
BarPtr theBar;
00131 };
00132
00133 #endif
00134
00135
00136
00137
00138
00139
00140
00141
00142