00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef _SCHEME_H_
00018 #define _SCHEME_H_
00019
00020 #include <string>
00021
00022 namespace dtn {
00023
00024 class EndpointID;
00025 class EndpointIDPattern;
00026
00032 class Scheme {
00033 public:
00037 virtual ~Scheme();
00038
00046 virtual bool validate(const std::string& ssp,
00047 bool is_pattern = false) = 0;
00048
00053 virtual bool match(const EndpointIDPattern& pattern,
00054 const EndpointID& eid) = 0;
00055
00063 virtual bool append_service_tag(std::string* ssp, const char* tag)
00064 {
00065 (void)ssp;
00066 (void)tag;
00067 return false;
00068 }
00069 };
00070
00071 }
00072
00073 #endif