Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A string utility class and a new Exception (used to throw out of band exception)
[simgrid.git] / src / cxx / Object.hpp
index 660f4eb..d44ff2b 100644 (file)
@@ -1,4 +1,16 @@
-\r
+/*\r
+ * Object.hpp\r
+ *\r
+ * This file contains the declaration of the wrapper class of the native MSG task type.\r
+ *\r
+ * Copyright 2006,2007 Martin Quinson, Malek Cherier           \r
+ * All right reserved. \r
+ *\r
+ * This program is free software; you can redistribute \r
+ * it and/or modify it under the terms of the license \r
+ *(GNU LGPL) which comes with this package. \r
+ *\r
+ */  \r
 #ifndef MSG_OBJECT_H\r
 #define MSG_OBJECT_H\r
 \r
@@ -27,7 +39,7 @@ namespace SimGrid
                public: \\r
                        static Class class##class_name; \\r
                        virtual Class* getClass() const; \\r
-                       static Object*  createObject(); \\r
+                       static Object*  createObject() \\r
 \r
                // The runtime class implementation.    \r
                #define MSG_IMPLEMENT_CLASS(class_name, base_class_name, pfn,class_init) \\r
@@ -227,6 +239,8 @@ namespace SimGrid
                        unsigned int count;\r
                };\r
 \r
+               typedef Object* ObjectPtr;\r
+\r
 \r
         // Constructor (Add the class in the list).\r
         inline DeclaringClass::DeclaringClass(Class* c)\r