|
SimGrid
3.14.159
Versatile Simulation of Distributed Systems
|
#include <errno.h>#include <math.h>#include <stdarg.h>#include "simgrid/link.h"#include "simgrid/s4u/engine.hpp"#include "simgrid/sg_config.h"#include "src/kernel/routing/NetCard.hpp"#include "src/surf/network_interface.hpp"#include "src/surf/surf_private.h"#include "xbt/dict.h"#include "xbt/file.h"#include "xbt/log.h"#include "xbt/misc.h"#include "xbt/str.h"#include "src/surf/xml/platf_private.hpp"#include "simgrid_dtd.c"Classes | |
| struct | unit_scale |
Variables | |
| char * | surf_parsed_filename = nullptr |
| std::vector< simgrid::surf::Link * > | parsed_link_list |
| xbt_dict_t | current_property_set = nullptr |
| xbt_dict_t | current_model_property_set = nullptr |
| int | AS_TAG = 0 |
| xbt_dict_t | random_data_list = nullptr |
| YY_BUFFER_STATE | surf_input_buffer |
| FILE * | surf_file_to_parse = nullptr |
| static xbt_dynar_t | surf_input_buffer_stack = nullptr |
| static xbt_dynar_t | surf_file_to_parse_stack = nullptr |
| static xbt_dynar_t | surf_parsed_filename_stack = nullptr |
| static int | argc |
| static char ** | argv |
| int_f_void_t | surf_parse = _surf_parse |
| XBT_LOG_NEW_DEFAULT_SUBCATEGORY | ( | surf_parse | , |
| surf | , | ||
| "Logging specific to the SURF parsing module" | |||
| ) |
| int ETag_surfxml_include_state | ( | ) |
When reaching EOF, check whether we are in an include tag, and behave accordingly if yes.
This function is called automatically by sedding the parser in tools/cmake/MaintainerMode.cmake Every FAIL on "Premature EOF" is preceded by a call to this function, which role is to restore the previous buffer if we reached the EOF /of an include file/. Its return code is used to avoid the error message in that case.
Yeah, that's terribly hackish, but it works. A better solution should be dealed with in flexml directly: a command line flag could instruct it to do the correct thing when the include directive is encountered on a line. One day maybe, if the maya allow it.
| void surf_parse_assert | ( | bool | cond, |
| const char * | fmt, | ||
| ... | |||
| ) |
| void surf_parse_error | ( | const char * | fmt, |
| ... | |||
| ) |
| void surf_parse_warn | ( | const char * | fmt, |
| ... | |||
| ) |
| double surf_parse_get_double | ( | const char * | string | ) |
| int surf_parse_get_int | ( | const char * | string | ) |
|
static |
|
static |
| double surf_parse_get_time | ( | const char * | string, |
| const char * | entity_kind, | ||
| const char * | name | ||
| ) |
| double surf_parse_get_size | ( | const char * | string, |
| const char * | entity_kind, | ||
| const char * | name | ||
| ) |
| double surf_parse_get_bandwidth | ( | const char * | string, |
| const char * | entity_kind, | ||
| const char * | name | ||
| ) |
| double surf_parse_get_speed | ( | const char * | string, |
| const char * | entity_kind, | ||
| const char * | name | ||
| ) |
| void surf_parse_open | ( | const char * | file | ) |
| void surf_parse_close | ( | ) |
|
static |
| char* surf_parsed_filename = nullptr |
| std::vector<simgrid::surf::Link *> parsed_link_list |
| xbt_dict_t current_property_set = nullptr |
| xbt_dict_t current_model_property_set = nullptr |
| int AS_TAG = 0 |
| xbt_dict_t random_data_list = nullptr |
| YY_BUFFER_STATE surf_input_buffer |
| FILE* surf_file_to_parse = nullptr |
|
static |
|
static |
|
static |
|
static |
|
static |
| int_f_void_t surf_parse = _surf_parse |