mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Set up wpiformat
This commit is contained in:
committed by
Peter Johnson
parent
4514ff8071
commit
19f7a5f108
@@ -1,17 +1,16 @@
|
||||
/*----------------------------------------------------------------------------*/
|
||||
/* Copyright (c) FIRST 2015. All Rights Reserved. */
|
||||
/* Copyright (c) FIRST 2015-2017. All Rights Reserved. */
|
||||
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
||||
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef NT_LOGGERIMPL_H_
|
||||
#define NT_LOGGERIMPL_H_
|
||||
|
||||
#include "ntcore_cpp.h"
|
||||
#ifndef NTCORE_LOGGERIMPL_H_
|
||||
#define NTCORE_LOGGERIMPL_H_
|
||||
|
||||
#include "CallbackManager.h"
|
||||
#include "Handle.h"
|
||||
#include "ntcore_cpp.h"
|
||||
|
||||
namespace nt {
|
||||
|
||||
@@ -36,7 +35,7 @@ struct LoggerListenerData
|
||||
class LoggerThread
|
||||
: public CallbackThread<LoggerThread, LogMessage, LoggerListenerData> {
|
||||
public:
|
||||
LoggerThread(int inst) : m_inst(inst) {}
|
||||
explicit LoggerThread(int inst) : m_inst(inst) {}
|
||||
|
||||
bool Matches(const LoggerListenerData& listener, const LogMessage& data) {
|
||||
return data.level >= listener.min_level && data.level <= listener.max_level;
|
||||
@@ -81,4 +80,4 @@ class LoggerImpl : public CallbackManager<LoggerImpl, impl::LoggerThread> {
|
||||
|
||||
} // namespace nt
|
||||
|
||||
#endif // NT_CONNECTIONNOTIFIER_H_
|
||||
#endif // NTCORE_LOGGERIMPL_H_
|
||||
|
||||
Reference in New Issue
Block a user