diff options
author | Michael Andres <ma@suse.de> | 2008-07-23 12:27:53 +0000 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2008-07-23 12:27:53 +0000 |
commit | e742d27dc1834558e6a99678792a16104b7c3137 (patch) | |
tree | 548664735da58a19908b79bdc7d05002216669e2 /swig/Kind.i | |
parent | 5162733b07341c5e3f53ae7c6339d4f38973130e (diff) | |
download | libzypp-bindings-e742d27dc1834558e6a99678792a16104b7c3137.tar.gz libzypp-bindings-e742d27dc1834558e6a99678792a16104b7c3137.tar.bz2 libzypp-bindings-e742d27dc1834558e6a99678792a16104b7c3137.zip |
Changes bindings to at least compile. Still several header copies to be
replaced by %include. For shure also still a lot namespace issues, as
c++ namespace support was introduced in SWIG-1.3.12.
Diffstat (limited to 'swig/Kind.i')
-rw-r--r-- | swig/Kind.i | 38 |
1 files changed, 3 insertions, 35 deletions
diff --git a/swig/Kind.i b/swig/Kind.i index 1d61911..7f71dfc 100644 --- a/swig/Kind.i +++ b/swig/Kind.i @@ -1,37 +1,5 @@ -template<class _Tp> -class KindOf -{ - public: - /** DefaultCtor: empty string */ - KindOf() - {} - /** Ctor from string. - * Lowercase version of \a value_r is used as identification. - */ - explicit - KindOf( const std::string & value_r ) - : _value( str::toLower(value_r) ) - {} - /** Dtor */ - ~KindOf() - {} - public: - /** Identification string. */ - const std::string & asString() const - { return _value; } +%ignore zypp::ResKind::satIdent( const std::string & name_r ) const; - /** Order on KindOf (arbitrary). - * Not necessarily lexicographical. - * \todo Enable class _Tp to define the order, - * Fix logical operators below to use compare, - */ - int compare( const KindOf & rhs ) const - { return _value.compare( rhs._value ); } - - private: - /** */ - std::string _value; -}; - -%template(KindOfResolvable) KindOf<Resolvable>; +%template(IdStringResKind) zypp::IdStringType<zypp::ResKind>; +%include <zypp/ResKind.h> |