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 | |
| 26 | FaceId |
| 27 | Face::setId(FaceId faceId) |
| 28 | { |
| 29 | m_id = faceId; |
| 30 | } |
| 31 | |
Junxiao Shi | 32bfeb3 | 2014-01-25 18:22:02 -0700 | [diff] [blame] | 32 | bool |
| 33 | Face::isUp() const |
| 34 | { |
| 35 | return true; |
| 36 | } |
| 37 | |
| 38 | void |
| 39 | Face::setDescription(const std::string& description) |
| 40 | { |
| 41 | m_description = description; |
| 42 | } |
| 43 | |
| 44 | const std::string& |
| 45 | Face::getDescription() const |
| 46 | { |
| 47 | return m_description; |
| 48 | } |
| 49 | |
| 50 | bool |
| 51 | Face::isMultiAccess() const |
| 52 | { |
| 53 | return false; |
| 54 | } |
| 55 | |
| 56 | bool |
| 57 | Face::isLocalControlHeaderEnabled() const |
| 58 | { |
| 59 | // TODO add local control header functionality |
| 60 | return false; |
| 61 | } |
| 62 | |
| 63 | |
Alexander Afanasyev | 18bbf81 | 2014-01-29 01:40:23 -0800 | [diff] [blame] | 64 | } //namespace nfd |