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