From 72be82ba05c03d99d343262fb2f2daa2d724a021 Mon Sep 17 00:00:00 2001 From: Stephen Waits Date: Mon, 4 Oct 2010 16:22:01 -0700 Subject: [PATCH] oops, test.cpp was renamed! removing again. --- test.cpp | 61 -------------------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 test.cpp diff --git a/test.cpp b/test.cpp deleted file mode 100644 index 4873f3b..0000000 --- a/test.cpp +++ /dev/null @@ -1,61 +0,0 @@ -#include -#include - -#include "signal.h" - -class ParentFoo -{ -public: - virtual bool Bar() - { - printf("ParentFoo::Bar!\n"); - return false; - } - - virtual ~ParentFoo() - { - // empty - } -}; - -class Foo: public ParentFoo -{ -public: - bool Bar() - { - printf("Foo::Bar!\n"); - return true; - } - - virtual ~Foo() - { - // empty - } -}; - -bool somefunc() -{ - printf("some func\n"); - return true; -} - -void anotherfunc(int x) -{ - printf("got %d\n",x); -} - -int main(int argc, char** argv) -{ - Foo f; - - signal sig; - sig.connect(&f,&Foo::Bar); - sig.connect(&f,&ParentFoo::Bar); - sig.connect(&somefunc); - sig(); - - signal sigx; - sigx.connect(&anotherfunc); - sigx(12); - sigx(999); -} \ No newline at end of file