X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ec0f3170bb7f94bf2735c8cd777468df5b5c7722..62dceedf62ca9df19fd3afee1458e21d9f211c5a:/src/kernel/EngineImpl.hpp diff --git a/src/kernel/EngineImpl.hpp b/src/kernel/EngineImpl.hpp index d3501dc660..cf4828ff1c 100644 --- a/src/kernel/EngineImpl.hpp +++ b/src/kernel/EngineImpl.hpp @@ -1,30 +1,40 @@ -/* Copyright (c) 2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-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. */ -#include -#include - +#include +#include +#include #include #include namespace simgrid { namespace kernel { -namespace routing { -class NetZoneImpl; -class NetCard; -} class EngineImpl { + std::map hosts_; + std::map links_; + std::map storages_; + std::unordered_map netpoints_; + friend s4u::Engine; + public: - EngineImpl(); + EngineImpl() = default; + + EngineImpl(const EngineImpl&) = delete; + EngineImpl& operator=(const EngineImpl&) = delete; virtual ~EngineImpl(); - kernel::routing::NetZoneImpl* netRoot_ = nullptr; -protected: - std::unordered_map netcards_; - friend simgrid::s4u::Engine; + void load_deployment(const std::string& file); + void register_function(const std::string& name, int (*code)(int, char**)); // deprecated + void register_function(const std::string& name, xbt_main_func_t code); + void register_function(const std::string& name, void (*code)(std::vector)); + void register_default(int (*code)(int, char**)); // deprecated + void register_default(xbt_main_func_t code); + + routing::NetZoneImpl* netzone_root_ = nullptr; }; -} -} + +} // namespace kernel +} // namespace simgrid