1//----------------------------------------------------------------------
2//  This software is part of the OpenBeOS distribution and is covered
3//  by the OpenBeOS license.
4//
5//  Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6//----------------------------------------------------------------------
7
8/*! \file Attribute.h
9
10	BDataIO wrapper around a given attribute for a file. (declarations)
11*/
12
13#ifndef _ATTRIBUTE_H
14#define _ATTRIBUTE_H
15
16#include <DataIO.h>
17#include <Node.h>
18#include <string>
19
20class Attribute : public BDataIO {
21public:
22	Attribute(BNode &node, const char *attribute);
23	virtual	ssize_t Read(void *buffer, size_t size);
24	virtual	ssize_t Write(const void *buffer, size_t size);
25private:
26	BNode fNode;
27	string fAttribute;
28};
29
30#endif	// _ATTRIBUTE_H
31