mgmt: move management/nfd-* to mgmt/nfd/
refs #3760
Change-Id: Ib4bde3412b5c39b9f4f46113199cebe78704505e
diff --git a/src/management/nfd-face-traits.hpp b/src/management/nfd-face-traits.hpp
index f473d8a..914c4d5 100644
--- a/src/management/nfd-face-traits.hpp
+++ b/src/management/nfd-face-traits.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2014 Regents of the University of California.
+ * Copyright (c) 2013-2016 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -19,139 +19,7 @@
* See AUTHORS.md for complete list of ndn-cxx authors and contributors.
*/
-#ifndef NDN_MANAGEMENT_NFD_FACE_TRAITS_HPP
-#define NDN_MANAGEMENT_NFD_FACE_TRAITS_HPP
-
-#include "../encoding/tlv-nfd.hpp"
-
-namespace ndn {
-namespace nfd {
-
-/** \ingroup management
- * \brief providers getters and setters of face information fields
- * \tparam C the concrete class; it must provide .wireReset() method
- to clear wire encoding when a field changes
+/** \file
+ * \deprecated Use mgmt/nfd/face-traits.hpp
*/
-template<class C>
-class FaceTraits
-{
-public:
- class Error : public tlv::Error
- {
- public:
- explicit
- Error(const std::string& what)
- : tlv::Error(what)
- {
- }
- };
-
- FaceTraits()
- : m_faceId(0)
- , m_faceScope(FACE_SCOPE_NON_LOCAL)
- , m_facePersistency(FACE_PERSISTENCY_PERSISTENT)
- , m_linkType(LINK_TYPE_POINT_TO_POINT)
- {
- }
-
- uint64_t
- getFaceId() const
- {
- return m_faceId;
- }
-
- C&
- setFaceId(uint64_t faceId)
- {
- wireReset();
- m_faceId = faceId;
- return static_cast<C&>(*this);
- }
-
- const std::string&
- getRemoteUri() const
- {
- return m_remoteUri;
- }
-
- C&
- setRemoteUri(const std::string& remoteUri)
- {
- wireReset();
- m_remoteUri = remoteUri;
- return static_cast<C&>(*this);
- }
-
- const std::string&
- getLocalUri() const
- {
- return m_localUri;
- }
-
- C&
- setLocalUri(const std::string& localUri)
- {
- wireReset();
- m_localUri = localUri;
- return static_cast<C&>(*this);
- }
-
- FaceScope
- getFaceScope() const
- {
- return m_faceScope;
- }
-
- C&
- setFaceScope(FaceScope faceScope)
- {
- wireReset();
- m_faceScope = faceScope;
- return static_cast<C&>(*this);
- }
-
- FacePersistency
- getFacePersistency() const
- {
- return m_facePersistency;
- }
-
- C&
- setFacePersistency(FacePersistency facePersistency)
- {
- wireReset();
- m_facePersistency = facePersistency;
- return static_cast<C&>(*this);
- }
-
- LinkType
- getLinkType() const
- {
- return m_linkType;
- }
-
- C&
- setLinkType(LinkType linkType)
- {
- wireReset();
- m_linkType = linkType;
- return static_cast<C&>(*this);
- }
-
-protected:
- virtual void
- wireReset() const = 0;
-
-protected:
- uint64_t m_faceId;
- std::string m_remoteUri;
- std::string m_localUri;
- FaceScope m_faceScope;
- FacePersistency m_facePersistency;
- LinkType m_linkType;
-};
-
-} // namespace nfd
-} // namespace ndn
-
-#endif // NDN_MANAGEMENT_NFD_FACE_TRAITS_HPP
+#include "../mgmt/nfd/face-traits.hpp"