SunnySrivastava1984 | c743d82 | 2020-04-27 05:49:22 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
SunnySrivastava1984 | bca5aaa | 2020-04-21 05:31:04 -0500 | [diff] [blame^] | 3 | #include "types.hpp" |
| 4 | |
SunnySrivastava1984 | c743d82 | 2020-04-27 05:49:22 -0500 | [diff] [blame] | 5 | namespace openpower |
| 6 | { |
| 7 | namespace vpd |
| 8 | { |
| 9 | namespace manager |
| 10 | { |
| 11 | namespace reader |
| 12 | { |
| 13 | |
| 14 | /** @class ReaderImpl |
| 15 | * @brief Implements functionalities related to reading of VPD related data |
| 16 | * from the system. |
SunnySrivastava1984 | c743d82 | 2020-04-27 05:49:22 -0500 | [diff] [blame] | 17 | */ |
| 18 | class ReaderImpl |
| 19 | { |
| 20 | public: |
| 21 | ReaderImpl() = default; |
| 22 | ReaderImpl(const ReaderImpl&) = delete; |
| 23 | ReaderImpl& operator=(const ReaderImpl&) = delete; |
| 24 | ReaderImpl(ReaderImpl&&) = delete; |
| 25 | ReaderImpl& operator=(ReaderImpl&&) = delete; |
| 26 | ~ReaderImpl() = default; |
SunnySrivastava1984 | bca5aaa | 2020-04-21 05:31:04 -0500 | [diff] [blame^] | 27 | |
| 28 | /** @brief An API to expand a given unexpanded location code. |
| 29 | * @param[in] locationCode - unexpanded location code. |
| 30 | * @param[in] nodeNumber - node on which we are looking for location code. |
| 31 | * @param[in] frusLocationCode - mapping of inventory path and location |
| 32 | * code. |
| 33 | * @return Expanded location code. |
| 34 | */ |
| 35 | std::string getExpandedLocationCode( |
| 36 | const std::string& locationCode, const uint16_t& nodeNumber, |
| 37 | const inventory::LocationCodeMap& frusLocationCode) const; |
| 38 | |
SunnySrivastava1984 | c743d82 | 2020-04-27 05:49:22 -0500 | [diff] [blame] | 39 | }; // class ReaderImpl |
| 40 | |
| 41 | } // namespace reader |
| 42 | } // namespace manager |
| 43 | } // namespace vpd |
| 44 | } // namespace openpower |