Salome HOME
f7a8ea54e8f0340977b360a915bdbc7c11c79994
[modules/kernel.git] / src / NOTIFICATION_SWIG / NOTIFICATION_Swig.cxx
1 using namespace std;
2 //  File      : NOTIFICATION_Swig.cxx
3 //  Created   : 10 Juin 2002
4 //  Author    : Francis KLOSS
5 //  Project   : SALOME
6 //  Module    : Notification Swig
7 //  Copyright : Open CASCADE
8
9 #include "NOTIFICATION_Swig.hxx"
10
11 // Swig notification supplier
12 // --------------------------
13
14 NOTIFICATION_Supplier_Swig::NOTIFICATION_Supplier_Swig(const char* instanceName, bool notif) {
15     _supplier = new NOTIFICATION_Supplier(instanceName, notif);
16 }
17
18 NOTIFICATION_Supplier_Swig::~NOTIFICATION_Supplier_Swig() {
19     delete _supplier;
20 }
21
22 void NOTIFICATION_Supplier_Swig::Send(const char* graph, const char* node, const char* type, const char* message) {
23     _supplier->Send(graph, node, type, message);
24 }
25
26 // Swig notification consumer
27 // --------------------------
28
29 NOTIFICATION_Consumer_Swig::NOTIFICATION_Consumer_Swig() {
30     _consumer = new NOTIFICATION_Consumer();
31 }
32
33 NOTIFICATION_Consumer_Swig::~NOTIFICATION_Consumer_Swig() {
34     delete _consumer;
35 }
36
37 bool NOTIFICATION_Consumer_Swig::Receive(char** graph, char** node, char** type, char** message, char** sender, long* counter, char** date, long* stamp) {
38     return(_consumer->Receive(graph, node, type, message, sender, counter, date, stamp));
39 }