blob: 9c8e184f8241e25bb02122df33ad38da800bf436 [file] [log] [blame]
Yingdi Yu4390ce52013-10-10 17:27:54 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Yingdi Yu
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
9 */
10
Yingdi Yub4be64a2013-10-13 17:24:50 -070011#ifndef LINKNDN_PROFILE_DATA_H
12#define LINKNDN_PROFILE_DATA_H
Yingdi Yu4390ce52013-10-10 17:27:54 -070013
14#include <ndn.cxx/data.h>
Yingdi Yub4be64a2013-10-13 17:24:50 -070015#include "profile.h"
Yingdi Yu4390ce52013-10-10 17:27:54 -070016
17class ProfileData : public ndn::Data
18{
19public:
Yingdi Yu2e3199c2013-11-06 18:42:34 -080020 ProfileData(const Profile& profile);
Yingdi Yu4390ce52013-10-10 17:27:54 -070021
Yingdi Yub4be64a2013-10-13 17:24:50 -070022 ProfileData(const ProfileData& profileData);
Yingdi Yu4390ce52013-10-10 17:27:54 -070023
Yingdi Yub4be64a2013-10-13 17:24:50 -070024 ProfileData(const ndn::Data& data);
Yingdi Yu4390ce52013-10-10 17:27:54 -070025
Yingdi Yub4be64a2013-10-13 17:24:50 -070026 ~ProfileData() {}
27
28 inline const ndn::Name&
Yingdi Yu4390ce52013-10-10 17:27:54 -070029 getIdentityName() const
Yingdi Yub4be64a2013-10-13 17:24:50 -070030 { return m_identity; }
Yingdi Yu4390ce52013-10-10 17:27:54 -070031
Yingdi Yub4be64a2013-10-13 17:24:50 -070032 inline const Profile&
33 getProfile() const
34 { return m_profile; }
Yingdi Yu4390ce52013-10-10 17:27:54 -070035
36private:
Yingdi Yub4be64a2013-10-13 17:24:50 -070037 ndn::Name m_identity;
38 Profile m_profile;
Yingdi Yu4390ce52013-10-10 17:27:54 -070039};
40
41#endif