Fresco/Berlin/include/Berlin KitImpl.hh,1.11,1.12
Tobias Hunger <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Berlin/include/Berlin
In directory purcel:/tmp/cvs-serv22008/include/Berlin
Modified Files:
KitImpl.hh
Log Message:
Move the create template from the LayoutKit into KitImpl.hh and use it
in all Kits.
Index: KitImpl.hh
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/include/Berlin/KitImpl.hh,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- KitImpl.hh 29 May 2002 06:49:38 -0000 1.11
+++ KitImpl.hh 23 Jan 2003 22:31:01 -0000 1.12
@@ -50,6 +50,15 @@
virtual void increment();
virtual void decrement();
+
+protected:
+ template <typename I, typename Im>
+ typename I::_ptr_type create(Im *impl)
+ {
+ activate(impl);
+ return impl->_this();
+ }
+
private:
void activate(PortableServer::POA_ptr);
void deactivate();
@@ -71,6 +80,5 @@
}
return new T(repo, properties);
}
-
#endif