| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| * Copyright (C) 2013 Regents of the University of California. |
| * See COPYING for copyright and distribution information. |
| #ifndef NDN_MANAGEMENT_NFD_FACE_FLAGS_HPP |
| #define NDN_MANAGEMENT_NFD_FACE_FLAGS_HPP |
| * \brief provides additional information about a face |
| /** \brief face is local (for scope control purpose) |
| /** \brief face is created on demand (accepted incoming connection, |
| * not initiated outgoing connection) |
| /** \brief implements getters to each face flag |
| * \tparam T class containing a FaceFlags field and implements |
| * `FaceFlags getFlags() const` method |
| return static_cast<const T*>(this)->getFlags() & FACE_IS_LOCAL; |
| return static_cast<const T*>(this)->getFlags() & FACE_IS_ON_DEMAND; |
| #endif // NDN_MANAGEMENT_NFD_FACE_FLAGS_HPP |