Yingdi Yu | 5e97420 | 2014-01-29 16:59:06 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2013 Regents of the University of California. |
| 4 | * @author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 5 | * See COPYING for copyright and distribution information. |
| 6 | */ |
| 7 | |
| 8 | #include "regex-pseudo-matcher.hpp" |
| 9 | |
| 10 | #include "../logging.hpp" |
| 11 | |
| 12 | INIT_LOGGER ("RegexPseudoMatcher"); |
| 13 | |
| 14 | using namespace std; |
| 15 | |
| 16 | namespace ndn |
| 17 | { |
| 18 | RegexPseudoMatcher::RegexPseudoMatcher() |
| 19 | :RegexMatcher ("", EXPR_PSEUDO) |
| 20 | {} |
| 21 | |
| 22 | void |
| 23 | RegexPseudoMatcher::setMatchResult(const string & str) |
| 24 | { m_matchResult.push_back(Name::Component((const uint8_t *)str.c_str(), str.size())); } |
| 25 | |
| 26 | void |
| 27 | RegexPseudoMatcher::resetMatchResult() |
| 28 | { m_matchResult.clear(); } |
| 29 | |
| 30 | }//ndn |