Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
take 2 on declare_flag, not sure it's better... a bit weird
[simgrid.git] / include / xbt / parse_units.hpp
1 /* Copyright (c) 2007-2022. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_XBT_PARSE_UNITS_HPP
8 #define SIMGRID_XBT_PARSE_UNITS_HPP
9
10 #include <string>
11 #include <vector>
12
13 double xbt_parse_get_time(const std::string& filename, int lineno, const std::string& string,
14                           const std::string& entity_kind);
15 double xbt_parse_get_size(const std::string& filename, int lineno, const std::string& string,
16                           const std::string& entity_kind);
17 double xbt_parse_get_bandwidth(const std::string& filename, int lineno, const std::string& string,
18                                const std::string& entity_kind);
19 std::vector<double> xbt_parse_get_bandwidths(const std::string& filename, int lineno, const std::string& string,
20                                              const std::string& entity_kind);
21 double xbt_parse_get_speed(const std::string& filename, int lineno, const std::string& string,
22                            const std::string& entity_kind);
23 std::vector<double> xbt_parse_get_all_speeds(const std::string& filename, int lineno, const std::string& speeds,
24                                              const std::string& entity_kind);
25
26 #endif