X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/05e7b862d160f556d0430f55a3af784bcd44bd72..e595b191c3e10a96a9d896f6ecec9c4df6707aef:/include/simgrid/s4u/Link.hpp diff --git a/include/simgrid/s4u/Link.hpp b/include/simgrid/s4u/Link.hpp index af44cb4dcf..de05738704 100644 --- a/include/simgrid/s4u/Link.hpp +++ b/include/simgrid/s4u/Link.hpp @@ -6,14 +6,12 @@ #ifndef S4U_LINK_HPP_ #define S4U_LINK_HPP_ +#include #include +#include #include -#include "xbt/signal.hpp" - -#include "simgrid/link.h" - /*********** * Classes * ***********/ @@ -21,14 +19,13 @@ namespace simgrid { namespace surf { class NetworkAction; -class Action; }; namespace s4u { /** @brief A Link represents the network facilities between [hosts](\ref simgrid::s4u::Host) */ -class Link { +XBT_PUBLIC_CLASS Link +{ friend simgrid::surf::LinkImpl; -private: // Links are created from the NetZone, and destroyed by their private implementation when the simulation ends explicit Link(surf::LinkImpl* pimpl) : pimpl_(pimpl) {} virtual ~Link() = default; @@ -70,13 +67,13 @@ public: /* The signals */ /** @brief Callback signal fired when a new Link is created */ - static simgrid::xbt::signal onCreation; + static simgrid::xbt::signal onCreation; /** @brief Callback signal fired when a Link is destroyed */ - static simgrid::xbt::signal onDestruction; + static simgrid::xbt::signal onDestruction; /** @brief Callback signal fired when the state of a Link changes (when it is turned on or off) */ - static simgrid::xbt::signal onStateChange; + static simgrid::xbt::signal onStateChange; /** @brief Callback signal fired when a communication starts */ static simgrid::xbt::signal onCommunicate;