Mercurial > hg > orthanc
comparison Core/RestApi/RestApiPath.h @ 966:886652370ff2
accelerating REST API matching
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Jun 2014 15:33:22 +0200 |
parents | 2d0a347e8cfc |
children | c550e99c452b |
comparison
equal
deleted
inserted
replaced
965:d724ac031080 | 966:886652370ff2 |
---|---|
57 bool Match(Components& components, | 57 bool Match(Components& components, |
58 UriComponents& trailing, | 58 UriComponents& trailing, |
59 const UriComponents& uri) const; | 59 const UriComponents& uri) const; |
60 | 60 |
61 bool Match(const UriComponents& uri) const; | 61 bool Match(const UriComponents& uri) const; |
62 | |
63 size_t GetLevelCount() const | |
64 { | |
65 return uri_.size(); | |
66 } | |
67 | |
68 bool IsWildcardLevel(size_t level) const; | |
69 | |
70 bool IsUniversalTrailing() const | |
71 { | |
72 return hasTrailing_; | |
73 } | |
74 | |
75 const std::string& GetWildcardName(size_t level) const; | |
76 | |
77 const std::string& GetLevelName(size_t level) const; | |
78 | |
62 }; | 79 }; |
63 } | 80 } |