2 #if defined(SWIGPYTHON) || defined(SWIGRUBY)
3 %rename Edition::asString "__str__";
9 typedef unsigned epoch_t;
10 static const epoch_t noepoch = 0;
11 static const Edition noedition;
15 Edition( const std::string & edition_r );
16 Edition( const std::string & version_r,
17 const std::string & release_r,
18 epoch_t epoch_r = noepoch );
19 Edition( const std::string & version_r,
20 const std::string & release_r,
21 const std::string & epoch_r );
24 epoch_t epoch() const;
25 const std::string & version() const;
26 const std::string & release() const;
27 std::string asString() const;
29 static int compare( const Edition & lhs, const Edition & rhs );
30 int compare( const Edition & rhs ) const;
31 typedef Compare<Edition> Compare;
32 typedef Range<Edition> CompareRange;
34 static int match( const Edition & lhs, const Edition & rhs );
35 int match( const Edition & rhs ) const;