summaryrefslogtreecommitdiff
path: root/ACE/examples/Smart_Pointers/Widget_Part_Factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Smart_Pointers/Widget_Part_Factory.h')
-rw-r--r--ACE/examples/Smart_Pointers/Widget_Part_Factory.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/ACE/examples/Smart_Pointers/Widget_Part_Factory.h b/ACE/examples/Smart_Pointers/Widget_Part_Factory.h
new file mode 100644
index 00000000000..4902ab91c40
--- /dev/null
+++ b/ACE/examples/Smart_Pointers/Widget_Part_Factory.h
@@ -0,0 +1,31 @@
+/* -*- C++ -*- */
+//=============================================================================
+/**
+ * @file Widget_Part_Factory.h
+ *
+ * $Id$
+ *
+ * @author Christopher Kohlhoff <chris@kohlhoff.com>
+ */
+//=============================================================================
+
+#ifndef WIDGET_PART_FACTORY_H
+#define WIDGET_PART_FACTORY_H
+
+#include "Widget_Part.h"
+#include "Widget.h"
+
+/**
+ * @class Widget_Part_Factory
+ *
+ * @brief Used to create Widget_Part instances.
+ */
+class Widget_Part_Factory
+{
+public:
+ /// Create an instance of a widget part. Ownership of the newly created
+ /// object is transferred to the caller.
+ static Widget_Part *create_widget_part (Widget *owner, const char *name, int size);
+};
+
+#endif /* WIDGET_PART_FACTORY_H */