|
From: <cli...@li...> - 2007-10-22 20:47:07
|
Revision: 74
http://cligg.svn.sourceforge.net/cligg/?rev=74&view=rev
Author: sithhell
Date: 2007-10-22 13:47:03 -0700 (Mon, 22 Oct 2007)
Log Message:
-----------
added first cpp thoughts ...
Added Paths:
-----------
src/cpp/cligg.h
src/cpp/event.cpp
src/cpp/event.h
src/cpp/object.h
Added: src/cpp/cligg.h
===================================================================
--- src/cpp/cligg.h (rev 0)
+++ src/cpp/cligg.h 2007-10-22 20:47:03 UTC (rev 74)
@@ -0,0 +1,11 @@
+#ifndef GLIGG_H
+#define CLIGG_H
+
+class Cligg {
+ public:
+
+ private:
+
+};
+
+#endif
Added: src/cpp/event.cpp
===================================================================
--- src/cpp/event.cpp (rev 0)
+++ src/cpp/event.cpp 2007-10-22 20:47:03 UTC (rev 74)
@@ -0,0 +1,6 @@
+#include <event>
+
+void Event::callback ( Object & o )
+{
+ std::cout << "Event: " << name << data << std::endl;
+}
Added: src/cpp/event.h
===================================================================
--- src/cpp/event.h (rev 0)
+++ src/cpp/event.h 2007-10-22 20:47:03 UTC (rev 74)
@@ -0,0 +1,19 @@
+#ifndef CLIGG_EVENT_H
+#define CLIGG_EVENT_H
+
+#include <string>
+#include <object>
+
+//namespace Cligg {
+ class Event {
+ public:
+ Event ( string _name ): name( _name ); {}
+
+ protected:
+ void callback ( Object & o );
+
+ string name;
+ };
+//}
+
+#endif
Added: src/cpp/object.h
===================================================================
--- src/cpp/object.h (rev 0)
+++ src/cpp/object.h 2007-10-22 20:47:03 UTC (rev 74)
@@ -0,0 +1,12 @@
+#ifndef CLIGG_OBJECT_H
+#define CLIGG_OBJECT_H
+
+#include <iostream>
+
+class Object {
+ public:
+ virtual std::ostream & operator<< ( std::ostream & os, Object & o );
+ virtual std::istream & operator>> ( std::istream & is, Object & o );
+};
+
+#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|