dtn::StringScheme Class Reference

#include <StringScheme.h>

Inheritance diagram for dtn::StringScheme:

dtn::Scheme

List of all members.


Detailed Description

Definition at line 25 of file StringScheme.h.


Public Member Functions

virtual bool validate (const std::string &ssp, bool is_pattern=false)
 Validate that the given ssp 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.

Private Member Functions

 StringScheme ()

Friends

class oasys::Singleton< StringScheme >

Constructor & Destructor Documentation

dtn::StringScheme::StringScheme (  )  [inline, private]

Definition at line 45 of file StringScheme.h.


Member Function Documentation

bool dtn::StringScheme::validate ( const std::string &  ssp,
bool  is_pattern = false 
) [virtual]

Validate that the given ssp is legitimate for this scheme.

If the 'is_pattern' paraemeter is true, then the ssp is being validated as an EndpointIDPattern.

Returns:
true if valid

Implements dtn::Scheme.

Definition at line 33 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 48 of file StringScheme.cc.

References ASSERT, dtn::EndpointID::scheme(), and dtn::EndpointID::str().


Friends And Related Function Documentation

friend class oasys::Singleton< StringScheme > [friend]

Definition at line 44 of file StringScheme.h.


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:36:22 2007 for DTN Reference Implementation by  doxygen 1.5.3