Version: 0.6.0
pointer.h
1 /******************************************************************************
2  * Project: wxGIS (GIS)
3  * Purpose: differrent classes for smart pointers, point connections, etc.
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 20014 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/core/core.h"
24 
25 #include <wx/vector.h>
26 
34 class WXDLLIMPEXP_GIS_CORE wxGISConnectionPointContainer
35 {
36 public:
38  virtual ~wxGISConnectionPointContainer(void);
39  virtual long Advise(wxEvtHandler* pEvtHandler);
40  virtual void Unadvise(long nCookie);
41 protected:
42  virtual void AddEvent(const wxEvent &event);
43  virtual void PostEvent(wxEvent *event);
44 protected:
45  wxVector<wxEvtHandler*> m_pPointsArray;
46  wxCriticalSection m_CritSectEvt;
47 };
48 
55 class WXDLLIMPEXP_GIS_CORE wxGISPointer
56 {
57 public:
58  wxGISPointer();
59  virtual ~wxGISPointer(void);
60  //ref count
61  virtual wxInt32 Reference(void);
62  virtual wxInt32 Dereference(void);
63  virtual wxInt32 Release(void);
64 protected:
65  wxInt32 m_RefCount;
66 };
Definition: pointer.h:55
Definition: pointer.h:34