blob: 6e29a43b37df65845860dc4f265b37e95e83595c [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
11#ifndef PROFILE_DATA_H
12#define PROFILE_DATA_H
13
14#include <ndn.cxx/data.h>
15
16class ProfileData : public ndn::Data
17{
18public:
19 ProfileData (const ndn::Name& identityName,
20 const std::string& profileType,
21 const ndn::Blob& profileValue);
22
23 ProfileData (const ProfileData& profile);
24
Yingdi Yu7af8b512013-10-10 22:11:35 -070025 ProfileData (const ndn::Data& data);
Yingdi Yu4390ce52013-10-10 17:27:54 -070026
Yingdi Yu7af8b512013-10-10 22:11:35 -070027 ~ProfileData () {}
Yingdi Yu4390ce52013-10-10 17:27:54 -070028
29 inline const ndn::Name&
30 getIdentityName() const
31 { return m_identityName; }
32
33 inline const std::string&
34 getProfileType() const
35 { return m_profileType; }
36
37private:
38 ndn::Name m_identityName;
39 std::string m_profileType;
40};
41
42#endif