File tree 1 file changed +39
-0
lines changed 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,18 @@ class flxLogger : public flxActionType<flxLogger>
230
230
va_add (a1, args...);
231
231
}
232
232
233
+ // small set of removes - for operations
234
+
235
+ template <typename ... Args> void remove (flxOperation &a1, Args &&...args)
236
+ {
237
+ va_remove (a1, args...);
238
+ }
239
+
240
+ template <typename ... Args> void remove (flxOperation *a1, Args &&...args)
241
+ {
242
+ va_remove (a1, args...);
243
+ }
244
+
233
245
// ------------------------------------------------------------
234
246
// for metrics
235
247
void setEnableLogRate (bool enable);
@@ -385,6 +397,21 @@ class flxLogger : public flxActionType<flxLogger>
385
397
va_add (args...);
386
398
}
387
399
400
+ // removes
401
+ void va_remove ()
402
+ {
403
+ }
404
+
405
+ template <typename T, typename ... Args> void va_remove (T *a1, Args &&...args)
406
+ {
407
+ _remove (a1);
408
+ va_remove (args...);
409
+ }
410
+ template <typename T, typename ... Args> void va_remove (T &a1, Args &&...args)
411
+ {
412
+ _remove (a1);
413
+ va_remove (args...);
414
+ }
388
415
// ----------------------------------------------------------------------------
389
416
// Internal Adds for final object placement add output writers to the logger.
390
417
void _add (flxOutputFormat &writer)
@@ -450,4 +477,16 @@ class flxLogger : public flxActionType<flxLogger>
450
477
_add (prop);
451
478
}
452
479
}
480
+
481
+ // removes
482
+
483
+ void _remove (flxOperation &op)
484
+ {
485
+ _remove (&op);
486
+ }
487
+ void _remove (flxOperation *op)
488
+ {
489
+ if (op != nullptr )
490
+ _opsToLog.remove (op);
491
+ }
453
492
};
You can’t perform that action at this time.
0 commit comments