diff options
author | Mauro Sardara <msardara+fdio@cisco.com> | 2017-02-22 14:37:37 +0100 |
---|---|---|
committer | Mauro Sardara <msardara+fdio@cisco.com> | 2017-02-22 13:46:08 +0000 |
commit | ba8541cad3a4069886444abbd1848b6ef3fff72c (patch) | |
tree | 39226dd9b036ca7e513c2cccd8e71e15e09b86bc /icnet/ccnx/icnet_ccnx_key_locator.cc | |
parent | 9b30fc10fb1cbebe651e5a107e8ca5b24de54675 (diff) |
Initial Commit: libicnet
Change-Id: I10a72cb0d84b76553a85c168416b847f6a4ff5f6
Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
Diffstat (limited to 'icnet/ccnx/icnet_ccnx_key_locator.cc')
-rw-r--r-- | icnet/ccnx/icnet_ccnx_key_locator.cc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/icnet/ccnx/icnet_ccnx_key_locator.cc b/icnet/ccnx/icnet_ccnx_key_locator.cc new file mode 100644 index 00000000..193573a9 --- /dev/null +++ b/icnet/ccnx/icnet_ccnx_key_locator.cc @@ -0,0 +1,40 @@ +// +// Created by msardara on 01/11/16. +// + +#include "icnet_ccnx_key_locator.h" + +namespace icnet { + +namespace ccnx { + +KeyLocator::KeyLocator() : type_(KeyLocatorType::UNKNOWN) { +} + +KeyLocator::KeyLocator(KeyLocatorType type, Name &name) : type_(type), name_(name) { +} + +Name &KeyLocator::getName() { + return name_; +} + +void KeyLocator::setName(Name &name) { + name_ = name; +} + +void KeyLocator::setType(KeyLocatorType type) { + type_ = type; +} + +KeyLocatorType KeyLocator::getType() { + return type_; +} + +void KeyLocator::clear() { + type_ = KeyLocatorType::UNKNOWN; + name_.clear(); +} + +} // end namespace ccnx + +} // end namespace icnet
\ No newline at end of file |