00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_VIEW_H_
00028 #define CEYLAN_VIEW_H_
00029
00030
00031 #include "CeylanCallerEventListener.h"
00032
00033 #include <string>
00034
00035
00036
00037 namespace Ceylan
00038 {
00039
00040
00041
00042
00043 class MVCEvent ;
00044
00045
00046
00047 class Model ;
00048
00049
00050
00072 class CEYLAN_DLL View : public CallerEventListener
00073 {
00074
00075
00076 public:
00077
00078
00083 View() ;
00084
00085
00086
00094 explicit View( Model & model ) ;
00095
00096
00097
00099 virtual ~View() throw() ;
00100
00101
00102
00108 virtual void renderModel() = 0 ;
00109
00110
00111
00122 virtual const std::string toString(
00123 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00124
00125
00126
00127 protected:
00128
00129
00140 virtual Model & getModel() ;
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152 private:
00153
00154
00162 View( const View & source ) ;
00163
00164
00172 View & operator = ( const View & source ) ;
00173
00174
00175
00176 } ;
00177
00178 }
00179
00180
00181
00182 #endif // CEYLAN_VIEW_H_
00183