1 /* 2 * Copyright 2009-2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "PackageNodeAttribute.h" 8 9 #include <stdlib.h> 10 #include <string.h> 11 12 #include "ClassCache.h" 13 14 15 CLASS_CACHE(PackageNodeAttribute); 16 17 18 PackageNodeAttribute::PackageNodeAttribute(uint32 type, 19 const PackageData& data) 20 : 21 fName(), 22 fIndexCookie(NULL), 23 fData(data), 24 fType(type) 25 { 26 } 27 28 29 PackageNodeAttribute::~PackageNodeAttribute() 30 { 31 } 32 33 34 void 35 PackageNodeAttribute::Init(const String& name) 36 { 37 fName = name; 38 } 39