Skip to content

Commit aebf5d7

Browse files
committed
mgmt: redesign ControlCommand and its usage in nfd::Controller
Split parameter encoding and validation into a separate class so that different commands can have different formats in the future. Moreover, request parameters and response parameters may be of different types. Lastly, change the hierarchy to CRTP and make everything static. All the encoding and validation details are the same for every request/response of a given command type, so it makes no sense to allocate a separate ControlCommand instance for each individual request. Change-Id: I56c16dc3e275aaa48608478aad002d448c0492cc
1 parent 51974f6 commit aebf5d7

File tree

9 files changed

+466
-476
lines changed

9 files changed

+466
-476
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
1111

1212
project = 'ndn-cxx: NDN C++ library with eXperimental eXtensions'
13-
copyright = 'Copyright © 2013-2024 Regents of the University of California.'
13+
copyright = 'Copyright © 2013-2025 Regents of the University of California.'
1414
author = 'Named Data Networking Project'
1515

1616
# The short X.Y version.

ndn-cxx/impl/face-impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
22
/*
3-
* Copyright (c) 2013-2023 Regents of the University of California.
3+
* Copyright (c) 2013-2025 Regents of the University of California.
44
*
55
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
66
*
@@ -30,7 +30,7 @@
3030
#include "ndn-cxx/lp/fields.hpp"
3131
#include "ndn-cxx/lp/packet.hpp"
3232
#include "ndn-cxx/lp/tags.hpp"
33-
#include "ndn-cxx/mgmt/nfd/command-options.hpp"
33+
#include "ndn-cxx/mgmt/nfd/control-command.hpp"
3434
#include "ndn-cxx/mgmt/nfd/controller.hpp"
3535
#include "ndn-cxx/transport/transport.hpp"
3636
#include "ndn-cxx/util/logger.hpp"

0 commit comments

Comments
 (0)