xref: /haiku/src/add-ons/kernel/file_systems/packagefs/package/PackageNodeAttribute.cpp (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
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 
13 PackageNodeAttribute::PackageNodeAttribute(uint32 type,
14 	const PackageData& data)
15 	:
16 	fData(data),
17 	fName(),
18 	fIndexCookie(NULL),
19 	fType(type)
20 {
21 }
22 
23 
24 PackageNodeAttribute::~PackageNodeAttribute()
25 {
26 }
27 
28 
29 void
30 PackageNodeAttribute::Init(const String& name)
31 {
32 	fName = name;
33 }
34