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