SimGrid  3.20
Versatile Simulation of Distributed Systems
surfxml_sax_cb.cpp File Reference
#include "simgrid/kernel/routing/NetPoint.hpp"
#include "simgrid/s4u/Engine.hpp"
#include "simgrid/sg_config.hpp"
#include "src/surf/network_interface.hpp"
#include "src/surf/surf_interface.hpp"
#include "src/surf/xml/platf_private.hpp"
#include "surf/surf.hpp"
#include "xbt/file.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <string>
#include <tuple>
#include <unordered_map>
#include <vector>
#include "simgrid_dtd.c"

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (surf_parse, surf, "Logging specific to the SURF parsing module")
 
void surf_parse_assert (bool cond, std::string msg)
 
void surf_parse_error (std::string msg)
 
void surf_parse_assert_netpoint (std::string hostname, std::string pre, std::string post)
 
double surf_parse_get_double (std::string s)
 
int surf_parse_get_int (std::string s)
 
double surf_parse_get_time (const char *string, const char *entity_kind, std::string name)
 
double surf_parse_get_size (const char *string, const char *entity_kind, std::string name)
 
double surf_parse_get_bandwidth (const char *string, const char *entity_kind, std::string name)
 
double surf_parse_get_speed (const char *string, const char *entity_kind, std::string name)
 
static std::vector< double > surf_parse_get_all_speeds (char *speeds, const char *entity_kind, std::string id)
 
void STag_surfxml_storage ()
 
void ETag_surfxml_storage ()
 
void STag_surfxml_storage___type ()
 
void ETag_surfxml_storage___type ()
 
void STag_surfxml_mount ()
 
void ETag_surfxml_mount ()
 
void STag_surfxml_include ()
 
void ETag_surfxml_include ()
 
void STag_surfxml_platform ()
 
void ETag_surfxml_platform ()
 
void STag_surfxml_host ()
 
void STag_surfxml_prop ()
 
void ETag_surfxml_host ()
 
void STag_surfxml_host___link ()
 
void STag_surfxml_router ()
 
void ETag_surfxml_cluster ()
 
void STag_surfxml_cluster ()
 
void STag_surfxml_cabinet ()
 
void STag_surfxml_peer ()
 
void STag_surfxml_link ()
 
void ETag_surfxml_link ()
 
void STag_surfxml_link___ctn ()
 
void ETag_surfxml_backbone ()
 
void STag_surfxml_route ()
 
void STag_surfxml_ASroute ()
 
void STag_surfxml_zoneRoute ()
 
void STag_surfxml_bypassRoute ()
 
void STag_surfxml_bypassASroute ()
 
void STag_surfxml_bypassZoneRoute ()
 
void ETag_surfxml_route ()
 
void ETag_surfxml_ASroute ()
 
void ETag_surfxml_zoneRoute ()
 
void ETag_surfxml_bypassRoute ()
 
void ETag_surfxml_bypassASroute ()
 
void ETag_surfxml_bypassZoneRoute ()
 
void ETag_surfxml_trace ()
 
void STag_surfxml_trace___connect ()
 
void STag_surfxml_AS ()
 
void ETag_surfxml_AS ()
 
void STag_surfxml_zone ()
 
void ETag_surfxml_zone ()
 
void STag_surfxml_config ()
 
void ETag_surfxml_config ()
 
void STag_surfxml_process ()
 
void STag_surfxml_actor ()
 
void ETag_surfxml_process ()
 
void ETag_surfxml_actor ()
 
void STag_surfxml_argument ()
 
void STag_surfxml_model___prop ()
 
void ETag_surfxml_prop ()
 
void STag_surfxml_random ()
 
void ETag_surfxml_random ()
 
void ETag_surfxml_trace___connect ()
 
void STag_surfxml_trace ()
 
void ETag_surfxml_router ()
 
void ETag_surfxml_host___link ()
 
void ETag_surfxml_cabinet ()
 
void ETag_surfxml_peer ()
 
void STag_surfxml_backbone ()
 
void ETag_surfxml_link___ctn ()
 
void ETag_surfxml_argument ()
 
