summaryrefslogtreecommitdiff
path: root/trunk/ACE/examples/Smart_Pointers/Widget_Factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ACE/examples/Smart_Pointers/Widget_Factory.h')
-rw-r--r--trunk/ACE/examples/Smart_Pointers/Widget_Factory.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/trunk/ACE/examples/Smart_Pointers/Widget_Factory.h b/trunk/ACE/examples/Smart_Pointers/Widget_Factory.h
new file mode 100644
index 00000000000..adf0613a3fe
--- /dev/null
+++ b/trunk/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 */