aboutsummaryrefslogtreecommitdiffstats
path: root/meowpp.test/inc
diff options
context:
space:
mode:
authorcathook <b01902109@csie.ntu.edu.tw>2014-05-02 04:10:56 +0800
committercathook <b01902109@csie.ntu.edu.tw>2014-05-02 04:10:56 +0800
commit33d419e4d54d969798af80f05e05f0c447a99594 (patch)
treec78355a2d334e34df865aca865dbb4864a85820c /meowpp.test/inc
parentd2d7a49563a8f04bd07264a4a989d5656313d375 (diff)
downloadmeow-33d419e4d54d969798af80f05e05f0c447a99594.tar
meow-33d419e4d54d969798af80f05e05f0c447a99594.tar.gz
meow-33d419e4d54d969798af80f05e05f0c447a99594.tar.bz2
meow-33d419e4d54d969798af80f05e05f0c447a99594.tar.lz
meow-33d419e4d54d969798af80f05e05f0c447a99594.tar.xz
meow-33d419e4d54d969798af80f05e05f0c447a99594.tar.zst
meow-33d419e4d54d969798af80f05e05f0c447a99594.zip
big change about dir structure
Diffstat (limited to 'meowpp.test/inc')
l---------meowpp.test/inc/meowpp1
-rw-r--r--meowpp.test/inc/meowpp.h34
2 files changed, 35 insertions, 0 deletions
diff --git a/meowpp.test/inc/meowpp b/meowpp.test/inc/meowpp
new file mode 120000
index 0000000..304fa84
--- /dev/null
+++ b/meowpp.test/inc/meowpp
@@ -0,0 +1 @@
+../../meowpp \ No newline at end of file
diff --git a/meowpp.test/inc/meowpp.h b/meowpp.test/inc/meowpp.h
new file mode 100644
index 0000000..8e6e181
--- /dev/null
+++ b/meowpp.test/inc/meowpp.h
@@ -0,0 +1,34 @@
+#ifndef __meowpp_h__
+#define __meowpp_h__
+
+#include "meowpp/geo/Vector2D.h"
+#include "meowpp/geo/Vector3D.h"
+
+#include "meowpp/Usage.h"
+#include "meowpp/oo/Properties.h"
+#include "meowpp/oo/ObjBase.h"
+#include "meowpp/oo/ObjSelector.h"
+
+extern int count;
+
+class TestFunction: public meow::ObjBase{
+ public:
+ virtual ~TestFunction(){ };
+ virtual bool run() = 0;
+ virtual std::string name () const = 0;
+ virtual std::string description() const = 0;
+};
+
+#define TEST(__A,__B) \
+class Test##__A: public TestFunction{ \
+ public: \
+ \
+ meow::ObjBase* create() const{ return new Test##__A(); } \
+ bool run(); \
+ std::string name() const{ return #__A; } \
+ std::string description() const{ return __B; } \
+}; \
+static meow::ObjSelector<0> _(meow::stringPrintf("%d", count++), new Test##__A()); \
+inline bool Test##__A::run()
+
+#endif // __meowpp_h__