SimGrid
3.16
Versatile Simulation of Distributed Systems
|
#include "simgrid/s4u/Engine.hpp"
#include "simgrid/sg_config.h"
#include "src/kernel/routing/NetPoint.hpp"
#include "src/surf/network_interface.hpp"
#include "xbt/file.h"
#include "src/surf/xml/platf_private.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <string>
#include "simgrid_dtd.c"
Classes | |
struct | unit_scale |
Variables | |
char * | surf_parsed_filename = nullptr |
std::vector< simgrid::surf::LinkImpl * > | parsed_link_list |
xbt_dict_t | current_property_set = nullptr |
std::map< std::string, std::string > * | current_model_property_set = nullptr |
int | ZONE_TAG = 0 |
xbt_dict_t | random_data_list = nullptr |
YY_BUFFER_STATE | surf_input_buffer |
FILE * | surf_file_to_parse = nullptr |
static std::vector< YY_BUFFER_STATE > | surf_input_buffer_stack |
static std::vector< FILE * > | surf_file_to_parse_stack |
static std::vector< char * > | surf_parsed_filename_stack |
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_assert_netpoint | ( | char * | hostname, |
const char * | pre, | ||
const char * | post | ||
) |
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 | ||
) |
|
static |
void surf_parse_open | ( | const char * | file | ) |
void surf_parse_close | ( | ) |
|
static |
char* surf_parsed_filename = nullptr |
std::vector<simgrid::surf::LinkImpl*> parsed_link_list |
xbt_dict_t current_property_set = nullptr |
std::map<std::string, std::string>* current_model_property_set = nullptr |
int ZONE_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 |