#include <StringScheme.h>
Definition at line 25 of file StringScheme.h.
Public Member Functions | |
virtual bool | validate (const URI &uri, bool is_pattern=false) |
Validate that the SSP in the given URI is legitimate for this scheme. | |
virtual bool | match (const EndpointIDPattern &pattern, const EndpointID &eid) |
Match the pattern to the endpoint id in a scheme-specific manner. | |
virtual singleton_info_t | is_singleton (const URI &uri) |
Check if the given URI is a singleton EID. | |
Private Member Functions | |
StringScheme () | |
Friends | |
class | oasys::Singleton< StringScheme > |
dtn::StringScheme::StringScheme | ( | ) | [inline, private] |
Definition at line 50 of file StringScheme.h.
Validate that the SSP in the given URI is legitimate for this scheme.
If * the 'is_pattern' paraemeter is true, then the ssp is being validated as an EndpointIDPattern.
Implements dtn::Scheme.
Definition at line 31 of file StringScheme.cc.
bool dtn::StringScheme::match | ( | const EndpointIDPattern & | pattern, | |
const EndpointID & | eid | |||
) | [virtual] |
Match the pattern to the endpoint id in a scheme-specific manner.
Implements dtn::Scheme.
Definition at line 43 of file StringScheme.cc.
References ASSERT, dtn::EndpointID::scheme(), and dtn::EndpointID::str().
Scheme::singleton_info_t dtn::StringScheme::is_singleton | ( | const URI & | uri | ) | [virtual] |
Check if the given URI is a singleton EID.
Implements dtn::Scheme.
Definition at line 53 of file StringScheme.cc.
References dtn::EndpointID::SINGLETON.
friend class oasys::Singleton< StringScheme > [friend] |
Definition at line 49 of file StringScheme.h.