Merge branch 'master' into jwi-bcc64xsingletonwarning
[ACE_TAO.git] / ACE / examples / Smart_Pointers / Gadget_Part_Factory.h
blob5ab70287904134581b9d8196efaeedfa294de6ab
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Gadget_Part_Factory.h
6 * @author Christopher Kohlhoff <chris@kohlhoff.com>
7 */
8 //=============================================================================
10 #ifndef GADGET_PART_FACTORY_H
11 #define GADGET_PART_FACTORY_H
13 #include "Gadget_Part.h"
14 #include "Gadget.h"
16 /**
17 * @class Gadget_Part_Factory
19 * @brief Used to create Gadget_Part instances.
21 class Gadget_Part_Factory
23 public:
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,
29 const char *name,
30 int size);
33 #endif /* GADGET_PART_FACTORY_H */