blob: c70f6fc28423c63899edc3f5b0134d0279f8199b [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 Yuc972c452013-10-11 11:02:09 -070026
27 virtual
Yingdi Yu7af8b512013-10-10 22:11:35 -070028 ~ProfileData () {}
Yingdi Yu4390ce52013-10-10 17:27:54 -070029
30 inline const ndn::Name&
31 getIdentityName() const
32 { return m_identityName; }
33
34 inline const std::string&
35 getProfileType() const
36 { return m_profileType; }
37
38private:
39 ndn::Name m_identityName;
40 std::string m_profileType;
41};
42
43#endif