Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions cpp/src/Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4821,6 +4821,25 @@ if (Driver* driver = GetDriver(_homeId))
return "";
}

//-----------------------------------------------------------------------------
// <Manager::GetMetaDataId>
// Retrieve metadata from its name
//-----------------------------------------------------------------------------
Node::MetaDataFields Manager::GetMetaDataId(const string& metaDataFiledToParse)
{
return Node::GetMetaDataId(metaDataFiledToParse);
}


//-----------------------------------------------------------------------------
// <Manager::GetMetaDataString>
// Get the MetaData string representation
//-----------------------------------------------------------------------------
string const Manager::GetMetaDataString(Node::MetaDataFields metaData)
{
return Node::GetMetaDataString(metaData);
}

//-----------------------------------------------------------------------------
// <Manager::GetChangeLog>
// Retrieve ChangeLog of a Configuration File about a Node.
Expand Down
12 changes: 12 additions & 0 deletions cpp/src/Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -2645,6 +2645,18 @@ namespace OpenZWave
* \return a string containing the requested metadata
*/
string const GetMetaData(uint32 const _homeId, uint8 const _nodeId, Node::MetaDataFields _metadata);
/**
* \brief Retrieve metadata from its name
* \param metaDataFiledToParse the string to parse (careful, case sensitive)
* \return the found metaDataField if parsing is successful, or MetaData_Invalid
*/
Node::MetaDataFields GetMetaDataId(const string & metaDataFiledToParse);
/**
* \brief Get the MetaData string representation
* \param metaData the metaData enum
* \return the metaData name (or empty string if not found)
*/
string const GetMetaDataString(Node::MetaDataFields metaData);
/**
* \brief Retrieve ChangeLogs about a configuration revision
* \param _homeId The Home ID of the driver for the node
Expand Down
4 changes: 2 additions & 2 deletions cpp/src/Node.h
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ namespace OpenZWave
string description;
};
string const GetMetaData(MetaDataFields);
MetaDataFields GetMetaDataId(string);
string const GetMetaDataString(MetaDataFields);
static MetaDataFields GetMetaDataId(string);
static string const GetMetaDataString(MetaDataFields);
ChangeLogEntry const GetChangeLog(uint32_t);

private:
Expand Down