Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #include "face.hpp" |
| 8 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 9 | namespace nfd { |
Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 10 | |
| 11 | Face::Face(FaceId id) |
| 12 | : m_id(id) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | Face::~Face() |
| 17 | { |
| 18 | } |
| 19 | |
| 20 | bool |
| 21 | Face::isUp() const |
| 22 | { |
| 23 | return true; |
| 24 | } |
| 25 | |
| 26 | void |
| 27 | Face::setDescription(const std::string& description) |
| 28 | { |
| 29 | m_description = description; |
| 30 | } |
| 31 | |
| 32 | const std::string& |
| 33 | Face::getDescription() const |
| 34 | { |
| 35 | return m_description; |
| 36 | } |
| 37 | |
| 38 | bool |
| 39 | Face::isMultiAccess() const |
| 40 | { |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | bool |
| 45 | Face::isLocalControlHeaderEnabled() const |
| 46 | { |
| 47 | // TODO add local control header functionality |
| 48 | return false; |
| 49 | } |
| 50 | |
| 51 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 52 | } //namespace nfd |