88884490ae
refs #1230 Change-Id: I86fd071ef144caa506b26a723f14232e2af5e2de
72 lines
907 B
C++
72 lines
907 B
C++
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
|
/**
|
|
* Copyright (C) 2014 Named Data Networking Project
|
|
* See COPYING for copyright and distribution information.
|
|
*/
|
|
|
|
#include "face.hpp"
|
|
|
|
namespace nfd {
|
|
|
|
Face::Face()
|
|
: m_id(INVALID_FACEID)
|
|
{
|
|
}
|
|
|
|
Face::~Face()
|
|
{
|
|
}
|
|
|
|
FaceId
|
|
Face::getId() const
|
|
{
|
|
return m_id;
|
|
}
|
|
|
|
// this method is private and should be used only by the Forwarder
|
|
void
|
|
Face::setId(FaceId faceId)
|
|
{
|
|
m_id = faceId;
|
|
}
|
|
|
|
bool
|
|
Face::isUp() const
|
|
{
|
|
return true;
|
|
}
|
|
|
|
void
|
|
Face::setDescription(const std::string& description)
|
|
{
|
|
m_description = description;
|
|
}
|
|
|
|
const std::string&
|
|
Face::getDescription() const
|
|
{
|
|
return m_description;
|
|
}
|
|
|
|
bool
|
|
Face::isLocal() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
Face::isMultiAccess() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool
|
|
Face::isLocalControlHeaderEnabled() const
|
|
{
|
|
// TODO add local control header functionality
|
|
return false;
|
|
}
|
|
|
|
|
|
} //namespace nfd
|