Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add interface to create Profile
[simgrid.git] / src / kernel / resource / profile / ProfileBuilder.cpp
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 #include "simgrid/kernel/ProfileBuilder.hpp"
7 #include "src/kernel/resource/profile/Profile.hpp"
8
9 namespace simgrid {
10 namespace kernel {
11 namespace profile {
12
13 Profile* ProfileBuilder::from_string(const std::string& name, const std::string& input, double periodicity)
14 {
15   return Profile::from_string(name, input, periodicity);
16 }
17
18 Profile* ProfileBuilder::from_file(const std::string& path)
19 {
20   return Profile::from_file(path);
21 }
22
23 } // namespace profile
24 } // namespace kernel
25 } // namespace simgrid