/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/dbkeyg.h
ViewVC logotype

Annotation of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/dbkeyg.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (hide annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 9 months ago) by william
File MIME type: text/plain
File size: 1174 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 william 31 ///////////////////////////////////////////////////////////////////////////////
2     // Name: dbkeyg.h
3     // Purpose: Generic key support for wxDbTable
4     // Author: Roger Gammans
5     // Modified by:
6     // Created:
7     // RCS-ID: $Id: dbkeyg.h 29077 2004-09-10 12:56:07Z ABX $
8     // Copyright: (c) 1999 The Computer Surgery (roger@computer-surgery.co.uk)
9     // Licence: wxWindows licence
10     //
11     // NOTE : There is no CPP file to go along with this
12     //
13     ///////////////////////////////////////////////////////////////////////////////
14     // Branched From : gkey.h,v 1.3 2001/06/01 10:31:41
15     ///////////////////////////////////////////////////////////////////////////////
16    
17     #ifndef _WX_DBGKEY_H_
18     #define _WX_DBGKEY_H_
19    
20     class GenericKey
21     {
22     public:
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); }
26    
27     void *GetBlk(void) const { return m_data; }
28    
29     private:
30     void clone(void *blk, size_t sz)
31     {
32     m_data = malloc(sz);
33     memcpy(m_data,blk,sz);
34     m_sz = sz;
35     }
36    
37     void *m_data;
38     size_t m_sz;
39     };
40    
41     #endif // _WX_DBGKEY_H_

  ViewVC Help
Powered by ViewVC 1.1.22