blob: d0bde55c0ac7f8d9d5687fb4484db774963e05fb [file] [log] [blame]
Junxiao Shi32bfeb32014-01-25 18:22:02 -07001/* -*- 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 Afanasyev18bbf812014-01-29 01:40:23 -08009namespace nfd {
Junxiao Shi32bfeb32014-01-25 18:22:02 -070010
Junxiao Shi8c8d2182014-01-30 22:33:00 -070011Face::Face()
12 : m_id(INVALID_FACEID)
Junxiao Shi32bfeb32014-01-25 18:22:02 -070013{
14}
15
16Face::~Face()
17{
18}
19
Junxiao Shi8c8d2182014-01-30 22:33:00 -070020FaceId
21Face::getId() const
22{
23 return m_id;
24}
25
Alexander Afanasyev46f66472014-01-31 16:50:58 -080026// this method is private and should be used only by the Forwarder
27void
Junxiao Shi8c8d2182014-01-30 22:33:00 -070028Face::setId(FaceId faceId)
29{
30 m_id = faceId;
31}
32
Junxiao Shi32bfeb32014-01-25 18:22:02 -070033bool
34Face::isUp() const
35{
36 return true;
37}
38
39void
40Face::setDescription(const std::string& description)
41{
42 m_description = description;
43}
44
45const std::string&
46Face::getDescription() const
47{
48 return m_description;
49}
50
51bool
52Face::isMultiAccess() const
53{
54 return false;
55}
56
57bool
58Face::isLocalControlHeaderEnabled() const
59{
60 // TODO add local control header functionality
61 return false;
62}
63
64
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080065} //namespace nfd