diff options
Diffstat (limited to 'ACE/examples/Smart_Pointers/Gadget_Part_Factory.cpp')
-rw-r--r-- | ACE/examples/Smart_Pointers/Gadget_Part_Factory.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ACE/examples/Smart_Pointers/Gadget_Part_Factory.cpp b/ACE/examples/Smart_Pointers/Gadget_Part_Factory.cpp new file mode 100644 index 00000000000..caf546fffce --- /dev/null +++ b/ACE/examples/Smart_Pointers/Gadget_Part_Factory.cpp @@ -0,0 +1,20 @@ +/* -*- C++ -*- */ +//============================================================================= +/** + * @file Gadget_Part_Factory.cpp + * + * $Id$ + * + * @author Christopher Kohlhoff <chris@kohlhoff.com> + */ +//============================================================================= + +#include "Gadget_Part_Factory.h" +#include "Gadget_Part_Impl.h" + +Gadget_Part_var Gadget_Part_Factory::create_gadget_part (Gadget_ptr owner, + const char* name, + int size) +{ + return Gadget_Part_var (new Gadget_Part_Impl (owner, name, size)); +} |