]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/dbkeyg.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: Generic key support for wxDbTable
4 // Author: Roger Gammans
8 // Copyright: (c) 1999 The Computer Surgery (roger@computer-surgery.co.uk)
9 // Licence: wxWindows licence
11 // NOTE : There is no CPP file to go along with this
13 ///////////////////////////////////////////////////////////////////////////////
14 // Branched From : gkey.h,v 1.3 2001/06/01 10:31:41
15 ///////////////////////////////////////////////////////////////////////////////
23 GenericKey(void *blk
, size_t sz
) { clone(blk
,sz
); }
24 GenericKey(const GenericKey
&ref
) { clone(ref
.m_data
,ref
.m_sz
); }
25 ~GenericKey() { free(m_data
); }
27 void *GetBlk(void) const { return m_data
; }
30 void clone(void *blk
, size_t sz
)
33 memcpy(m_data
,blk
,sz
);
41 #endif // _WX_DBGKEY_H_