Remove the static Base Message Registry file
This change removes the static Base Message Registry file and
replaces it with a compile-time structure.
A script is used to pull the Base Message Registry file from
the DMTF and parse it into the .hpp structure.
Tested:
Verified that after running the script, I can get the same
Redfish data back from the existing endpoints without using
the static files.
Change-Id: Ide3c61ecff62801c06619d5c3edc2229c945d8e7
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/redfish-core/include/registries.hpp b/redfish-core/include/registries.hpp
new file mode 100644
index 0000000..7ee5232
--- /dev/null
+++ b/redfish-core/include/registries.hpp
@@ -0,0 +1,30 @@
+/*
+// Copyright (c) 2019 Intel Corporation
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+*/
+#pragma once
+namespace redfish::message_registries
+{
+
+struct Message
+{
+ const char* description;
+ const char* message;
+ const char* severity;
+ const int numberOfArgs;
+ std::array<const char*, 5> paramTypes;
+ const char* resolution;
+};
+using MessageEntry = std::pair<const char*, const Message>;
+} // namespace redfish::message_registries