Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplification: if jedule headers are loaded, jedule is here and needed
[simgrid.git] / include / simgrid / jedule / jedule.hpp
index 372f265ad48c5482bfd9bec5ee85e3ae3b43a7ea..8c9ef3945c3452988ff48c7897fa87b539299266 100644 (file)
@@ -1,27 +1,20 @@
-/* Copyright (c) 2010-2012, 2014-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 #ifndef JEDULE_HPP_
 #define JEDULE_HPP_
-#include <stdio.h>
-#include "simgrid_config.h"
 
-#include "jedule_events.hpp"
-#include "jedule_platform.hpp"
+#include <simgrid/jedule/jedule_events.hpp>
+#include <simgrid/jedule/jedule_platform.hpp>
 
-#if HAVE_JEDULE
-
-XBT_ATTRIB_UNUSED static std::unordered_map <const char *, jed_container_t> host2_simgrid_parent_container;
-XBT_ATTRIB_UNUSED static std::unordered_map <std::string, jed_container_t> container_name2container;
+#include <cstdio>
 
 namespace simgrid {
 namespace jedule{
 
-
-XBT_PUBLIC_CLASS Jedule {
+class XBT_PUBLIC Jedule {
 public:
   Jedule()=default;
   ~Jedule();
@@ -36,11 +29,6 @@ public:
 }
 }
 
-SG_BEGIN_DECL()
-
 typedef simgrid::jedule::Jedule *jedule_t;
 
-SG_END_DECL()
-#endif
-
 #endif /* JEDULE_HPP_ */