c++/MQDB/DBObject.cpp
/* copy

  Description: Shallow copy which copies all base attributes of object 
               to new instance of same class
  Returntype : same as calling instance
  Exceptions : subclass dependent

*/
copy
Description: Shallow copy which copies all base attributes of object
to new instance of same class
Returntype : same as calling instance
Exceptions : subclass dependent
copy Description : Shallow copy which copies all base attributes of object to new instance of same class Returntype : same as calling instance Exceptions : subclass dependent
MQDB::DBObject* MQDB::DBObject::copy() {
  DBObject *copy = new MQDB::DBObject;
  copy->_primary_db_id        = _primary_db_id;
  copy->_database             = _database;
  copy->_funcptr_delete       = _funcptr_delete;
  copy->_funcptr_display_desc = _funcptr_display_desc;
  copy->_funcptr_xml          = _funcptr_xml;
  copy->_funcptr_simple_xml   = _funcptr_simple_xml;
  copy->_funcptr_mdata_xml    = _funcptr_mdata_xml;
  return copy;
}
MQDB :: DBObject * MQDB :: DBObject :: copy ( ) { DBObject * copy = new MQDB :: DBObject ; copy -> _primary_db_id = _primary_db_id ; copy -> _database = _database ; copy -> _funcptr_delete = _funcptr_delete ; copy -> _funcptr_display_desc = _funcptr_display_desc ; copy -> _funcptr_xml = _funcptr_xml ; copy -> _funcptr_simple_xml = _funcptr_simple_xml ; copy -> _funcptr_mdata_xml = _funcptr_mdata_xml ; return copy ; }
copy
Description: Shallow copy which copies all base attributes of object
to new instance of same class
Returntype : same as calling instance
Exceptions : subclass dependent
copy Description : Shallow copy which copies all base attributes of object to new instance of same class Returntype : same as calling instance Exceptions : subclass dependent