00001 #if !defined(__ENGINEBRIDGE_HPP)
00002 #define __ENGINEBRIDGE_HPP
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <Common.hpp>
00025
00026 #if !defined(__BRIDGE_HPP)
00027 #include <Bridge.hpp>
00028 #endif
00029
00030
00031
00032
00033
00034
00035 #if !defined(__ENGINE_HPP)
00036 #include <Engine.hpp>
00037 #endif
00038
00048 DECLARE_CLASS(EngineBridge);
00049
00050 class EngineBridge : public CORELINUX(Bridge<EnginePtr>)
00051 {
00052
00053 public:
00054
00056
00057 EngineBridge( EnginePtr )
00058 throw(CORELINUX(Exception));
00059
00061
00062 virtual ~EngineBridge( void );
00063
00064
00065
00066
00067
00069
00070 EngineBridgeRef operator=( EngineBridgeCref )
00071 throw(CORELINUX(Exception));
00072
00074
00075 bool operator==( EngineBridgeCref ) const;
00076
00077
00078
00079
00080
00082
00083 CylindersCref getCylinders( void ) const;
00084
00085
00086
00087
00089
00090 void upgradeEngine( EnginePtr aPtr )
00091 throw(CORELINUX(Exception));
00092
00093
00094 protected:
00095
00097
00098 EngineBridge( void )
00099 throw(CORELINUX(Assertion));
00100
00102
00103 EngineBridge( EngineBridgeCref )
00104 throw(CORELINUX(Assertion));
00105
00106
00114 virtual EnginePtr cloneImplementation( EnginePtr aPtr )
00115 throw(CORELINUX(Exception));
00116 };
00117
00118 #endif
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128