2 //=============================================================================
4 * @file Gadget_Factory.h
6 * @author Christopher Kohlhoff <chris@kohlhoff.com>
8 //=============================================================================
10 #ifndef GADGET_FACTORY_H
11 #define GADGET_FACTORY_H
16 * @class Gadget_Factory
18 * @brief Used to create Gadget instances.
23 /// Create an instance of a gadget. Ownership of the object is automatically
24 /// transferred to the caller since we return a Gadget_var. This also means
25 /// that the object will be deleted automatically if the caller "forgets" to
26 /// collect the return value.
27 static Gadget_var
create_gadget ();
30 #endif /* GADGET_FACTORY_H */