Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
LocalSpecExceptionHandlerCollection.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Specs/API.h
>
4
5
#include <deque>
6
7
namespace
SpecsCpp
{
8
9
class
LocalSpecExceptionHandlerCollection
:
public
ILocalSpecExceptionHandlerCollection
{
10
std::deque<ILocalSpecExceptionHandler*> _handlers;
11
12
public
:
13
void
register_exception_handler
(
ILocalSpecExceptionHandler
* handler)
override
{
14
_handlers.push_front(handler);
15
}
16
17
void
foreach_exception_handler
(
ForEachExceptionHandlerFn
* fn)
const override
{
18
for
(
const
auto
& handler : _handlers) fn->invoke(handler);
19
}
20
};
21
}
API.h
SpecsCpp::LocalSpecExceptionHandlerCollection
Definition
LocalSpecExceptionHandlerCollection.h:9
SpecsCpp::LocalSpecExceptionHandlerCollection::foreach_exception_handler
void foreach_exception_handler(ForEachExceptionHandlerFn *fn) const override
Definition
LocalSpecExceptionHandlerCollection.h:17
SpecsCpp::LocalSpecExceptionHandlerCollection::register_exception_handler
void register_exception_handler(ILocalSpecExceptionHandler *handler) override
Definition
LocalSpecExceptionHandlerCollection.h:13
SpecsCpp
Definition
API.h:3
SpecsCpp::ILocalSpecExceptionHandlerCollection
Definition
API.h:393
SpecsCpp::ILocalSpecExceptionHandlerCollection::ForEachExceptionHandlerFn
IFunctionPointer< void(ILocalSpecExceptionHandler *)> ForEachExceptionHandlerFn
Definition
API.h:394
SpecsCpp::ILocalSpecExceptionHandler
Definition
API.h:371
Specs.Implementations
include
Specs
LocalSpecExceptionHandlerCollection.h
<3 Mrowr Purr