1 /* Copyright (c) 2007-2021. The SimGrid Team.
2 * All rights reserved. */
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. */
7 #ifndef SIMGRID_XBT_PARSE_UNITS_HPP
8 #define SIMGRID_XBT_PARSE_UNITS_HPP
12 double xbt_parse_get_time(const std::string& filename, int lineno, const std::string& string,
13 const std::string& entity_kind);
14 double xbt_parse_get_size(const std::string& filename, int lineno, const std::string& string,
15 const std::string& entity_kind);
16 double xbt_parse_get_bandwidth(const std::string& filename, int lineno, const std::string& string,
17 const std::string& entity_kind);
18 std::vector<double> xbt_parse_get_bandwidths(const std::string& filename, int lineno, const std::string& string,
19 const std::string& entity_kind);
20 double xbt_parse_get_speed(const std::string& filename, int lineno, const std::string& string,
21 const std::string& entity_kind);
22 std::vector<double> xbt_parse_get_all_speeds(const std::string& filename, int lineno, const std::string& speeds,
23 const std::string& entity_kind);