summaryrefslogtreecommitdiff
path: root/ACE/examples/Smart_Pointers/Widget_Part.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Smart_Pointers/Widget_Part.h')
-rw-r--r--ACE/examples/Smart_Pointers/Widget_Part.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ACE/examples/Smart_Pointers/Widget_Part.h b/ACE/examples/Smart_Pointers/Widget_Part.h
new file mode 100644
index 00000000000..7e1f0b575a9
--- /dev/null
+++ b/ACE/examples/Smart_Pointers/Widget_Part.h
@@ -0,0 +1,33 @@
+/* -*- C++ -*- */
+//=============================================================================
+/**
+ * @file Widget_Part.h
+ *
+ * $Id$
+ *
+ * @author Christopher Kohlhoff <chris@kohlhoff.com>
+ */
+//=============================================================================
+
+#ifndef WIDGET_PART_H
+#define WIDGET_PART_H
+
+/**
+ * @class Widget_Part
+ *
+ * @brief An interface for some high-level application object.
+ */
+class Widget_Part
+{
+public:
+ /// Destructor.
+ virtual ~Widget_Part (void);
+
+ /// Ask the part to print information about itself.
+ virtual void print_info (void) = 0;
+
+ /// Ask the part to remove itself from the widget that contains it.
+ virtual void remove_from_owner (void) = 0;
+};
+
+#endif /* WIDGET_PART_H */