blob: b32b57aa1453a73a0d81baed16cadf877ab44be6 [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
Junxiao Shi88884492014-02-15 15:57:43 -070052Face::isLocal() const
53{
54 return false;
55}
56
57bool
Junxiao Shi32bfeb32014-01-25 18:22:02 -070058Face::isMultiAccess() const
59{
60 return false;
61}
62
63bool
64Face::isLocalControlHeaderEnabled() const
65{
66 // TODO add local control header functionality
67 return false;
68}
69
70
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080071} //namespace nfd