diff --git a/src/apps/bin/makeudfimage/Attribute.cpp b/src/apps/bin/makeudfimage/Attribute.cpp new file mode 100644 index 0000000000..eb0bdd9b94 --- /dev/null +++ b/src/apps/bin/makeudfimage/Attribute.cpp @@ -0,0 +1,31 @@ +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +// +// Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net +//---------------------------------------------------------------------- + +/*! \file Attribute.h + + BDataIO wrapper around a given attribute for a file. (implementation) +*/ + +#include "Attribute.h" + +Attribute::Attribute(BNode &node, const char *attribute) + : fNode(node) + , fAttribute(attribute) +{ +} + +ssize_t +Attribute::Read(void *buffer, size_t size) +{ + return B_ERROR; +} + +ssize_t +Attribute::Write(const void *buffer, size_t size) +{ + return B_ERROR; +} diff --git a/src/apps/bin/makeudfimage/Attribute.h b/src/apps/bin/makeudfimage/Attribute.h new file mode 100644 index 0000000000..2a6f0c0697 --- /dev/null +++ b/src/apps/bin/makeudfimage/Attribute.h @@ -0,0 +1,30 @@ +//---------------------------------------------------------------------- +// This software is part of the OpenBeOS distribution and is covered +// by the OpenBeOS license. +// +// Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net +//---------------------------------------------------------------------- + +/*! \file Attribute.h + + BDataIO wrapper around a given attribute for a file. (declarations) +*/ + +#ifndef _ATTRIBUTE_H +#define _ATTRIBUTE_H + +#include +#include +#include + +class Attribute : public BDataIO { +public: + Attribute(BNode &node, const char *attribute); + virtual ssize_t Read(void *buffer, size_t size); + virtual ssize_t Write(const void *buffer, size_t size); +private: + BNode fNode; + string fAttribute; +}; + +#endif // _ATTRIBUTE_H