diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/Smart_Pointers/Widget_Factory.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
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 */ |