1 /* 2 * Copyright 2006-2007, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 #ifndef TRANSFORMER_FACTORY_H 9 #define TRANSFORMER_FACTORY_H 10 11 12 #include <String.h> 13 14 class BMessage; 15 16 17 namespace BPrivate { 18 namespace Icon { 19 20 class Transformer; 21 class VertexSource; 22 23 class TransformerFactory { 24 public: 25 26 static Transformer* TransformerFor(uint32 type, 27 VertexSource& source); 28 29 static Transformer* TransformerFor(BMessage* archive, 30 VertexSource& source); 31 32 #ifdef ICON_O_MATIC 33 static bool NextType(int32* cookie, 34 uint32* type, 35 BString* name); 36 37 #endif // ICON_O_MATIC 38 }; 39 40 } // namespace Icon 41 } // namespace BPrivate 42 43 #endif // TRANSFORMER_FACTORY_H 44