--- /dev/null
+/**
+ * © 2008 by David ‘Bombe’ Roden <bombe@pterodactylus.net>
+ */
+
+#include "HashTag.h"
+
+#include <string.h>
+
+HashTag::HashTag(const char* hash): Tag(Hash, 0) {
+ memcpy(this->hash, hash, 16);
+}
+
+int HashTag::getSize() {
+ return 16;
+}
+
+void* HashTag::getValue() {
+ return hash;
+}
+
--- /dev/null
+/**
+ * © 2008 by David ‘Bombe’ Roden <bombe@pterodactylus.net>
+ */
+
+#pragma once
+
+#include "Tag.h"
+
+class HashTag: public Tag {
+
+public:
+ HashTag(const char* hash);
+
+ int getSize();
+ void* getValue();
+
+private:
+ char hash[16];
+
+};
+
all: ecparse
-ecparse: Tag.o BlobTag.o StringTag.o GlobalSettings.o GrowingBuffer.o ED2KLink.o ReaderInput.o FileReaderInput.o CollectionReader.o Main.o
+ecparse: Tag.o HashTag.o BlobTag.o StringTag.o GlobalSettings.o GrowingBuffer.o ED2KLink.o ReaderInput.o FileReaderInput.o CollectionReader.o Main.o
$(CC) -o $@ $^
GlobalSettings.o: GlobalSettings.cpp GlobalSettings.h
BlobTag.o: BlobTag.cpp BlobTag.h Tag.h TagType.h
-CollectionReader.o: CollectionReader.cpp ReaderInput.h ED2KLink.h GrowingBuffer.h GlobalSettings.h Tag.h TagType.h StringTag.h BlobTag.h
+HashTag.o: HashTag.cpp HashTag.h Tag.h
+
+CollectionReader.o: CollectionReader.cpp ReaderInput.h ED2KLink.h GrowingBuffer.h GlobalSettings.h Tag.h TagType.h StringTag.h BlobTag.h HashTag.h
ED2KLink.o: ED2KLink.cpp ED2KLink.h GlobalSettings.h