/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ | |
/* | |
* Copyright (c) 2013, Regents of the University of California | |
* Yingdi Yu | |
* | |
* BSD license, See the LICENSE file for more information | |
* | |
* Author: Yingdi Yu <yingdi@cs.ucla.edu> | |
*/ | |
#ifndef LINKNDN_PROFILE_DATA_H | |
#define LINKNDN_PROFILE_DATA_H | |
#include <ndn.cxx/data.h> | |
#include "profile.h" | |
class ProfileData : public ndn::Data | |
{ | |
public: | |
ProfileData(const ndn::Name& identity, | |
const Profile& profile); | |
ProfileData(const ProfileData& profileData); | |
ProfileData(const ndn::Data& data); | |
~ProfileData() {} | |
inline const ndn::Name& | |
getIdentityName() const | |
{ return m_identity; } | |
inline const Profile& | |
getProfile() const | |
{ return m_profile; } | |
private: | |
ndn::Name m_identity; | |
Profile m_profile; | |
}; | |
#endif |