blob: 2940693663bccf0840dd01dd255c350059f891ef [file] [log] [blame]
Yingdi Yudbeb8e22013-10-14 09:36:31 -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 CONTACT_ITEM_H
12#define CONTACT_ITEM_H
13
14#include <ndn.cxx/data.h>
15#include <vector>
16#include "endorse-certificate.h"
17
18class ContactItem
19{
20 typedef std::vector<Ptr<EndorseCertificate> > EndorseCertificateList;
21
22public:
23 ContactItem(const EndorseCertificate& selfEndorseCertificate,
24 const std::string& alias = std::string());
25
26 ~ContactItem() {}
27
28 const ndn::Name&
29 getNameSpace() const
30 { return m_namespace; }
31
32 const std::string&
33 getAlias() const
34 { return m_alias; }
35
36 const std::string&
37 getName() const
38 { return m_name; }
39
40 const std::string&
41 getInstitution() const
42 { return m_institution; }
43
44private:
45 EndorseCertificate m_selfEndorseCertificate;
46
47 ndn::Name m_namespace;
48 std::string m_alias;
49
50 std::string m_name;
51 std::string m_institution;
52};
53
54#endif