Yingdi Yu | 4390ce5 | 2013-10-10 17:27:54 -0700 | [diff] [blame] | 1 | /* -*- 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 | |
| 16 | class ProfileData : public ndn::Data |
| 17 | { |
| 18 | public: |
| 19 | ProfileData (const ndn::Name& identityName, |
| 20 | const std::string& profileType, |
| 21 | const ndn::Blob& profileValue); |
| 22 | |
| 23 | ProfileData (const ProfileData& profile); |
| 24 | |
Yingdi Yu | 7af8b51 | 2013-10-10 22:11:35 -0700 | [diff] [blame] | 25 | ProfileData (const ndn::Data& data); |
Yingdi Yu | c972c45 | 2013-10-11 11:02:09 -0700 | [diff] [blame^] | 26 | |
| 27 | virtual |
Yingdi Yu | 7af8b51 | 2013-10-10 22:11:35 -0700 | [diff] [blame] | 28 | ~ProfileData () {} |
Yingdi Yu | 4390ce5 | 2013-10-10 17:27:54 -0700 | [diff] [blame] | 29 | |
| 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 | |
| 38 | private: |
| 39 | ndn::Name m_identityName; |
| 40 | std::string m_profileType; |
| 41 | }; |
| 42 | |
| 43 | #endif |