blob: dbe4ca5376ffbe103c6a96a648818c13cd35df0b [file] [log] [blame]
Yingdi Yuad56f1c2013-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 Yu5ff62102013-10-13 17:24:50 -070011#ifndef LINKNDN_PROFILE_DATA_H
12#define LINKNDN_PROFILE_DATA_H
Yingdi Yuad56f1c2013-10-10 17:27:54 -070013
Yingdi Yu64206112013-12-24 11:16:32 +080014#include <ndn-cpp/data.hpp>
Yingdi Yu5ff62102013-10-13 17:24:50 -070015#include "profile.h"
Yingdi Yuad56f1c2013-10-10 17:27:54 -070016
17class ProfileData : public ndn::Data
18{
19public:
Yingdi Yu64206112013-12-24 11:16:32 +080020 ProfileData();
21
Yingdi Yue9ea5c92013-11-06 18:42:34 -080022 ProfileData(const Profile& profile);
Yingdi Yuad56f1c2013-10-10 17:27:54 -070023
Yingdi Yuaccbda92013-12-27 08:44:12 +080024 // ProfileData(const ProfileData& profileData);
Yingdi Yuad56f1c2013-10-10 17:27:54 -070025
Yingdi Yu5ff62102013-10-13 17:24:50 -070026 ProfileData(const ndn::Data& data);
Yingdi Yuad56f1c2013-10-10 17:27:54 -070027
Yingdi Yu5ff62102013-10-13 17:24:50 -070028 ~ProfileData() {}
29
Yingdi Yu64206112013-12-24 11:16:32 +080030 const ndn::Name&
Yingdi Yuad56f1c2013-10-10 17:27:54 -070031 getIdentityName() const
Yingdi Yu5ff62102013-10-13 17:24:50 -070032 { return m_identity; }
Yingdi Yuad56f1c2013-10-10 17:27:54 -070033
Yingdi Yu64206112013-12-24 11:16:32 +080034 const Profile&
Yingdi Yu5ff62102013-10-13 17:24:50 -070035 getProfile() const
36 { return m_profile; }
Yingdi Yuad56f1c2013-10-10 17:27:54 -070037
38private:
Yingdi Yu5ff62102013-10-13 17:24:50 -070039 ndn::Name m_identity;
40 Profile m_profile;
Yingdi Yuad56f1c2013-10-10 17:27:54 -070041};
42
43#endif