vfs: check userland buffers before reading them.
[haiku.git] / src / libs / icon / transformer / TransformerFactory.h
blob087f541acc16d2fe973ccecfa3576f96474f2c68
1 /*
2 * Copyright 2006-2007, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef TRANSFORMER_FACTORY_H
9 #define TRANSFORMER_FACTORY_H
12 #include <String.h>
14 #include "IconBuild.h"
17 class BMessage;
20 _BEGIN_ICON_NAMESPACE
23 class Transformer;
24 class VertexSource;
26 class TransformerFactory {
27 public:
29 static Transformer* TransformerFor(uint32 type,
30 VertexSource& source);
32 static Transformer* TransformerFor(BMessage* archive,
33 VertexSource& source);
35 #ifdef ICON_O_MATIC
36 static bool NextType(int32* cookie,
37 uint32* type,
38 BString* name);
40 #endif // ICON_O_MATIC
44 _END_ICON_NAMESPACE
47 #endif // TRANSFORMER_FACTORY_H