Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / Smart_Pointers / Widget_Part_Impl.h
blob01df1b593d487613312d6743141dba43de4e8a21
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Widget_Part_Impl.h
6 * @author Christopher Kohlhoff <chris@kohlhoff.com>
7 */
8 //=============================================================================
10 #ifndef WIDGET_PART_IMPL_H
11 #define WIDGET_PART_IMPL_H
13 #include "Widget_Part.h"
14 #include "Widget.h"
16 /**
17 * @class Widget_Part_Impl
19 * @brief An implementation of the Widget_Part interface.
21 class Widget_Part_Impl : public Widget_Part
23 public:
24 /// Constructor.
25 Widget_Part_Impl (Widget *owner, const char* name, int size);
27 /// Destructor.
28 virtual ~Widget_Part_Impl ();
30 /// Ask the part to print information about itself.
31 virtual void print_info ();
33 /// Ask the part to remove itself from the widget that contains it.
34 virtual void remove_from_owner ();
36 private:
37 /// The widget that contains this part.
38 Widget *owner_;
40 /// The name of this part.
41 char *name_;
43 /// The size of this part.
44 int size_;
47 #endif /* WIDGET_PART_IMPL_H */