void ETag_surfxml_model___prop ()
 
void surf_parse_open (const char *file)
 
void surf_parse_close ()
 
int surf_parse ()
 

Variables

static const char * surf_parsed_filename
 
std::vector< simgrid::kernel::resource::LinkImpl * > parsed_link_list
 
std::unordered_map< std::string, std::string > * current_property_set = nullptr
 
std::unordered_map< std::string, std::string > * current_model_property_set = nullptr
 
int ZONE_TAG = 0
 
FILE * surf_file_to_parse = nullptr
 
static std::vector< std::stringarguments
 
YY_BUFFER_STATE surf_input_buffer
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( surf_parse  ,
surf  ,
"Logging specific to the SURF parsing module"   
)

◆ surf_parse_assert()

void surf_parse_assert ( bool  cond,
std::string  msg 
)

◆ surf_parse_error()

void surf_parse_error ( std::string  msg)

◆ surf_parse_assert_netpoint()

void surf_parse_assert_netpoint ( std::string  hostname,
std::string  pre,
std::string  post 
)

◆ surf_parse_get_double()

double surf_parse_get_double ( std::string  s)

◆ surf_parse_get_int()

int surf_parse_get_int ( std::string  s)

◆ surf_parse_get_time()

double surf_parse_get_time ( const char *  string,
const char *  entity_kind,
std::string  name 
)

◆ surf_parse_get_size()

double surf_parse_get_size ( const char *  string,
const char *  entity_kind,
std::string  name 
)

◆ surf_parse_get_bandwidth()

double surf_parse_get_bandwidth ( const char *  string,
const char *  entity_kind,
std::string  name 
)

◆ surf_parse_get_speed()

double surf_parse_get_speed ( const char *  string,
const char *  entity_kind,
std::string  name 
)

◆ surf_parse_get_all_speeds()

static std::vector<double> surf_parse_get_all_speeds ( char *  speeds,
const char *  entity_kind,
std::string  id 
)
static

◆ STag_surfxml_storage()

void STag_surfxml_storage ( void  )

◆ ETag_surfxml_storage()

void ETag_surfxml_storage ( void  )

◆ STag_surfxml_storage___type()

void STag_surfxml_storage___type ( void  )

◆ ETag_surfxml_storage___type()

void ETag_surfxml_storage___type ( void  )

◆ STag_surfxml_mount()

void STag_surfxml_mount ( void  )

◆ ETag_surfxml_mount()

void ETag_surfxml_mount ( void  )

◆ STag_surfxml_include()

void STag_surfxml_include ( void  )

◆ ETag_surfxml_include()

void ETag_surfxml_include ( void  )

◆ STag_surfxml_platform()

void STag_surfxml_platform ( void  )

◆ ETag_surfxml_platform()

void ETag_surfxml_platform ( void  )

◆ STag_surfxml_host()

void STag_surfxml_host ( void  )

◆ STag_surfxml_prop()

void STag_surfxml_prop ( void  )

◆ ETag_surfxml_host()

void ETag_surfxml_host ( void  )

◆ STag_surfxml_host___link()

void STag_surfxml_host___link ( void  )

◆ STag_surfxml_router()

void STag_surfxml_router ( void  )

◆ ETag_surfxml_cluster()

void ETag_surfxml_cluster ( void  )

◆ STag_surfxml_cluster()

void STag_surfxml_cluster ( void  )

◆ STag_surfxml_cabinet()

void STag_surfxml_cabinet ( void  )

◆ STag_surfxml_peer()

void STag_surfxml_peer ( void  )

◆ STag_surfxml_link()

void STag_surfxml_link ( void  )

◆ ETag_surfxml_link()

void ETag_surfxml_link ( void  )

◆ STag_surfxml_link___ctn()

void STag_surfxml_link___ctn ( void  )

◆ ETag_surfxml_backbone()

void ETag_surfxml_backbone ( void  )

◆ STag_surfxml_route()

void STag_surfxml_route ( void  )

◆ STag_surfxml_ASroute()

void STag_surfxml_ASroute ( void  )

◆ STag_surfxml_zoneRoute()

void STag_surfxml_zoneRoute ( void  )

