51 if (depth == EFormatDepth::kBuffered) {
52 fDataFormatBuffered[task_id] = format;
53 }
else if (depth == EFormatDepth::kAll) {
54 fDataFormatBuffered[task_id] = format;
55 fDataFormatNonBuffered[task_id] = format;
57 fDataFormatNonBuffered[task_id] = format;
61 if (task_id > fRegisteredFormats) {
Cout::PrintInfo(
"Task id too big", EInfo::kCriticalError); }
63 case EFormatDepth::kBuffered: {
64 if (fDataFormatBuffered[task_id] != NULL) {
Cout::PrintInfo(
"Overwriting format", EInfo::kLowWarning); }
65 fDataFormatBuffered[task_id] = format;
67 case EFormatDepth::kNonBuffered: {
68 if (fDataFormatNonBuffered[task_id] != NULL) {
Cout::PrintInfo(
"Overwriting format", EInfo::kLowWarning); }
69 fDataFormatNonBuffered[task_id] = format;
71 case EFormatDepth::kAll: {
72 if (fDataFormatBuffered[task_id] != NULL) {
Cout::PrintInfo(
"Overwriting format", EInfo::kLowWarning); }
73 if (fDataFormatNonBuffered[task_id] != NULL) {
Cout::PrintInfo(
"Overwriting format", EInfo::kLowWarning); }
74 fDataFormatBuffered[task_id] = format;
75 fDataFormatNonBuffered[task_id] = format;
134 Event** temp1 = fDataFormatBuffered;
135 Event** temp2 = fDataFormatNonBuffered;
136 fDataFormatBuffered =
new Event*[fRegisteredFormats + 1];
137 fDataFormatNonBuffered =
new Event*[fRegisteredFormats + 1];
138 for (
int i = 0; i < fRegisteredFormats; i++) {
139 fDataFormatBuffered[i] = temp1[i];
140 fDataFormatNonBuffered[i] = temp2[i];
142 fDataFormatBuffered[fRegisteredFormats] = NULL;
143 fDataFormatNonBuffered[fRegisteredFormats] = NULL;
146 return fRegisteredFormats++;
150 if (task_id < fRegisteredFormats) {
151 if (format_depth == EFormatDepth::kBuffered) {
152 if (fDataFormatBuffered[task_id] !=
nullptr)
return fDataFormatBuffered[task_id];
153 }
else if (fDataFormatNonBuffered[task_id] !=
nullptr)
154 return fDataFormatNonBuffered[task_id];