2 // File : NOTIFICATION_Swig.cxx
3 // Created : 10 Juin 2002
4 // Author : Francis KLOSS
6 // Module : Notification Swig
7 // Copyright : Open CASCADE
9 #include "NOTIFICATION_Swig.hxx"
11 // Swig notification supplier
12 // --------------------------
14 NOTIFICATION_Supplier_Swig::NOTIFICATION_Supplier_Swig(const char* instanceName, bool notif) {
15 _supplier = new NOTIFICATION_Supplier(instanceName, notif);
18 NOTIFICATION_Supplier_Swig::~NOTIFICATION_Supplier_Swig() {
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);
26 // Swig notification consumer
27 // --------------------------
29 NOTIFICATION_Consumer_Swig::NOTIFICATION_Consumer_Swig() {
30 _consumer = new NOTIFICATION_Consumer();
33 NOTIFICATION_Consumer_Swig::~NOTIFICATION_Consumer_Swig() {
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));