exceptions: Make Tlv::Error a base class for all packet-processing exceptions
This commit also includes a number of code style fixes.
Change-Id: I44f83915e733b43d5f43b4266902c8262e928d91
Refs: #1528
diff --git a/src/management/ndnd-face-instance.hpp b/src/management/ndnd-face-instance.hpp
index 530f10d..24f90f9 100644
--- a/src/management/ndnd-face-instance.hpp
+++ b/src/management/ndnd-face-instance.hpp
@@ -17,7 +17,8 @@
/**
* An FaceInstance holds an action and Name prefix and other fields for an forwarding entry.
*/
-class FaceInstance {
+class FaceInstance
+{
public:
FaceInstance(const std::string& action,
int64_t faceId,
diff --git a/src/management/ndnd-forwarding-entry.hpp b/src/management/ndnd-forwarding-entry.hpp
index a084964..e654ff4 100644
--- a/src/management/ndnd-forwarding-entry.hpp
+++ b/src/management/ndnd-forwarding-entry.hpp
@@ -19,7 +19,8 @@
/**
* An ForwardingEntry holds an action and Name prefix and other fields for an forwarding entry.
*/
-class ForwardingEntry {
+class ForwardingEntry
+{
public:
ForwardingEntry(const std::string& action,
const Name& prefix,
diff --git a/src/management/ndnd-forwarding-flags.hpp b/src/management/ndnd-forwarding-flags.hpp
index 803dabc..36a565f 100644
--- a/src/management/ndnd-forwarding-flags.hpp
+++ b/src/management/ndnd-forwarding-flags.hpp
@@ -19,7 +19,8 @@
* a registered prefix. We use a separate ForwardingFlags object to retain future compatibility if the daemon forwarding
* bits are changed, amended or deprecated.
*/
-class ForwardingFlags {
+class ForwardingFlags
+{
public:
/**
* Create a new ForwardingFlags with "active" and "childInherit" set and all other flags cleared.
diff --git a/src/management/ndnd-status-response.hpp b/src/management/ndnd-status-response.hpp
index 23597b9..2229a1d 100644
--- a/src/management/ndnd-status-response.hpp
+++ b/src/management/ndnd-status-response.hpp
@@ -13,7 +13,8 @@
namespace ndn {
namespace ndnd {
-class StatusResponse {
+class StatusResponse
+{
public:
StatusResponse()
: code_(0)
diff --git a/src/management/nfd-control-response.hpp b/src/management/nfd-control-response.hpp
index a4a5ae3..3c2a06d 100644
--- a/src/management/nfd-control-response.hpp
+++ b/src/management/nfd-control-response.hpp
@@ -18,7 +18,8 @@
*
* @see http://redmine.named-data.net/projects/nfd/wiki/ControlCommand
*/
-class ControlResponse {
+class ControlResponse
+{
public:
class Error : public Tlv::Error
{
diff --git a/src/management/nrd-prefix-reg-options.hpp b/src/management/nrd-prefix-reg-options.hpp
index ea8ca4d..8f2a0e5 100644
--- a/src/management/nrd-prefix-reg-options.hpp
+++ b/src/management/nrd-prefix-reg-options.hpp
@@ -25,7 +25,8 @@
* @see http://redmine.named-data.net/projects/nrd/wiki/NRD_Prefix_Registration_protocol
* @deprecated use NFD RIB Management
*/
-class PrefixRegOptions {
+class PrefixRegOptions
+{
public:
class Error : public Tlv::Error
{