Skip to content

Commit

Permalink
--update method name for SensorAttributesManager
Browse files Browse the repository at this point in the history
  • Loading branch information
jturner65 committed Dec 11, 2024
1 parent f9a5fab commit ff521f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/esp/metadata/managers/SensorAttributesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ AbstractSensorAttributes::ptr SensorAttributesManager::buildObjectFromJSONDoc(
return sensorAttributes;
} // SensorAttributesManager::buildObjectFromJSONDoc

void SensorAttributesManager::setValsFromJSONDoc(
void SensorAttributesManager::setValsFromJSONDocInternal(
AbstractSensorAttributes::ptr attribs,
const io::JsonGenericValue& jsonConfig) {
// TODO support loading values from JSON docs for each type of
Expand Down
19 changes: 10 additions & 9 deletions src/esp/metadata/managers/SensorAttributesManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,6 @@ class SensorAttributesManager
const std::string& filename,
const io::JsonGenericValue& jsonConfig) override;

/**
* @brief Method to take an existing attributes and set its values from passed
* json config file.
* @param attribs (out) an existing attributes to be modified.
* @param jsonConfig json document to parse
*/
void setValsFromJSONDoc(attributes::AbstractSensorAttributes::ptr attribs,
const io::JsonGenericValue& jsonConfig) override;

/**
* @brief This function will be called to finalize attributes' paths before
* registration, moving fully qualified paths to the appropriate hidden
Expand All @@ -119,6 +110,16 @@ class SensorAttributesManager
attributes) const override {}

protected:
/**
* @brief Internally accessed from AbstractAttributesManager. Method to take
* an existing attributes and set its values from passed json config file.
* @param attribs (out) an existing attributes to be modified.
* @param jsonConfig json document to parse
*/
void setValsFromJSONDocInternal(
attributes::AbstractSensorAttributes::ptr attribs,
const io::JsonGenericValue& jsonConfig) override;

/**
* @brief Internal only. Create an attributes from a SensorSpec.
*
Expand Down

0 comments on commit ff521f7

Please sign in to comment.