X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3e42c9c678d7e69776850a7e168d160f122d24e1..1ec34be9aff33d4bb36758eb7a057b30c9d5539c:/src/surf/xml/platf_private.hpp diff --git a/src/surf/xml/platf_private.hpp b/src/surf/xml/platf_private.hpp index 1989a471a9..b5ae88cec5 100644 --- a/src/surf/xml/platf_private.hpp +++ b/src/surf/xml/platf_private.hpp @@ -49,7 +49,7 @@ typedef struct { tmgr_trace_t speed_trace; tmgr_trace_t state_trace; const char* coord; - xbt_dict_t properties; + std::map* properties; } s_sg_platf_host_cbarg_t; typedef s_sg_platf_host_cbarg_t* sg_platf_host_cbarg_t; @@ -69,7 +69,7 @@ public: tmgr_trace_t latency_trace = nullptr; tmgr_trace_t state_trace = nullptr; e_surf_link_sharing_policy_t policy = SURF_LINK_FATPIPE; - xbt_dict_t properties = nullptr; + std::map* properties = nullptr; }; class PeerCreationArgs { @@ -110,7 +110,7 @@ typedef struct s_sg_platf_cluster_cbarg { double limiter_link; e_surf_cluster_topology_t topology; const char* topo_parameters; - xbt_dict_t properties; + std::map* properties; const char* router_id; e_surf_link_sharing_policy_t sharing_policy; e_surf_link_sharing_policy_t bb_sharing_policy; @@ -132,19 +132,19 @@ public: std::string id; std::string type_id; std::string content; - xbt_dict_t properties; + std::map* properties; std::string attach; }; -typedef struct s_sg_platf_storage_type_cbarg* sg_platf_storage_type_cbarg_t; -typedef struct s_sg_platf_storage_type_cbarg { - const char* id; - const char* model; - const char* content; - xbt_dict_t properties; +class StorageTypeCreationArgs { +public: + std::string id; + std::string model; + std::string content; + std::map* properties; std::map* model_properties; sg_size_t size; -} s_sg_platf_storage_type_cbarg_t; +}; class MountCreationArgs { public: @@ -177,7 +177,7 @@ typedef struct s_sg_platf_process_cbarg *sg_platf_process_cbarg_t; typedef struct s_sg_platf_process_cbarg { const char **argv; int argc; - xbt_dict_t properties; + std::map* properties; const char *host; const char *function; double start_time; @@ -192,6 +192,8 @@ typedef struct s_sg_platf_AS_cbarg { } s_sg_platf_AS_cbarg_t; #define SG_PLATF_AS_INITIALIZER {nullptr,0} +/* The default current property receiver. Setup in the corresponding opening callbacks. */ +extern std::map* current_property_set; /********** Routing **********/ void routing_cluster_add_backbone(simgrid::surf::LinkImpl* bb); @@ -218,7 +220,7 @@ XBT_PUBLIC(void) sg_platf_new_bypassRoute (sg_platf_route_cbarg_t bypassroute); XBT_PUBLIC(void) sg_platf_new_trace(sg_platf_trace_cbarg_t trace); XBT_PUBLIC(void) sg_platf_new_storage(StorageCreationArgs* storage); // Add a storage to the currently described AS -XBT_PUBLIC(void) sg_platf_new_storage_type(sg_platf_storage_type_cbarg_t storage_type); +XBT_PUBLIC(void) sg_platf_new_storage_type(StorageTypeCreationArgs* storage_type); XBT_PUBLIC(void) sg_platf_new_mount(MountCreationArgs* mount); XBT_PUBLIC(void) sg_platf_new_process(sg_platf_process_cbarg_t process);