* Copyright 2017, ChαΊΏ VΕ© Gia Hy, cvghy116@gmail.com.
* Copyright 2011, JΓ©rΓ΄me Duval, korli@users.berlios.de.
* This file may be used under the terms of the MIT License.
*/
#ifndef ATTRIBUTEITERATOR_H
#define ATTRIBUTEITERATOR_H
#include "BTree.h"
#include "Inode.h"
class AttributeIterator {
public:
AttributeIterator(Inode* inode);
~AttributeIterator();
status_t InitCheck();
* \param[out] name name of the current attribute
* \param[out] _nameLength length of name
* \return B_OK on success, B_ENTRY_NOT_FOUND otherwise
*/
status_t GetNext(char* name, size_t* _nameLength);
status_t Rewind();
private:
uint64 fOffset;
Inode* fInode;
TreeIterator* fIterator;
};
#endif