Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 2 | /** |
Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 3 | * Copyright (c) 2013-2014 Regents of the University of California. |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 4 | * |
| 5 | * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions). |
Alexander Afanasyev | dfa52c4 | 2014-04-24 21:10:11 -0700 | [diff] [blame] | 6 | * |
Alexander Afanasyev | c169a81 | 2014-05-20 20:37:29 -0400 | [diff] [blame] | 7 | * ndn-cxx library is free software: you can redistribute it and/or modify it under the |
| 8 | * terms of the GNU Lesser General Public License as published by the Free Software |
| 9 | * Foundation, either version 3 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY |
| 12 | * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 13 | * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received copies of the GNU General Public License and GNU Lesser |
| 16 | * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see |
| 17 | * <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | * See AUTHORS.md for complete list of ndn-cxx authors and contributors. |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 20 | */ |
| 21 | |
| 22 | #ifndef NDN_MANAGEMENT_NFD_CONTROL_COMMAND_HPP |
| 23 | #define NDN_MANAGEMENT_NFD_CONTROL_COMMAND_HPP |
| 24 | |
| 25 | #include "nfd-control-parameters.hpp" |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 26 | |
| 27 | namespace ndn { |
| 28 | namespace nfd { |
| 29 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 30 | /** |
| 31 | * \ingroup management |
| 32 | * \brief base class of NFD ControlCommand |
| 33 | * \sa http://redmine.named-data.net/projects/nfd/wiki/ControlCommand |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 34 | */ |
Junxiao Shi | 7b6b79d | 2014-03-26 20:59:35 -0700 | [diff] [blame] | 35 | class ControlCommand : noncopyable |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 36 | { |
| 37 | public: |
| 38 | /** \brief represents an error in ControlParameters |
| 39 | */ |
| 40 | class ArgumentError : public std::invalid_argument |
| 41 | { |
| 42 | public: |
| 43 | explicit |
| 44 | ArgumentError(const std::string& what) |
| 45 | : std::invalid_argument(what) |
| 46 | { |
| 47 | } |
| 48 | }; |
| 49 | |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 50 | /** \brief validate request parameters |
Junxiao Shi | 5de006b | 2014-10-26 20:20:52 -0700 | [diff] [blame] | 51 | * \throw ArgumentError if parameters are invalid |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 52 | */ |
| 53 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 54 | validateRequest(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 55 | |
| 56 | /** \brief apply default values to missing fields in request |
| 57 | */ |
| 58 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 59 | applyDefaultsToRequest(ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 60 | |
| 61 | /** \brief validate response parameters |
Junxiao Shi | 5de006b | 2014-10-26 20:20:52 -0700 | [diff] [blame] | 62 | * \throw ArgumentError if parameters are invalid |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 63 | */ |
| 64 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 65 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 66 | |
| 67 | /** \brief apply default values to missing fields in response |
| 68 | */ |
| 69 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 70 | applyDefaultsToResponse(ControlParameters& parameters) const; |
| 71 | |
| 72 | /** \brief construct the Name for a request Interest |
Junxiao Shi | 5de006b | 2014-10-26 20:20:52 -0700 | [diff] [blame] | 73 | * \throw ArgumentError if parameters are invalid |
| 74 | */ |
| 75 | Name |
| 76 | getRequestName(const Name& commandPrefix, const ControlParameters& parameters) const; |
| 77 | |
| 78 | public: // deprecated |
| 79 | /** \return Name prefix of this ControlCommand |
| 80 | * \deprecated use getRequestName |
| 81 | */ |
Junxiao Shi | 415b17c | 2014-11-12 00:43:25 -0700 | [diff] [blame^] | 82 | DEPRECATED( |
Junxiao Shi | 5de006b | 2014-10-26 20:20:52 -0700 | [diff] [blame] | 83 | const Name& |
Junxiao Shi | 415b17c | 2014-11-12 00:43:25 -0700 | [diff] [blame^] | 84 | getPrefix() const); |
Junxiao Shi | 5de006b | 2014-10-26 20:20:52 -0700 | [diff] [blame] | 85 | |
| 86 | /** \brief construct the Name for a request Interest |
| 87 | * \throw ArgumentError if parameters are invalid |
| 88 | * \deprecated use the two-argument overload |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 89 | */ |
Junxiao Shi | 415b17c | 2014-11-12 00:43:25 -0700 | [diff] [blame^] | 90 | DEPRECATED( |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 91 | Name |
Junxiao Shi | 415b17c | 2014-11-12 00:43:25 -0700 | [diff] [blame^] | 92 | getRequestName(const ControlParameters& parameters) const); |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 93 | |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 94 | protected: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 95 | ControlCommand(const std::string& module, const std::string& verb); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 96 | |
| 97 | class FieldValidator |
| 98 | { |
| 99 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 100 | FieldValidator(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 101 | |
| 102 | /** \brief declare a required field |
| 103 | */ |
| 104 | FieldValidator& |
| 105 | required(ControlParameterField field) |
| 106 | { |
| 107 | m_required[field] = true; |
| 108 | return *this; |
| 109 | } |
| 110 | |
| 111 | /** \brief declare an optional field |
| 112 | */ |
| 113 | FieldValidator& |
| 114 | optional(ControlParameterField field) |
| 115 | { |
| 116 | m_optional[field] = true; |
| 117 | return *this; |
| 118 | } |
| 119 | |
| 120 | /** \brief verify that all required fields are present, |
| 121 | * and all present fields are either required or optional |
| 122 | * \throw ArgumentError |
| 123 | */ |
| 124 | void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 125 | validate(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 126 | |
| 127 | private: |
| 128 | std::vector<bool> m_required; |
| 129 | std::vector<bool> m_optional; |
| 130 | }; |
| 131 | |
| 132 | protected: |
| 133 | /** \brief FieldValidator for request ControlParameters |
| 134 | * |
| 135 | * Constructor of subclass should populate this validator. |
| 136 | */ |
| 137 | FieldValidator m_requestValidator; |
| 138 | /** \brief FieldValidator for response ControlParameters |
| 139 | * |
| 140 | * Constructor of subclass should populate this validator. |
| 141 | */ |
| 142 | FieldValidator m_responseValidator; |
| 143 | |
| 144 | private: |
Junxiao Shi | 5de006b | 2014-10-26 20:20:52 -0700 | [diff] [blame] | 145 | name::Component m_module; |
| 146 | name::Component m_verb; |
| 147 | |
| 148 | /** \deprecated kept to support getPrefix |
| 149 | */ |
| 150 | mutable Name m_prefix; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 151 | }; |
| 152 | |
| 153 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 154 | /** |
| 155 | * \ingroup management |
| 156 | * \brief represents a faces/create command |
| 157 | * \sa http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Create-a-face |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 158 | */ |
| 159 | class FaceCreateCommand : public ControlCommand |
| 160 | { |
| 161 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 162 | FaceCreateCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 163 | |
| 164 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 165 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 166 | }; |
| 167 | |
| 168 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 169 | /** |
| 170 | * \ingroup management |
| 171 | * \brief represents a faces/destroy command |
| 172 | * \sa http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Destroy-a-face |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 173 | */ |
| 174 | class FaceDestroyCommand : public ControlCommand |
| 175 | { |
| 176 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 177 | FaceDestroyCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 178 | |
| 179 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 180 | validateRequest(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 181 | |
| 182 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 183 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 184 | }; |
| 185 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 186 | /** |
| 187 | * \ingroup management |
| 188 | * \brief Base class for faces/[*]-local-control commands |
| 189 | */ |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 190 | class FaceLocalControlCommand : public ControlCommand |
| 191 | { |
Junxiao Shi | 6888bc1 | 2014-03-29 23:01:41 -0700 | [diff] [blame] | 192 | public: |
| 193 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 194 | validateRequest(const ControlParameters& parameters) const; |
Junxiao Shi | 6888bc1 | 2014-03-29 23:01:41 -0700 | [diff] [blame] | 195 | |
| 196 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 197 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 6888bc1 | 2014-03-29 23:01:41 -0700 | [diff] [blame] | 198 | |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 199 | protected: |
| 200 | explicit |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 201 | FaceLocalControlCommand(const std::string& verb); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 202 | }; |
| 203 | |
| 204 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 205 | /** |
| 206 | * \ingroup management |
| 207 | * \brief represents a faces/enable-local-control command |
| 208 | * \sa http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Enable-a-LocalControlHeader-feature |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 209 | */ |
| 210 | class FaceEnableLocalControlCommand : public FaceLocalControlCommand |
| 211 | { |
| 212 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 213 | FaceEnableLocalControlCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 214 | }; |
| 215 | |
| 216 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 217 | /** |
| 218 | * \ingroup management |
| 219 | * \brief represents a faces/disable-local-control command |
| 220 | * \sa http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Disable-a-LocalControlHeader-feature |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 221 | */ |
| 222 | class FaceDisableLocalControlCommand : public FaceLocalControlCommand |
| 223 | { |
| 224 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 225 | FaceDisableLocalControlCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 229 | /** |
| 230 | * \ingroup management |
| 231 | * \brief represents a fib/add-nexthop command |
| 232 | * \sa http://redmine.named-data.net/projects/nfd/wiki/FibMgmt#Add-a-nexthop |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 233 | */ |
| 234 | class FibAddNextHopCommand : public ControlCommand |
| 235 | { |
| 236 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 237 | FibAddNextHopCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 238 | |
| 239 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 240 | applyDefaultsToRequest(ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 241 | |
| 242 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 243 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 244 | }; |
| 245 | |
| 246 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 247 | /** |
| 248 | * \ingroup management |
| 249 | * \brief represents a fib/remove-nexthop command |
| 250 | * \sa http://redmine.named-data.net/projects/nfd/wiki/FibMgmt#Remove-a-nexthop |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 251 | */ |
| 252 | class FibRemoveNextHopCommand : public ControlCommand |
| 253 | { |
| 254 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 255 | FibRemoveNextHopCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 256 | |
| 257 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 258 | applyDefaultsToRequest(ControlParameters& parameters) const; |
Junxiao Shi | caac54e | 2014-05-20 15:27:01 -0700 | [diff] [blame] | 259 | |
| 260 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 261 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 262 | }; |
| 263 | |
| 264 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 265 | /** |
| 266 | * \ingroup management |
| 267 | * \brief represents a strategy-choice/set command |
| 268 | * \sa http://redmine.named-data.net/projects/nfd/wiki/StrategyChoice#Set-the-strategy-for-a-namespace |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 269 | */ |
| 270 | class StrategyChoiceSetCommand : public ControlCommand |
| 271 | { |
| 272 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 273 | StrategyChoiceSetCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 274 | }; |
| 275 | |
| 276 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 277 | /** |
| 278 | * \ingroup management |
| 279 | * \brief represents a strategy-choice/set command |
| 280 | * \sa http://redmine.named-data.net/projects/nfd/wiki/StrategyChoice#Unset-the-strategy-for-a-namespace |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 281 | */ |
| 282 | class StrategyChoiceUnsetCommand : public ControlCommand |
| 283 | { |
| 284 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 285 | StrategyChoiceUnsetCommand(); |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 286 | |
| 287 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 288 | validateRequest(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 289 | |
| 290 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 291 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 292 | }; |
| 293 | |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 294 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 295 | /** |
| 296 | * \ingroup management |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 297 | * \brief represents a rib/register command |
| 298 | * \sa http://redmine.named-data.net/projects/nfd/wiki/RibMgmt#Register-a-route |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 299 | */ |
| 300 | class RibRegisterCommand : public ControlCommand |
| 301 | { |
| 302 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 303 | RibRegisterCommand(); |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 304 | |
| 305 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 306 | applyDefaultsToRequest(ControlParameters& parameters) const; |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 307 | |
| 308 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 309 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 310 | }; |
| 311 | |
| 312 | |
Alexander Afanasyev | 4671bf7 | 2014-05-19 09:01:37 -0400 | [diff] [blame] | 313 | /** |
| 314 | * \ingroup management |
| 315 | * \brief represents a rib/unregister command |
| 316 | * \sa http://redmine.named-data.net/projects/nfd/wiki/RibMgmt#Unregister-a-route |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 317 | */ |
| 318 | class RibUnregisterCommand : public ControlCommand |
| 319 | { |
| 320 | public: |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 321 | RibUnregisterCommand(); |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 322 | |
| 323 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 324 | applyDefaultsToRequest(ControlParameters& parameters) const; |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 325 | |
| 326 | virtual void |
Junxiao Shi | 7091165 | 2014-08-12 10:14:24 -0700 | [diff] [blame] | 327 | validateResponse(const ControlParameters& parameters) const; |
Junxiao Shi | 5f6c74f | 2014-04-18 16:29:44 -0700 | [diff] [blame] | 328 | }; |
| 329 | |
| 330 | |
Junxiao Shi | 5ec8022 | 2014-03-25 20:08:05 -0700 | [diff] [blame] | 331 | } // namespace nfd |
| 332 | } // namespace ndn |
| 333 | |
| 334 | #endif // NDN_MANAGEMENT_NFD_CONTROL_COMMAND_HPP |