summaryrefslogtreecommitdiffstats
path: root/icnet/ccnx/icnet_ccnx_key_locator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icnet/ccnx/icnet_ccnx_key_locator.cc')
-rw-r--r--icnet/ccnx/icnet_ccnx_key_locator.cc40
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