needed interface changes [new options] logger for android wifi-ap-optimization new test-cases
31 lines
468 B
C++
31 lines
468 B
C++
#ifndef LOGGERCOMPOSITE_H
|
|
#define LOGGERCOMPOSITE_H
|
|
|
|
|
|
#include "Logger.h"
|
|
#include <vector>
|
|
|
|
class LoggerComposite : public Logger {
|
|
|
|
private:
|
|
|
|
/** all contained loggers */
|
|
std::vector<Logger*> loggers;
|
|
|
|
public:
|
|
|
|
/** add a new logger to this composite */
|
|
void addLogger(Logger* l) {
|
|
loggers.push_back(l);
|
|
}
|
|
|
|
virtual void add(const std::string& str, const bool nl) override {
|
|
for (Logger* l : loggers) {l->add(str, nl);}
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LOGGERCOMPOSITE_H
|