Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Code refactoring on CPP
[simgrid.git] / src / cxx / ApplicationHandler.hpp
index c33cc76..37e5bf1 100644 (file)
@@ -1,3 +1,17 @@
+/*\r
+ * ApplicationHandler.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
\r
 #ifndef MSG_APPLICATION_HANDLER_HPP\r
 #define MSG_APPLICATION_HANDLER_HPP\r
 \r
 #endif\r
 \r
 \r
+#include <ClassNotFoundException.hpp>\r
+#include <HostNotFoundException.hpp>\r
+\r
 namespace SimGrid\r
 {\r
        namespace Msg\r
        {\r
-               // Declaration of the class ApplicationHandler.\r
+               // Declaration of the class ApplicationHandler (Singleton).\r
                class ApplicationHandler\r
                {\r
                private :\r
@@ -71,13 +88,15 @@ namespace SimGrid
                                const const char* getHostName(void);\r
                                \r
                                // Create the current process.\r
-                       void createProcess(void); \r
+                       void createProcess(void)\r
+                       throw (ClassNotFoundException, HostNotFoundException); \r
                        \r
                        };\r
                        \r
                        // the process factory used by the application handler.\r
                        static ProcessFactory* processFactory;\r
                        \r
+                       \r
                        public:\r
                        \r
                        // Handle the begining of the parsing of the xml file describing the application.\r