policy_table.hpp (c57aa4b9310eed09a0ad3abd1232386c15d71064) | policy_table.hpp (54ea3ad8db163d57261344167571eadfd8db94e1) |
---|---|
1#pragma once 2 3#include "config.h" 4 | 1#pragma once 2 3#include "config.h" 4 |
5#include <experimental/optional> | |
6#include <map> | 5#include <map> |
6#include <optional> |
|
7#include <vector> 8 9namespace ibm 10{ 11namespace logging 12{ 13namespace policy 14{ --- 6 unchanged lines hidden (view full) --- 21 */ 22struct Details 23{ 24 std::string modifier; 25 std::string msg; 26 std::string ceid; 27}; 28 | 7#include <vector> 8 9namespace ibm 10{ 11namespace logging 12{ 13namespace policy 14{ --- 6 unchanged lines hidden (view full) --- 21 */ 22struct Details 23{ 24 std::string modifier; 25 std::string msg; 26 std::string ceid; 27}; 28 |
29namespace optional_ns = std::experimental; 30 | |
31using DetailsList = std::vector<Details>; 32using DetailsReference = std::reference_wrapper<const Details>; | 29using DetailsList = std::vector<Details>; 30using DetailsReference = std::reference_wrapper<const Details>; |
33using FindResult = optional_ns::optional<DetailsReference>; | 31using FindResult = std::optional<DetailsReference>; |
34 35using PolicyMap = std::map<std::string, DetailsList>; 36 37/** 38 * @class Table 39 * 40 * This class wraps the error policy table data, and provides the 41 * ability to find a policy table entry based on the error and a --- 96 unchanged lines hidden --- | 32 33using PolicyMap = std::map<std::string, DetailsList>; 34 35/** 36 * @class Table 37 * 38 * This class wraps the error policy table data, and provides the 39 * ability to find a policy table entry based on the error and a --- 96 unchanged lines hidden --- |