COPASI API  4.16.103
CQThread.cpp
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQThread.cpp,v $
3 // $Revision: 1.2 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:38:00 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 #include "CQThread.h"
15 
17  QThread(),
18  mpClass(NULL),
19  mpMethod(NULL)
20 {}
21 
22 CQThread::CQThread(DataModelGUI * pClass, void (DataModelGUI::*pMethod)()):
23  QThread(),
24  mpClass(pClass),
25  mpMethod(pMethod)
26 {}
27 
29 {}
30 
31 // virtual
33 {
34  try
35  {
36  (*mpClass.*mpMethod)();
37  }
38 
39  catch (...)
40  {}
41 }
virtual void run()
Definition: CQThread.cpp:32
~CQThread()
Definition: CQThread.cpp:28
void(DataModelGUI::* mpMethod)()
Definition: CQThread.h:28
DataModelGUI * mpClass
Definition: CQThread.h:27
CQThread()
Definition: CQThread.cpp:16