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 | |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 11 | Face::Face() |
| 12 | : m_id(INVALID_FACEID) |
Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 13 | { |
| 14 | } |
| 15 | |
| 16 | Face::~Face() |
| 17 | { |
| 18 | } |
| 19 | |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 20 | FaceId |
| 21 | Face::getId() const |
| 22 | { |
| 23 | return m_id; |
| 24 | } |
| 25 | |
Alexander Afanasyev | 46f6647 | 2014-01-31 16:50:58 -0800 | [diff] [blame] | 26 | // this method is private and should be used only by the Forwarder |
| 27 | void |
Junxiao Shi | 8c8d218 | 2014-01-30 22:33:00 -0700 | [diff] [blame] | 28 | Face::setId(FaceId faceId) |
| 29 | { |
| 30 | m_id = faceId; |
| 31 | } |
| 32 | |
Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 33 | bool |
| 34 | Face::isUp() const |
| 35 | { |
| 36 | return true; |
| 37 | } |
| 38 | |
| 39 | void |
| 40 | Face::setDescription(const std::string& description) |
| 41 | { |
| 42 | m_description = description; |
| 43 | } |
| 44 | |
| 45 | const std::string& |
| 46 | Face::getDescription() const |
| 47 | { |
| 48 | return m_description; |
| 49 | } |
| 50 | |
| 51 | bool |
Junxiao Shi | 8888449 | 2014-02-15 15:57:43 -0700 | [diff] [blame^] | 52 | Face::isLocal() const |
| 53 | { |
| 54 | return false; |
| 55 | } |
| 56 | |
| 57 | bool |
Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 58 | Face::isMultiAccess() const |
| 59 | { |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | bool |
| 64 | Face::isLocalControlHeaderEnabled() const |
| 65 | { |
| 66 | // TODO add local control header functionality |
| 67 | return false; |
| 68 | } |
| 69 | |
| 70 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 71 | } //namespace nfd |