summaryrefslogtreecommitdiff
path: root/ACE/examples/Smart_Pointers/Widget_Factory.h
diff options
context:
space:
mode:
authorWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
committerWilliam R. Otte <wotte@dre.vanderbilt.edu>2006-07-24 15:50:30 +0000
commitc44379cc7d9c7aa113989237ab0f56db12aa5219 (patch)
tree66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/examples/Smart_Pointers/Widget_Factory.h
parent3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff)
downloadATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz
Repo restructuring
Diffstat (limited to 'ACE/examples/Smart_Pointers/Widget_Factory.h')
-rw-r--r--ACE/examples/Smart_Pointers/Widget_Factory.h30
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 */