diff options
author | Patrick Venture <venture@google.com> | 2018-10-20 20:41:57 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-10-29 09:07:05 -0700 |
commit | b9d33736436382db5c1a9788cae17894da36aec4 (patch) | |
tree | fed7b9c89ec1cd96525085e1b51834f0f2948b22 /fru_area.hpp | |
parent | 4eaaeb5563197b1a4398e3365c621f6e6bc4447d (diff) | |
download | ipmi-fru-parser-b9d33736436382db5c1a9788cae17894da36aec4.tar.gz ipmi-fru-parser-b9d33736436382db5c1a9788cae17894da36aec4.zip |
IPMIFruArea: drop iv prefix from members
Drop iv_ prefix from class members.
Renamed class members where necessary and updated some method
parameters to avoid name conflicts.
Change-Id: Id888dab9fcc020c4dff68d689a38f869c0de3525
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'fru_area.hpp')
-rw-r--r-- | fru_area.hpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/fru_area.hpp b/fru_area.hpp index 30401bf..2a6eed0 100644 --- a/fru_area.hpp +++ b/fru_area.hpp @@ -15,37 +15,37 @@ class IPMIFruArea { private: // Unique way of identifying a FRU - uint8_t iv_fruid = 0; + uint8_t fruid = 0; // Type of the fru matching offsets in common header - ipmi_fru_area_type iv_type = IPMI_FRU_AREA_INTERNAL_USE; + ipmi_fru_area_type type = IPMI_FRU_AREA_INTERNAL_USE; // Name of the fru area. ( BOARD/CHASSIS/PRODUCT ) - std::string iv_name; + std::string name; // Length of a specific fru area. - size_t iv_len = 0; + size_t len = 0; // Special bit for BMC readable eeprom only. - bool iv_bmc_fru = false; + bool bmc_fru = false; // If a FRU is physically present. - bool iv_present = false; + bool isPresent = false; // Whether a particular area is valid ? - bool iv_valid = false; + bool isValid = false; // Actual area data. - uint8_t* iv_data = nullptr; + uint8_t* data = nullptr; // fru inventory dbus name - std::string iv_bus_name; + std::string bus_name; // fru inventory dbus object path - std::string iv_obj_path; + std::string obj_path; // fru inventory dbus interface name - std::string iv_intf_name; + std::string intf_name; // Default constructor disabled. IPMIFruArea(); @@ -61,55 +61,55 @@ class IPMIFruArea // Sets the present bit inline void set_present(const bool present) { - iv_present = present; + isPresent = present; } // returns fru id; uint8_t get_fruid() const { - return iv_fruid; + return fruid; } // Returns the length. size_t get_len() const { - return iv_len; + return len; } // Returns the type of the current fru area ipmi_fru_area_type get_type() const { - return iv_type; + return type; } // Returns the name const char* get_name() const { - return iv_name.c_str(); + return name.c_str(); } // Returns SD bus name const char* get_bus_name() const { - return iv_bus_name.c_str(); + return bus_name.c_str(); } // Retrns SD bus object path const char* get_obj_path() const { - return iv_obj_path.c_str(); + return obj_path.c_str(); } // Returns SD bus interface name const char* get_intf_name() const { - return iv_intf_name.c_str(); + return intf_name.c_str(); } // Returns the data portion inline uint8_t* get_data() const { - return iv_data; + return data; } // Accepts a pointer to data and sets it in the object. |