2 //=============================================================================
4 * @file Gadget_Part_Factory.h
6 * @author Christopher Kohlhoff <chris@kohlhoff.com>
8 //=============================================================================
10 #ifndef GADGET_PART_FACTORY_H
11 #define GADGET_PART_FACTORY_H
13 #include "Gadget_Part.h"
17 * @class Gadget_Part_Factory
19 * @brief Used to create Gadget_Part instances.
21 class Gadget_Part_Factory
24 /// Create an instance of a gadget. Ownership of the object is automatically
25 /// transferred to the caller since we return a Gadget_Part_var. This also
26 /// means that the object will be deleted automatically if the caller
27 /// "forgets" to collect the return value.
28 static Gadget_Part_var
create_gadget_part (Gadget_ptr owner
,
33 #endif /* GADGET_PART_FACTORY_H */