[Debtags-commits] [svn] r942 - in libdebtags1/trunk: . swig
Enrico Zini
debtags-commits@lists.alioth.debian.org
Sun, 26 Jun 2005 09:50:03 +0000
Author: enrico
Date: Sun Jun 26 09:50:01 2005
New Revision: 942
Modified:
libdebtags1/trunk/ (props changed)
libdebtags1/trunk/README
libdebtags1/trunk/swig/libdebtags.i
Log:
r3724@viaza: enrico | 2005-06-26 11:49:40 +0200
Updated SWIG file to account for templatization of DebtagsSimple
Modified: libdebtags1/trunk/README
==============================================================================
--- libdebtags1/trunk/README (original)
+++ libdebtags1/trunk/README Sun Jun 26 09:50:01 2005
@@ -152,6 +152,8 @@
These are the TODO-list items currently being worked on::
+ - Allow to have ~/.debtags/vocabulary merged in
+
- Try to get rid of the Singleton Environment
- Remove throw declarations altogether except when the function obviously
Modified: libdebtags1/trunk/swig/libdebtags.i
==============================================================================
--- libdebtags1/trunk/swig/libdebtags.i (original)
+++ libdebtags1/trunk/swig/libdebtags.i Sun Jun 26 09:50:01 2005
@@ -59,6 +59,13 @@
// }
//}
+%template(OpSetString) Tagcoll::OpSet<std::string>;
+%extend Tagcoll::OpSet<std::string> {
+ std::vector<std::string> getIterable() {
+ return std::vector<std::string>(self->begin(), self->end());
+ }
+}
+
%template(OpSetTag) Tagcoll::OpSet<Debtags::Tag>;
%extend Tagcoll::OpSet<Debtags::Tag> {
std::vector<Debtags::Tag> getIterable() {
@@ -157,6 +164,8 @@
//};
+%template(DebtagsString) Debtags::DebtagsSimple<std::string>;
+%template(DebtagsPackage) Debtags::DebtagsSimple<Debtags::Package>;
// TODO:
// Rename the static method to be called as MailFolder.enumerateFolders