blob: 4c2ac71b6a50580f2fb15c626a108dd0aca0d904 [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 Yub4be64a2013-10-13 17:24:50 -070020 ProfileData(const ndn::Name& identity,
21 const Profile& profile);
Yingdi Yu4390ce52013-10-10 17:27:54 -070022
Yingdi Yub4be64a2013-10-13 17:24:50 -070023 ProfileData(const ProfileData& profileData);
Yingdi Yu4390ce52013-10-10 17:27:54 -070024
Yingdi Yub4be64a2013-10-13 17:24:50 -070025 ProfileData(const ndn::Data& data);
Yingdi Yu4390ce52013-10-10 17:27:54 -070026
Yingdi Yub4be64a2013-10-13 17:24:50 -070027 ~ProfileData() {}
28
29 inline const ndn::Name&
Yingdi Yu4390ce52013-10-10 17:27:54 -070030 getIdentityName() const
Yingdi Yub4be64a2013-10-13 17:24:50 -070031 { return m_identity; }
Yingdi Yu4390ce52013-10-10 17:27:54 -070032
Yingdi Yub4be64a2013-10-13 17:24:50 -070033 inline const Profile&
34 getProfile() const
35 { return m_profile; }
Yingdi Yu4390ce52013-10-10 17:27:54 -070036
37private:
Yingdi Yub4be64a2013-10-13 17:24:50 -070038 ndn::Name m_identity;
39 Profile m_profile;
Yingdi Yu4390ce52013-10-10 17:27:54 -070040};
41
42#endif