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_LIBTOOL_VERSION_H_
00028 #define CEYLAN_LIBTOOL_VERSION_H_
00029
00030
00031 #include "CeylanVersion.h"
00032
00033
00034
00035 namespace Ceylan
00036 {
00037
00038
00039
00047 class CEYLAN_DLL LibtoolVersion : public Version
00048 {
00049
00050
00051
00052 public:
00053
00054
00055
00069 explicit LibtoolVersion( VersionNumber current = 0,
00070 VersionNumber revision = 0, VersionNumber age= 0 ) ;
00071
00072
00073
00086 explicit LibtoolVersion( const std::string & versionText ) ;
00087
00088
00089
00091 virtual ~LibtoolVersion() throw() ;
00092
00093
00094
00099 virtual VersionNumber getCurrentInterfaceNumber() const ;
00100
00101
00102
00109 virtual void setCurrentInterfaceNumber( VersionNumber newCurrent ) ;
00110
00111
00112
00114 virtual VersionNumber getRevisionInterfaceNumber() const ;
00115
00116
00117
00124 virtual void setRevisionInterfaceNumber(
00125 VersionNumber newRevision ) ;
00126
00127
00128
00134 virtual VersionNumber getInterfaceAge() const ;
00135
00136
00137
00145 virtual void setInterfaceAge( VersionNumber newAge ) ;
00146
00147
00148
00176 virtual bool isCompatibleWith( const Version & expectedVersion )
00177 const ;
00178
00179
00180
00191 virtual bool canBeComparedWith( const Version & version ) const ;
00192
00193
00194
00205 virtual const std::string toString( VerbosityLevels level = high )
00206 const ;
00207
00208
00209
00210 protected:
00211
00212
00213
00219 virtual bool isUsualVersionSchemeCompliant() const ;
00220
00221
00228 virtual void checkConsistency() const ;
00229
00230
00231
00232 private:
00233
00234
00242 LibtoolVersion( const LibtoolVersion & source ) ;
00243
00244
00252 LibtoolVersion & operator = ( const LibtoolVersion & source ) ;
00253
00254
00255 } ;
00256
00257 }
00258
00259
00260
00261 #endif // CEYLAN_LIBTOOL_VERSION_H_
00262