HashFilter
class HashFilter
@brief This class provides methods to filter a configuration Hash by properties of the Schema describing it
Functions
| Name | Description |
|---|---|
| byTag | Filter a configuration Hash by the tags defined in the Schema describing it and return the filtered result schema : describing the configuration Hash config : input Hash to be filtered result : filtered output Hash tags : stringified list of tags. Elements in the schema having any of the tags in this list are included in the output Hash sep : separator used in the list of tags |
| byAccessMode | Filter a configuration Hash by the access mode defined in the Schema describing it and return the filtered result schema : describing the configuration Hash config : input Hash to be filtered result : filtered output Hash value : AccessMode to filter against |
Function Details
byAccessMode
static void byAccessMode(const Schema& schema, const Hash& config, Hash& result, const AccessType& value)
Filter a configuration Hash by the access mode defined in the Schema describing it and return the filtered result
schema
: describing the configuration Hash
config
: input Hash to be filtered
result
: filtered output Hash
value
: AccessMode to filter against
byTag
static void byTag(const Schema& schema, const Hash& config, Hash& result, const std::string& tags, const std::string& sep = ",")
Filter a configuration Hash by the tags defined in the Schema describing it and return the filtered result
schema
: describing the configuration Hash
config
: input Hash to be filtered
result
: filtered output Hash
tags
: stringified list of tags. Elements in the schema having any of the tags in this list are
included in the output Hash
sep
: separator used in the list of tags