summaryrefslogtreecommitdiff
path: root/tests/utils
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-08-07 23:25:56 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-08-07 23:25:56 +0200
commit8a2cab809aaa0b0eb8ec65082344468d1deac1ca (patch)
treebcc304674d1e2b0a970883206a75175e1ebf6430 /tests/utils
parent6586912d3a24e3f7a361c65f56f530b2241f5029 (diff)
downloadcrawler-8a2cab809aaa0b0eb8ec65082344468d1deac1ca.tar.gz
crawler-8a2cab809aaa0b0eb8ec65082344468d1deac1ca.tar.bz2
started modularization of URL filters
better registry function for loading the module (base class as signature) started to support variable arguments for registry create/constructor (work in progress) playing with some Alexandrescu idions :-)
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/GNUmakefile25
-rw-r--r--tests/utils/test1.cpp16
2 files changed, 41 insertions, 0 deletions
diff --git a/tests/utils/GNUmakefile b/tests/utils/GNUmakefile
new file mode 100644
index 0000000..e3913bd
--- /dev/null
+++ b/tests/utils/GNUmakefile
@@ -0,0 +1,25 @@
+TOPDIR = ../..
+
+SUBDIRS =
+
+INCLUDE_DIRS = \
+ -I$(TOPDIR)/src
+
+INCLUDE_LDFLAGS =
+
+INCLUDE_LIBS =
+
+TEST_CPP_BINS = \
+ test1$(EXE)
+
+OBJS =
+
+-include $(TOPDIR)/makefiles/gmake/sub.mk
+
+local_all:
+
+local_clean:
+
+local_distclean:
+
+local_test:
diff --git a/tests/utils/test1.cpp b/tests/utils/test1.cpp
new file mode 100644
index 0000000..987149b
--- /dev/null
+++ b/tests/utils/test1.cpp
@@ -0,0 +1,16 @@
+#include "TypeList.hpp"
+
+#include <iostream>
+using namespace std;
+
+typedef TypeList< int, TypeList< char *, TypeList< int, NullType > > > TestType;
+
+typedef TYPELIST_3( int, char *, int ) TestType2;
+
+int len = Length<TestType2>::value;
+
+int main( void )
+{
+ cout << "len: " << len << endl;
+ return 0;
+}