1 /* Copyright (c) 2007-2022. 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
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);