Skip to content
API Documentation
BastionGuard™
bsc::netlink::ProcEventMonitor Class Reference

#include <ProcEventMonitor.hpp>

Classes

class  Impl

Public Types

using Handler = std::function<void(const ProcEvent&)>

Public Member Functions

 ProcEventMonitor ()
 ~ProcEventMonitor ()
bool start (Handler handler)
void stop ()
bool running () const noexcept

Static Public Member Functions

static bool available ()

Private Attributes

std::unique_ptr< Impl > impl_
std::atomic_bool running_ {false}

Detailed Description

Definition at line 36 of file ProcEventMonitor.hpp.

Member Typedef Documentation

◆ Handler

using bsc::netlink::ProcEventMonitor::Handler = std::function<void(const ProcEvent&)>

Definition at line 38 of file ProcEventMonitor.hpp.

Constructor & Destructor Documentation

◆ ProcEventMonitor()

bsc::netlink::ProcEventMonitor::ProcEventMonitor ( )

Definition at line 192 of file ProcEventMonitor.cpp.

192: impl_(std::make_unique<Impl>()) {}

References impl_, and ProcEventMonitor().

Referenced by ProcEventMonitor().

◆ ~ProcEventMonitor()

bsc::netlink::ProcEventMonitor::~ProcEventMonitor ( )
default

References start(), and stop().

Member Function Documentation

◆ available()

bool bsc::netlink::ProcEventMonitor::available ( )
static

Definition at line 196 of file ProcEventMonitor.cpp.

196{ return false; }

◆ running()

bool bsc::netlink::ProcEventMonitor::running ( ) const
inlinenoexcept

Definition at line 45 of file ProcEventMonitor.hpp.

45{ return running_; }

References running_.

◆ start()

bool bsc::netlink::ProcEventMonitor::start ( Handler handler)

Definition at line 194 of file ProcEventMonitor.cpp.

194{ return false; }

Referenced by bsc::service::DaemonService::run(), and ~ProcEventMonitor().

◆ stop()

void bsc::netlink::ProcEventMonitor::stop ( )

Definition at line 195 of file ProcEventMonitor.cpp.

195{}

Referenced by ~ProcEventMonitor().

Member Data Documentation

◆ impl_

std::unique_ptr<Impl> bsc::netlink::ProcEventMonitor::impl_
private

Definition at line 50 of file ProcEventMonitor.hpp.

Referenced by ProcEventMonitor().

◆ running_

std::atomic_bool bsc::netlink::ProcEventMonitor::running_ {false}
private

Definition at line 51 of file ProcEventMonitor.hpp.

Referenced by running().


The documentation for this class was generated from the following files: