#ifndef MESSAGE_EXPORTER_H
#define MESSAGE_EXPORTER_H
#include "Exporter.h"
class BMessage;
class BPositionIO;
_BEGIN_ICON_NAMESPACE
template <class Type> class Container;
class Icon;
class Shape;
class Style;
class Transformer;
class VectorPath;
_END_ICON_NAMESPACE
class MessageExporter : public Exporter {
public:
MessageExporter();
virtual ~MessageExporter();
virtual status_t Export(const Icon* icon,
BPositionIO* stream);
virtual const char* MIMEType();
private:
status_t _Export(const VectorPath* path,
BMessage* into) const;
status_t _Export(const Style* style,
BMessage* into) const;
status_t _Export(const Shape* shape,
const Container<VectorPath>* globalPaths,
const Container<Style>* globalStyles,
BMessage* into) const;
};
#endif