/* * Copyright 2006, Haiku. All rights reserved. * Distributed under the terms of the MIT License. * * Authors: * Stephan Aßmus */ #ifndef ATTRIBUTE_SAVER_H #define ATTRIBUTE_SAVER_H #include #include #include "DocumentSaver.h" /*! Saves the HVIF to a file's attribute */ class AttributeSaver : public DocumentSaver { public: AttributeSaver(const entry_ref& ref, const char* attrName); virtual ~AttributeSaver(); virtual status_t Save(Document* document); protected: entry_ref fRef; BString fAttrName; }; #endif // ATTRIBUTE_SAVER_H