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

  Description: initialization method which subclasses can extend
  Returntype : $self
  Exceptions : subclass dependent

*/
init
Description: initialization method which subclasses can extend
Returntype : $self
Exceptions : subclass dependent
init Description : initialization method which subclasses can extend Returntype : $self Exceptions : subclass dependent
void MQDB::DBObject::init() {
  _retain_count  = 1;
  _primary_db_id = -1;  
  _database      = NULL;
  _classname     = MQDB::DBObject::class_name;
  _peer_uuid     = NULL;
  _root_uuid     = NULL;
  _db_id.clear();
  _funcptr_delete       = _dbobject_default_delete_func;
  _funcptr_display_desc = _dbobject_default_display_desc_func;
  _funcptr_xml          = _dbobject_default_xml_func;
  _funcptr_simple_xml   = _dbobject_default_simple_xml_func;
  _funcptr_mdata_xml    = _dbobject_default_mdata_xml_func;
}
void MQDB :: DBObject :: init ( ) { _retain_count = 1 ; _primary_db_id = -1 ; _database = NULL ; _classname = MQDB :: DBObject :: class_name ; _peer_uuid = NULL ; _root_uuid = NULL ; _db_id . clear ( ) ; _funcptr_delete = _dbobject_default_delete_func ; _funcptr_display_desc = _dbobject_default_display_desc_func ; _funcptr_xml = _dbobject_default_xml_func ; _funcptr_simple_xml = _dbobject_default_simple_xml_func ; _funcptr_mdata_xml = _dbobject_default_mdata_xml_func ; }
init
Description: initialization method which subclasses can extend
Returntype : $self
Exceptions : subclass dependent
init Description : initialization method which subclasses can extend Returntype : $self Exceptions : subclass dependent
//internal variables minimal allocation //function pointer code