All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
ndn-regex-pseudo-matcher.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
23 #ifndef NDN_NDN_REGEX_PSEUDO_MATCHER_HPP
24 #define NDN_NDN_REGEX_PSEUDO_MATCHER_HPP
25 
26 #include "ndn-regex-matcher-base.hpp"
27 
28 namespace ndn {
29 
30 class NdnRegexPseudoMatcher : public NdnRegexMatcherBase {
31 public:
33  : NdnRegexMatcherBase("", NDN_REGEX_EXPR_PSEUDO)
34  {
35  }
36 
37  virtual
39 
40  virtual void
41  compile();
42 
43  void
44  setMatchResult(const std::string& str)
45  {
46  matchResult_.push_back
47  (Name::Component((const uint8_t*)str.c_str(), str.size()));
48  }
49 
50  void
51  resetMatchResult()
52  {
53  matchResult_.clear();
54  }
55 };
56 
57 }
58 
59 #endif
A Name::Component holds a read-only name component value.
Definition: name.hpp:45
Definition: ndn-regex-pseudo-matcher.hpp:30