ConfigNameRelation defines the ConfigNameRelation::Relation enum and static methods to work with name relations for the ValidatorConfig.
More...
#include <config-name-relation.hpp>
|
| enum | Relation { EQUAL,
IS_PREFIX_OF,
IS_STRICT_PREFIX_OF
} |
| |
|
| static std::string | toString (Relation relation) |
| | Get a string representation of the Relation enum. More...
|
| |
| static bool | checkNameRelation (Relation relation, const Name &name1, const Name &name2) |
| | Check whether name1 and name2 satisfy the relation. More...
|
| |
| static Relation | getNameRelationFromString (const std::string &relationString) |
| | Convert relationString to a ConfigNameRelation::Relation enum. More...
|
| |
ConfigNameRelation defines the ConfigNameRelation::Relation enum and static methods to work with name relations for the ValidatorConfig.
| static bool ndn::ConfigNameRelation::checkNameRelation |
( |
Relation |
relation, |
|
|
const Name & |
name1, |
|
|
const Name & |
name2 |
|
) |
| |
|
static |
Check whether name1 and name2 satisfy the relation.
- Parameters
-
| relation | The value for the ConfigNameRelation::Relation enum. |
| name1 | The first name to check. |
| name2 | The second name to check. |
- Returns
- True if the names satisfy the relation.
| static Relation ndn::ConfigNameRelation::getNameRelationFromString |
( |
const std::string & |
relationString | ) |
|
|
static |
Convert relationString to a ConfigNameRelation::Relation enum.
- Exceptions
-
| static std::string ndn::ConfigNameRelation::toString |
( |
Relation |
relation | ) |
|
|
static |
Get a string representation of the Relation enum.
- Parameters
-
| relation | The value for the ConfigNameRelation::Relation enum. |
- Returns
- The string representation.
The documentation for this class was generated from the following file: