diff options
Diffstat (limited to 'ACE/examples/Smart_Pointers/Widget_Factory.h')
-rw-r--r-- | ACE/examples/Smart_Pointers/Widget_Factory.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/ACE/examples/Smart_Pointers/Widget_Factory.h b/ACE/examples/Smart_Pointers/Widget_Factory.h new file mode 100644 index 00000000000..adf0613a3fe --- /dev/null +++ b/ACE/examples/Smart_Pointers/Widget_Factory.h @@ -0,0 +1,30 @@ +/* -*- C++ -*- */ +//============================================================================= +/** + * @file Widget_Factory.h + * + * $Id$ + * + * @author Christopher Kohlhoff <chris@kohlhoff.com> + */ +//============================================================================= + +#ifndef WIDGET_FACTORY_H +#define WIDGET_FACTORY_H + +#include "Widget.h" + +/** + * @class Widget_Factory + * + * @brief Used to create Widget instances. + */ +class Widget_Factory +{ +public: + /// Create an instance of a widget. Ownership of the newly created object is + /// transferred to the caller. + static Widget *create_widget (void); +}; + +#endif /* WIDGET_FACTORY_H */ |