-
+namespace zypp {
%apply unsigned { ResPool::size_type };
%nodefault ResPool;
%ignore ResPool::byNameBegin;
%ignore ResPool::byNameEnd;
+
+
class ResPool
{
friend std::ostream & operator<<( std::ostream & str, const ResPool & obj );
/** */
size_type size() const;
- /** \name Iterate through all PoolItems (all kinds). */
- //@{
- /** */
- const_iterator begin() const
- { return make_filter_begin( pool::ByPoolItem(), store() ); }
/** */
- const_iterator end() const
- { return make_filter_end( pool::ByPoolItem(), store() ); }
- //@}
-
+ const_iterator begin() const;
+ const_iterator end() const;
+
public:
/** Return the corresponding \ref PoolItem.
* Pool and sat pool should be in sync. Returns an empty
}
#endif
+
+}
ADD_CUSTOM_COMMAND (
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx
COMMAND ${CMAKE_COMMAND} -E echo_append "Creating wrapper code for python..."
- COMMAND ${SWIG_EXECUTABLE} -DZYPP_DEPRECATED -c++ -python -o ${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx -I${ZYPP_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../zypp.i
+ COMMAND ${SWIG_EXECUTABLE} -v -DZYPP_DEPRECATED -c++ -python -o ${CMAKE_CURRENT_BINARY_DIR}/zypp_wrap.cxx -I${ZYPP_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../zypp.i
COMMAND ${CMAKE_COMMAND} -E echo "Done."
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../*.i ${CMAKE_CURRENT_SOURCE_DIR}/*.i
// Just to avoid warnings.
%ignore operator<<;
+ namespace repo
+ {
+ // These operators must be ignored otherwise the wrapper does
+ // not compile (using swig 1.3.29).
+ %ignore operator==;
+ %ignore operator!=;
+
+ // Just to avoid warnings.
+ %ignore operator<<;
+ }
+
}
+
%define iter( cls )
%extend cls {
%pythoncode %{