diff OrthancFramework/Sources/RestApi/RestApiPath.cpp @ 4300:b30a8de92ad9

abi continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 05 Nov 2020 19:33:18 +0100
parents bf7b9edf6b81
children a01b1c9cbef4
line wrap: on
line diff
--- a/OrthancFramework/Sources/RestApi/RestApiPath.cpp	Thu Nov 05 18:24:50 2020 +0100
+++ b/OrthancFramework/Sources/RestApi/RestApiPath.cpp	Thu Nov 05 19:33:18 2020 +0100
@@ -131,6 +131,12 @@
   }
 
 
+  size_t RestApiPath::GetLevelCount() const
+  {
+    return uri_.size();
+  }
+
+
   bool RestApiPath::IsWildcardLevel(size_t level) const
   {
     assert(uri_.size() == components_.size());
@@ -143,6 +149,11 @@
     return uri_[level].length() == 0;
   }
 
+  bool RestApiPath::IsUniversalTrailing() const
+  {
+    return hasTrailing_;
+  }
+
   const std::string& RestApiPath::GetWildcardName(size_t level) const
   {
     assert(uri_.size() == components_.size());