Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid into no_simix_global
[simgrid.git] / include / simgrid / kernel / ProfileBuilder.hpp
1 /* Copyright (c) 2004-2021. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_KERNEL_PROFILEBUILDER_HPP
7 #define SIMGRID_KERNEL_PROFILEBUILDER_HPP
8
9 #include <simgrid/forward.h>
10
11 namespace simgrid {
12 namespace kernel {
13 namespace profile {
14
15 /**
16  * @brief Simple builder for Profile classes.
17  *
18  * It can be used to create profiles for links, hosts or disks.
19  */
20 class XBT_PUBLIC ProfileBuilder {
21 public:
22   static Profile* from_file(const std::string& path);
23   static Profile* from_string(const std::string& name, const std::string& input, double periodicity);
24 };
25
26 } // namespace profile
27 } // namespace kernel
28 } // namespace simgrid
29
30 #endif /* SIMGRID_KERNEL_PROFILEBUILDER_HPP */