Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / ACE / examples / Smart_Pointers / Widget_Factory.h
blob792da334295a606ebb663da1a8ad40dfd1a593c2
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Widget_Factory.h
6 * @author Christopher Kohlhoff <chris@kohlhoff.com>
7 */
8 //=============================================================================
10 #ifndef WIDGET_FACTORY_H
11 #define WIDGET_FACTORY_H
13 #include "Widget.h"
15 /**
16 * @class Widget_Factory
18 * @brief Used to create Widget instances.
20 class Widget_Factory
22 public:
23 /// Create an instance of a widget. Ownership of the newly created object is
24 /// transferred to the caller.
25 static Widget *create_widget ();
28 #endif /* WIDGET_FACTORY_H */