X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2c35f563c1eb2624079c12f7ab27453e809ff599..231c509ec3b2358234784557440a8d4419e99b10:/src/kernel/EngineImpl.hpp diff --git a/src/kernel/EngineImpl.hpp b/src/kernel/EngineImpl.hpp index f82414901d..386e921edb 100644 --- a/src/kernel/EngineImpl.hpp +++ b/src/kernel/EngineImpl.hpp @@ -1,11 +1,11 @@ -/* Copyright (c) 2016-2019. 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 @@ -14,8 +14,8 @@ namespace kernel { class EngineImpl { std::map hosts_; - std::map links_; - std::map storages_; + std::map links_; + std::map storages_; std::unordered_map netpoints_; friend s4u::Engine; @@ -25,6 +25,12 @@ public: EngineImpl(const EngineImpl&) = delete; EngineImpl& operator=(const EngineImpl&) = delete; virtual ~EngineImpl(); + + void load_deployment(const std::string& file); + 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(xbt_main_func_t code); + routing::NetZoneImpl* netzone_root_ = nullptr; };