1/*
2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef UNPACKING_ATTRIBUTE_DIRECTORY_COOKIE_H
6#define UNPACKING_ATTRIBUTE_DIRECTORY_COOKIE_H
7
8
9#include "AutoPackageAttributeDirectoryCookie.h"
10
11
12class PackageNode;
13class PackageNodeAttribute;
14
15
16class UnpackingAttributeDirectoryCookie
17	: public AutoPackageAttributeDirectoryCookie {
18public:
19								UnpackingAttributeDirectoryCookie(
20									PackageNode* packageNode);
21	virtual						~UnpackingAttributeDirectoryCookie();
22
23	static	status_t			Open(PackageNode* packageNode,
24									AttributeDirectoryCookie*& _cookie);
25
26	virtual	status_t			Rewind();
27
28protected:
29	virtual	String				CurrentCustomAttributeName();
30	virtual	String				NextCustomAttributeName();
31
32private:
33			PackageNode*		fPackageNode;
34			PackageNodeAttribute* fAttribute;
35};
36
37
38#endif	// UNPACKING_ATTRIBUTE_DIRECTORY_COOKIE_H
39