00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #include "StringScheme.h"
00018 #include "EndpointID.h"
00019
00020 namespace dtn {
00021
00022 template <>
00023 StringScheme* oasys::Singleton<StringScheme>::instance_ = 0;
00024
00032 bool
00033 StringScheme::validate(const std::string& ssp, bool is_pattern)
00034 {
00035 (void)is_pattern;
00036
00037 if (ssp == "")
00038 return false;
00039
00040 return true;
00041 }
00042
00047 bool
00048 StringScheme::match(const EndpointIDPattern& pattern,
00049 const EndpointID& eid)
00050 {
00051
00052 ASSERT(pattern.scheme() == this);
00053 return (pattern.str() == eid.str());
00054 }
00055
00056 }