Commit 39129fee authored by Arthur Redondy's avatar Arthur Redondy
Browse files

suite du parser evenement

parent c409794f
......@@ -217,8 +217,8 @@ void ParserEventDecoder::store_event(const Definition &definition,Line &line, Tr
string event_name = definition.get_event_name();
if(event_name == "PajeDefineContainerType") {
if(container_type_is_initialized&&alias_name_is_initialized) {
trace.define_container_type(container_type, alias_name);
if(alias_name_is_initialized&&container_type_is_initialized) {
trace.define_container_type(alias_name, container_type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
......@@ -228,7 +228,7 @@ void ParserEventDecoder::store_event(const Definition &definition,Line &line, Tr
else if(event_name == "PajeCreateContainer") {
if(time_is_initialized&&alias_name_is_initialized&&type_is_initialized&&container_is_initialized) {
trace.create_container(time, alias_name, type, container);
trace.create_container(time, alias_name, type, container, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
......@@ -238,7 +238,7 @@ void ParserEventDecoder::store_event(const Definition &definition,Line &line, Tr
else if(event_name == "PajeDestroyContainer") {
if(time_is_initialized&&alias_name_is_initialized&&type_is_initialized) {
trace.destroy_container(time, alias_name, type);
trace.destroy_container(time, alias_name, type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
......@@ -248,7 +248,7 @@ void ParserEventDecoder::store_event(const Definition &definition,Line &line, Tr
else if(event_name == "PajeDefineEventType") {
if(alias_name_is_initialized&&container_type_is_initialized) {
trace.define_event_type(alias_name, container_type);
trace.define_event_type(alias_name, container_type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
......@@ -258,7 +258,7 @@ void ParserEventDecoder::store_event(const Definition &definition,Line &line, Tr
else if(event_name == "PajeDefineStateType") {
if(alias_name_is_initialized&&container_type_is_initialized) {
trace.define_state_type(alias_name, container_type);
trace.define_state_type(alias_name, container_type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
......@@ -268,7 +268,37 @@ void ParserEventDecoder::store_event(const Definition &definition,Line &line, Tr
else if(event_name == "PajeDefineVariableType") {
if(alias_name_is_initialized&&container_type_is_initialized) {
trace.define_variable_type(alias_name, container_type);
trace.define_variable_type(alias_name, container_type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
return;
}
}
else if(event_name == "PajeDefineLinkType") {
if(alias_name_is_initialized&&container_type_is_initialized&&source_container_type_is_initialized&&dest_container_type_is_initialized) {
trace.define_variable_type(alias_name, container_type, source_container_type, dest_container_type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
return;
}
}
else if(event_name == "PajeDefineEntityValue") {
if(alias_name_is_initialized&&entity_type_is_initialized) {
trace.define_variable_type(alias_name, entity_type, extra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
return;
}
}
else if(event_name == "PajeSetState") {
if(time_is_initialized&&type_is_initialized&&value_is_initialized) {
trace.define_variable_type(time, type, valueextra_fields);
}
else {
cout << "warning : incompatible evenement" << endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment