A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
turn paje_value to a class
[simgrid.git]
/
src
/
instr
/
instr_paje_values.cpp
diff --git
a/src/instr/instr_paje_values.cpp
b/src/instr/instr_paje_values.cpp
index
88ad1bb
..
587a076
100644
(file)
--- a/
src/instr/instr_paje_values.cpp
+++ b/
src/instr/instr_paje_values.cpp
@@
-10,7
+10,7
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_paje_values, instr, "Paje tracing event system (values)");
XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_paje_values, instr, "Paje tracing event system (values)");
-val_t PJ_value_new (const char *name, const char *color, type_t father)
+val_t
paje_value ::
PJ_value_new (const char *name, const char *color, type_t father)
{
if (name == nullptr || father == nullptr){
THROWF (tracing_error, 0, "can't create a value with a nullptr name (or a nullptr father)");
{
if (name == nullptr || father == nullptr){
THROWF (tracing_error, 0, "can't create a value with a nullptr name (or a nullptr father)");
@@
-31,19
+31,19
@@
val_t PJ_value_new (const char *name, const char *color, type_t father)
return ret;
}
return ret;
}
-val_t PJ_value_get_or_new (const char *name, const char *color, type_t father)
-{
+val_t
paje_value ::
PJ_value_get_or_new (const char *name, const char *color, type_t father)
+{
paje_value pj_value;
val_t ret = 0;
try {
val_t ret = 0;
try {
- ret = PJ_value_get(name, father);
+ ret =
pj_value.
PJ_value_get(name, father);
}
catch(xbt_ex& e) {
}
catch(xbt_ex& e) {
- ret = PJ_value_new(name, color, father);
+ ret =
pj_value.
PJ_value_new(name, color, father);
}
return ret;
}
}
return ret;
}
-val_t PJ_value_get (const char *name, type_t father)
+val_t
paje_value::
PJ_value_get (const char *name, type_t father)
{
if (name == nullptr || father == nullptr){
THROWF (tracing_error, 0, "can't get a value with a nullptr name (or a nullptr father)");
{
if (name == nullptr || father == nullptr){
THROWF (tracing_error, 0, "can't get a value with a nullptr name (or a nullptr father)");