summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/user_header.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/openpower-pels/user_header.hpp')
-rw-r--r--extensions/openpower-pels/user_header.hpp33
1 files changed, 14 insertions, 19 deletions
diff --git a/extensions/openpower-pels/user_header.hpp b/extensions/openpower-pels/user_header.hpp
index d2c6ffc..ae7a922 100644
--- a/extensions/openpower-pels/user_header.hpp
+++ b/extensions/openpower-pels/user_header.hpp
@@ -43,6 +43,13 @@ class UserHeader : public Section
explicit UserHeader(Stream& pel);
/**
+ * @brief Flatten the section into the stream
+ *
+ * @param[in] stream - The stream to write to
+ */
+ void flatten(Stream& stream) override;
+
+ /**
* @brief Returns the subsystem field.
*
* @return uint8_t& - the subsystem
@@ -126,11 +133,15 @@ class UserHeader : public Section
sizeof(_actionFlags) + sizeof(_reserved4Byte2);
}
- friend Stream& operator>>(Stream& s, UserHeader& ph);
- friend Stream& operator<<(Stream& s, UserHeader& ph);
-
private:
/**
+ * @brief Fills in the object from the stream data
+ *
+ * @param[in] stream - The stream to read from
+ */
+ void unflatten(Stream& stream);
+
+ /**
* @brief Validates the section contents
*
* Updates _valid (in Section) with the results.
@@ -183,21 +194,5 @@ class UserHeader : public Section
uint32_t _reserved4Byte2;
};
-/**
- * @brief Stream extraction operator for the UserHeader
- *
- * @param[in] s - the stream
- * @param[out] uh - the UserHeader object
- */
-Stream& operator>>(Stream& s, UserHeader& uh);
-
-/**
- * @brief Stream insertion operator for the UserHeader
- *
- * @param[out] s - the stream
- * @param[in] uh - the UserHeader object
- */
-Stream& operator<<(Stream& s, UserHeader& uh);
-
} // namespace pels
} // namespace openpower
OpenPOWER on IntegriCloud