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_MODULE_H_
00028 #define CEYLAN_MODULE_H_
00029
00030
00031 #include "CeylanObject.h"
00032 #include "CeylanVersion.h"
00033 #include "CeylanException.h"
00034
00035
00036 #include <string>
00037
00038
00039
00040 namespace Ceylan
00041 {
00042
00043
00044
00046 class CEYLAN_DLL ModuleException: public Ceylan::Exception
00047 {
00048
00049 public:
00050
00051 ModuleException( const std::string & message ) ;
00052 virtual ~ModuleException() throw() ;
00053
00054 } ;
00055
00056
00057
00058
00067 class CEYLAN_DLL Module: public Ceylan::Object
00068 {
00069
00070
00071
00072 public:
00073
00074
00075
00105 Module(
00106 const std::string & name,
00107 const std::string & description,
00108 const std::string & homepageURL,
00109 const std::string & author,
00110 const std::string & authorMail,
00111 const Ceylan::Version & version,
00112 const std::string & licence ) ;
00113
00114
00115
00122 Module() ;
00123
00124
00125
00127 virtual ~Module() throw() ;
00128
00129
00130
00137 virtual std::string getName() const ;
00138
00139
00140
00147 virtual void setName( const std::string & name ) ;
00148
00149
00150
00152 virtual std::string getDescription() const ;
00153
00154
00156 virtual void setDescription( const std::string & description ) ;
00157
00158
00159
00161 virtual std::string getHomePage() const ;
00162
00163
00165 virtual void setHomePage( const std::string & homePage ) ;
00166
00167
00168
00170 virtual std::string getAuthor() const ;
00171
00172
00174 virtual void setAuthor( const std::string & author ) ;
00175
00176
00177
00179 virtual std::string getAuthorMail() const ;
00180
00181
00183 virtual void setAuthorMail( const std::string & authorMail ) ;
00184
00185
00186
00188 virtual const Ceylan::Version & getVersion() const ;
00189
00190
00192 virtual void setVersion( const Ceylan::Version & version ) ;
00193
00194
00195
00197 virtual std::string getLicence() const ;
00198
00199
00201 virtual void setLicence( const std::string & licence ) ;
00202
00203
00204
00215 virtual const std::string toString(
00216 VerbosityLevels level = high ) const ;
00217
00218
00219
00220
00221 private:
00222
00223
00224
00226 std::string _name ;
00227
00228
00230 std::string _description ;
00231
00232
00234 std::string _homepageURL ;
00235
00236
00238 std::string _author ;
00239
00240
00242 std::string _authorMail ;
00243
00244
00246 Ceylan::Version _version ;
00247
00248
00254 std::string _licence ;
00255
00256
00257
00266 explicit Module( const Module & source ) ;
00267
00268
00277 Module & operator = ( const Module & source ) ;
00278
00279
00280 } ;
00281
00282
00283 }
00284
00285
00286 #endif // CEYLAN_MODULE_H_
00287