blob: abebaff35392fe6cb27f9c0a7a521d1682b2a6a8 [file] [log] [blame]
Yingdi Yu5e974202014-01-29 16:59:06 -08001/* -*- 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
12INIT_LOGGER ("RegexPseudoMatcher");
13
14using namespace std;
15
16namespace ndn
17{
18RegexPseudoMatcher::RegexPseudoMatcher()
19 :RegexMatcher ("", EXPR_PSEUDO)
20{}
21
22void
23RegexPseudoMatcher::setMatchResult(const string & str)
24{ m_matchResult.push_back(Name::Component((const uint8_t *)str.c_str(), str.size())); }
25
26void
27RegexPseudoMatcher::resetMatchResult()
28{ m_matchResult.clear(); }
29
30}//ndn