Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Smart_Pointers / Gadget_Factory.h
blob42bfce567d3a49d297da47d96646ae3ddf339887
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Gadget_Factory.h
6 * @author Christopher Kohlhoff <chris@kohlhoff.com>
7 */
8 //=============================================================================
10 #ifndef GADGET_FACTORY_H
11 #define GADGET_FACTORY_H
13 #include "Gadget.h"
15 /**
16 * @class Gadget_Factory
18 * @brief Used to create Gadget instances.
20 class Gadget_Factory
22 public:
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 */