X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ab070a2054636f5dcf5f0b56d691b089c5d16e4..2e60fe3cfd5cf5305888fcca0ae19700d808bb23:/include/simgrid/s4u/Storage.hpp diff --git a/include/simgrid/s4u/Storage.hpp b/include/simgrid/s4u/Storage.hpp index 3099a47242..9d4c46d893 100644 --- a/include/simgrid/s4u/Storage.hpp +++ b/include/simgrid/s4u/Storage.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2020. 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. */ @@ -17,6 +17,9 @@ #include namespace simgrid { + +extern template class XBT_PUBLIC xbt::Extendable; + namespace s4u { /** Storage represent the disk resources, usually associated to a given host @@ -35,6 +38,7 @@ public: protected: virtual ~Storage() = default; + public: /** @brief Callback signal fired when a new Storage is created */ static xbt::signal on_creation; @@ -52,8 +56,8 @@ public: /** @brief Retrieves the name of that storage as a C string */ const char* get_cname() const { return name_.c_str(); } - const char* get_type(); - Host* get_host() { return attached_to_; }; + const char* get_type() const; + Host* get_host() const { return attached_to_; }; void set_host(Host* host) { attached_to_ = host; } const std::unordered_map* get_properties() const;