abstract Face class
refs #1153 Change-Id: I0b0dd71300d9b2d747a48c72fa8850c9afb75448
This commit is contained in:
1 parent
61c5ef3830
commit
32bfeb3401
3 files changed
+134
-1
No files matched your search
@@ -0,0 +1,52 @@
|
||||
/* -*- 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 ndn {
|
||||
|
||||
Face::Face(FaceId id)
|
||||
: m_id(id)
|
||||
{
|
||||
}
|
||||
|
||||
Face::~Face()
|
||||
{
|
||||
}
|
||||
|
||||
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::isMultiAccess() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
Face::isLocalControlHeaderEnabled() const
|
||||
{
|
||||
// TODO add local control header functionality
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
} //namespace ndn
|
||||
Reference in new issue
Block a user