All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Types | Static Public Member Functions | List of all members
ndn::ConfigNameRelation Class Reference

ConfigNameRelation defines the ConfigNameRelation::Relation enum and static methods to work with name relations for the ValidatorConfig. More...

#include <config-name-relation.hpp>

Public Types

enum  Relation { EQUAL, IS_PREFIX_OF, IS_STRICT_PREFIX_OF }
 

Static Public Member Functions

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...
 

Detailed Description

ConfigNameRelation defines the ConfigNameRelation::Relation enum and static methods to work with name relations for the ValidatorConfig.

Member Function Documentation

static bool ndn::ConfigNameRelation::checkNameRelation ( Relation  relation,
const Name name1,
const Name name2 
)
static

Check whether name1 and name2 satisfy the relation.

Parameters
relationThe value for the ConfigNameRelation::Relation enum.
name1The first name to check.
name2The 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
ValidatorConfigErrorif relationString cannot be converted.
static std::string ndn::ConfigNameRelation::toString ( Relation  relation)
static

Get a string representation of the Relation enum.

Parameters
relationThe value for the ConfigNameRelation::Relation enum.
Returns
The string representation.

The documentation for this class was generated from the following file: