qmca  0.0.20
qmcaepicsinterface.cpp
Go to the documentation of this file.
1 #include "qmcaepicsinterface.h"
2 #include <cadef.h>
3 
4 #include <stdio.h>
5 
7  : QObject(),
8  m_Application(app)
9 {
10  int stat;
11 
12  stat = ca_context_create(ca_enable_preemptive_callback);
13 
14  if (stat != ECA_NORMAL) {
15  printf("ca_context_create failed:\n%s\n", ca_message(stat));
16  return;
17  }
18 }
19 
21 {
22  ca_context_destroy();
23 }
QmcaEpicsInterface(QmcaApplication *app)