◆ STag_surfxml_bypassRoute()

void STag_surfxml_bypassRoute ( void  )

◆ STag_surfxml_bypassASroute()

void STag_surfxml_bypassASroute ( void  )

◆ STag_surfxml_bypassZoneRoute()

void STag_surfxml_bypassZoneRoute ( void  )

◆ ETag_surfxml_route()

void ETag_surfxml_route ( void  )

◆ ETag_surfxml_ASroute()

void ETag_surfxml_ASroute ( void  )

◆ ETag_surfxml_zoneRoute()

void ETag_surfxml_zoneRoute ( void  )

◆ ETag_surfxml_bypassRoute()

void ETag_surfxml_bypassRoute ( void  )

◆ ETag_surfxml_bypassASroute()

void ETag_surfxml_bypassASroute ( void  )

◆ ETag_surfxml_bypassZoneRoute()

void ETag_surfxml_bypassZoneRoute ( void  )

◆ ETag_surfxml_trace()

void ETag_surfxml_trace ( void  )

◆ STag_surfxml_trace___connect()

void STag_surfxml_trace___connect ( void  )

◆ STag_surfxml_AS()

void STag_surfxml_AS ( void  )

◆ ETag_surfxml_AS()

void ETag_surfxml_AS ( void  )

◆ STag_surfxml_zone()

void STag_surfxml_zone ( void  )

◆ ETag_surfxml_zone()

void ETag_surfxml_zone ( void  )

◆ STag_surfxml_config()

void STag_surfxml_config ( void  )

◆ ETag_surfxml_config()

void ETag_surfxml_config ( void  )

◆ STag_surfxml_process()

void STag_surfxml_process ( void  )

◆ STag_surfxml_actor()

void STag_surfxml_actor ( void  )

◆ ETag_surfxml_process()

void ETag_surfxml_process ( void  )

◆ ETag_surfxml_actor()

void ETag_surfxml_actor ( void  )

◆ STag_surfxml_argument()

void STag_surfxml_argument ( void  )

◆ STag_surfxml_model___prop()

void STag_surfxml_model___prop ( void  )

◆ ETag_surfxml_prop()

void ETag_surfxml_prop ( void  )

◆ STag_surfxml_random()

void STag_surfxml_random ( void  )

◆ ETag_surfxml_random()

void ETag_surfxml_random ( void  )

◆ ETag_surfxml_trace___connect()

void ETag_surfxml_trace___connect ( void  )

◆ STag_surfxml_trace()

void STag_surfxml_trace ( void  )

◆ ETag_surfxml_router()

void ETag_surfxml_router ( void  )

◆ ETag_surfxml_host___link()

void ETag_surfxml_host___link ( void  )

◆ ETag_surfxml_cabinet()

void ETag_surfxml_cabinet ( void  )

◆ ETag_surfxml_peer()

void ETag_surfxml_peer ( void  )

◆ STag_surfxml_backbone()

void STag_surfxml_backbone ( void  )

◆ ETag_surfxml_link___ctn()

void ETag_surfxml_link___ctn ( void  )

◆ ETag_surfxml_argument()

void ETag_surfxml_argument ( void  )

◆ ETag_surfxml_model___prop()

void ETag_surfxml_model___prop ( void  )

◆ surf_parse_open()

void surf_parse_open ( const char *  file)

◆ surf_parse_close()

void surf_parse_close ( )

◆ surf_parse()

int surf_parse ( )

Variable Documentation

◆ surf_parsed_filename

const char* surf_parsed_filename
static

◆ parsed_link_list

std::vector<simgrid::kernel::resource::LinkImpl*> parsed_link_list

◆ current_property_set

std::unordered_map<std::string, std::string>* current_property_set = nullptr

◆ current_model_property_set

std::unordered_map<std::string, std::string>* current_model_property_set = nullptr

◆ ZONE_TAG

int ZONE_TAG = 0

◆ surf_file_to_parse

FILE* surf_file_to_parse = nullptr

◆ arguments

std::vector<std::string> arguments
static

◆ surf_input_buffer

YY_BUFFER_STATE surf_input_buffer