manager.hpp (66e0707365379e8716703e9175f82faa1f5b37ad) manager.hpp (54ea3ad8db163d57261344167571eadfd8db94e1)
1#pragma once
2
3#include "config.h"
4
5#include "dbus.hpp"
6#include "interfaces.hpp"
7
1#pragma once
2
3#include "config.h"
4
5#include "dbus.hpp"
6#include "interfaces.hpp"
7
8#include <experimental/any>
8#include <any>
9#include <experimental/filesystem>
10#include <map>
11#include <sdbusplus/bus.hpp>
12#ifdef USE_POLICY_INTERFACE
13#include "policy_table.hpp"
14#endif
15
16namespace ibm

--- 24 unchanged lines hidden (view full) ---

41 * Constructor
42 *
43 * @param[in] bus - the D-Bus bus object
44 */
45 explicit Manager(sdbusplus::bus::bus& bus);
46
47 private:
48 using EntryID = uint32_t;
9#include <experimental/filesystem>
10#include <map>
11#include <sdbusplus/bus.hpp>
12#ifdef USE_POLICY_INTERFACE
13#include "policy_table.hpp"
14#endif
15
16namespace ibm

--- 24 unchanged lines hidden (view full) ---

41 * Constructor
42 *
43 * @param[in] bus - the D-Bus bus object
44 */
45 explicit Manager(sdbusplus::bus::bus& bus);
46
47 private:
48 using EntryID = uint32_t;
49 using InterfaceMap = std::map<InterfaceType, std::experimental::any>;
49 using InterfaceMap = std::map<InterfaceType, std::any>;
50 using EntryMap = std::map<EntryID, InterfaceMap>;
51
50 using EntryMap = std::map<EntryID, InterfaceMap>;
51
52 using ObjectList = std::vector<std::experimental::any>;
52 using ObjectList = std::vector<std::any>;
53 using InterfaceMapMulti = std::map<InterfaceType, ObjectList>;
54 using EntryMapMulti = std::map<EntryID, InterfaceMapMulti>;
55
56 /**
57 * Deletes the entry and any child entries with
58 * the specified ID.
59 *
60 * @param[in] id - the entry ID

--- 165 unchanged lines hidden (view full) ---

226 /**
227 * Adds an interface object to the entries map
228 *
229 * @param[in] objectPath - the object path of the log
230 * @param[in] type - the interface type being added
231 * @param[in] object - the interface object
232 */
233 void addInterface(const std::string& objectPath, InterfaceType type,
53 using InterfaceMapMulti = std::map<InterfaceType, ObjectList>;
54 using EntryMapMulti = std::map<EntryID, InterfaceMapMulti>;
55
56 /**
57 * Deletes the entry and any child entries with
58 * the specified ID.
59 *
60 * @param[in] id - the entry ID

--- 165 unchanged lines hidden (view full) ---

226 /**
227 * Adds an interface object to the entries map
228 *
229 * @param[in] objectPath - the object path of the log
230 * @param[in] type - the interface type being added
231 * @param[in] object - the interface object
232 */
233 void addInterface(const std::string& objectPath, InterfaceType type,
234 std::experimental::any& object);
234 std::any& object);
235
236 /**
237 * Adds an interface to a child object, which is an object that
238 * relates to the main ...logging/entry/X object but has a different path.
239 * The object is stored in the childEntries map.
240 *
241 * There can be multiple instances of a child object per type per
242 * logging object.
243 *
244 * @param[in] objectPath - the object path of the log
245 * @param[in] type - the interface type being added.
246 * @param[in] object - the interface object
247 */
248 void addChildInterface(const std::string& objectPath, InterfaceType type,
235
236 /**
237 * Adds an interface to a child object, which is an object that
238 * relates to the main ...logging/entry/X object but has a different path.
239 * The object is stored in the childEntries map.
240 *
241 * There can be multiple instances of a child object per type per
242 * logging object.
243 *
244 * @param[in] objectPath - the object path of the log
245 * @param[in] type - the interface type being added.
246 * @param[in] object - the interface object
247 */
248 void addChildInterface(const std::string& objectPath, InterfaceType type,
249 std::experimental::any& object);
249 std::any& object);
250
251 /**
252 * The sdbusplus bus object
253 */
254 sdbusplus::bus::bus& bus;
255
256 /**
257 * The match object for interfacesAdded

--- 34 unchanged lines hidden ---
250
251 /**
252 * The sdbusplus bus object
253 */
254 sdbusplus::bus::bus& bus;
255
256 /**
257 * The match object for interfacesAdded

--- 34 unchanged lines hidden ---