blob: 90b5293d216c45c021cf184cac32ed677f9c591b [file] [log] [blame]
Yingdi Yu6ac97982014-01-30 14:49:21 -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 * @author: Jeff Thompson <jefft0@remap.ucla.edu>
6 * See COPYING for copyright and distribution information.
7 */
8
9#ifndef NDN_VALIDATOR_NULL_HPP
10#define NDN_VALIDATOR_NULL_HPP
11
12#include "validator.hpp"
13
14namespace ndn {
15
16class ValidatorNull : public Validator {
17protected:
18
19 virtual
20 ~ValidatorNull()
21 {}
22
23 virtual void
24 checkPolicy (shared_ptr<const Data> data,
25 int stepCount,
26 const OnDataValidated &onValidated,
27 const OnDataValidationFailed &onValidationFailed,
28 std::vector<shared_ptr<ValidationRequest> > &nextSteps)
29 { onValidated(data); }
30
31 virtual void
32 checkPolicy (shared_ptr<const Interest> interest,
33 int stepCount,
34 const OnInterestValidated &onValidated,
35 const OnInterestValidationFailed &onValidationFailed,
36 std::vector<shared_ptr<ValidationRequest> > &nextSteps)
37 { onValidated(interest); }
38};
39
40}
41
42#endif