1/* 2 * Copyright 2006, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan A��mus <superstippi@gmx.de> 7 */ 8 9#ifndef ATTRIBUTE_SAVER_H 10#define ATTRIBUTE_SAVER_H 11 12#include <Entry.h> 13#include <String.h> 14 15#include "DocumentSaver.h" 16 17/*! Saves the HVIF to a file's attribute */ 18class AttributeSaver : public DocumentSaver { 19 public: 20 AttributeSaver(const entry_ref& ref, 21 const char* attrName); 22 virtual ~AttributeSaver(); 23 24 virtual status_t Save(Document* document); 25 26 protected: 27 entry_ref fRef; 28 BString fAttrName; 29}; 30 31#endif // ATTRIBUTE_SAVER_H 32