+ sprintf(description,
+ "The model to use for the storage. Possible values: ");
+ p = description;
+ while (*(++p) != '\0');
+ for (i = 0; surf_storage_model_description[i].name; i++)
+ p += sprintf(p, "%s%s", (i == 0 ? "" : ", "),
+ surf_storage_model_description[i].name);
+ sprintf(p,
+ ".\n (use 'help' as a value to see the long description of each model)");
+ default_value = xbt_strdup("default");
+ xbt_cfg_register(&_surf_cfg_set, "storage/model", description, xbt_cfgelm_string,
+ &default_value, 1, 1, &_surf_cfg_cb__storage_mode,
+ NULL);
+
+ /* ********************************************************************* */
+ /* TUTORIAL: New model */
+ sprintf(description,
+ "The model to use for the New model. Possible values: ");
+ p = description;
+ while (*(++p) != '\0');
+ for (i = 0; surf_new_model_description[i].name; i++)
+ p += sprintf(p, "%s%s", (i == 0 ? "" : ", "),
+ surf_new_model_description[i].name);
+ sprintf(p,
+ ".\n (use 'help' as a value to see the long description of each model)");
+ default_value = xbt_strdup("default");
+ xbt_cfg_register(&_surf_cfg_set, "new_model/model", description, xbt_cfgelm_string,
+ &default_value, 1, 1, &_surf_cfg_cb__storage_mode,
+ NULL);
+ /* ********************************************************************* */
+