summaryrefslogtreecommitdiffstats
path: root/src/data_types.hpp
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2018-02-26 09:14:31 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-02-27 18:36:05 +0000
commit1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96 (patch)
tree119da3b2d0af7e31a42dc29f8ec7dc79a85f9af3 /src/data_types.hpp
parent3c5318d843651dd18a6b8b0da67e3aaef810ca91 (diff)
downloadphosphor-dbus-monitor-1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96.tar.gz
phosphor-dbus-monitor-1abcb06bedadfbd40b4ec6f7e5f6a95021df3c96.zip
Add constants for tuple fields
Add constants for use with std::get. Tested: Run unit tests Change-Id: Ic09c13feeda69d61c98f63d227cae8f08d1bf50e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'src/data_types.hpp')
-rw-r--r--src/data_types.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/data_types.hpp b/src/data_types.hpp
index f1512db..607289a 100644
--- a/src/data_types.hpp
+++ b/src/data_types.hpp
@@ -16,11 +16,20 @@ namespace monitoring
constexpr auto MAPPER_BUSNAME = "xyz.openbmc_project.ObjectMapper";
constexpr auto MAPPER_PATH = "/xyz/openbmc_project/object_mapper";
constexpr auto MAPPER_INTERFACE = "xyz.openbmc_project.ObjectMapper";
+
+//PropertyIndex::key_type fields
constexpr auto pathIndex = 0;
+constexpr auto interfaceIndex = 1;
constexpr auto propertyIndex = 2;
+
+//PropertyIndex::mapped_type fields
+constexpr auto pathMetaIndex = 0;
+constexpr auto propertyMetaIndex = 1;
constexpr auto storageIndex = 2;
+
+//ConfigPropertyStorage fields
constexpr auto valueIndex = 0;
-constexpr auto metaIndex = 1;
+constexpr auto resultIndex = 1;
enum class Context
{
OpenPOWER on IntegriCloud