btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / makeudfimage / Attribute.h
blob3a1779f37f448cb6d44d7f2066995198e15727bd
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file Attribute.h
10 BDataIO wrapper around a given attribute for a file. (declarations)
13 #ifndef _ATTRIBUTE_H
14 #define _ATTRIBUTE_H
16 #include <DataIO.h>
17 #include <Node.h>
18 #include <string>
20 class Attribute : public BDataIO {
21 public:
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);
25 private:
26 BNode fNode;
27 string fAttribute;
30 #endif // _ATTRIBUTE_H