forwarding-flags.hpp
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
22 #ifndef NDN_FORWARDING_FLAGS_HPP
23 #define NDN_FORWARDING_FLAGS_HPP
24 
25 #include "lite/forwarding-flags-lite.hpp"
26 
27 namespace ndn {
28 
36 public:
41 
46  bool getChildInherit() const { return flags_.getChildInherit(); }
47 
52  bool getCapture() const { return flags_.getCapture(); }
53 
58  void setChildInherit(bool childInherit) { flags_.setChildInherit(childInherit); }
59 
64  void setCapture(bool capture) { flags_.setCapture(capture); }
65 
71  void
72  get(ForwardingFlagsLite& forwardingFlagsLite) const
73  {
74  forwardingFlagsLite = flags_;
75  }
76 
81  void
82  set(const ForwardingFlagsLite& forwardingFlagsLite)
83  {
84  flags_ = forwardingFlagsLite;
85  }
86 
87 private:
88  ForwardingFlagsLite flags_;
89 };
90 
91 }
92 
93 #endif
bool getChildInherit() const
Get the value of the "childInherit" flag.
Definition: forwarding-flags-lite.hpp:47
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
void setChildInherit(bool childInherit)
Set the value of the "childInherit" flag.
Definition: forwarding-flags.hpp:58
void setChildInherit(bool childInherit)
Set the value of the "childInherit" flag.
Definition: forwarding-flags-lite.hpp:59
void setCapture(bool capture)
Set the value of the "capture" flag.
Definition: forwarding-flags-lite.hpp:65
A ForwardingFlags object holds the flags which specify how the forwarding daemon should forward an in...
Definition: forwarding-flags.hpp:35
bool getCapture() const
Get the value of the "capture" flag.
Definition: forwarding-flags.hpp:52
void setCapture(bool capture)
Set the value of the "capture" flag.
Definition: forwarding-flags.hpp:64
bool getChildInherit() const
Get the value of the "childInherit" flag.
Definition: forwarding-flags.hpp:46
void set(const ForwardingFlagsLite &forwardingFlagsLite)
Set the values in this ForwardingFlags by copying from forwardingFlagsLite.
Definition: forwarding-flags.hpp:82
bool getCapture() const
Get the value of the "capture" flag.
Definition: forwarding-flags-lite.hpp:53
ForwardingFlags()
Create a new ForwardingFlags with "childInherit" set and all other flags cleared. ...
Definition: forwarding-flags.hpp:40
A ForwardingFlagsLite holds the flags which specify how the forwarding daemon should forward an inter...
Definition: forwarding-flags-lite.hpp:35