Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 7b866fe

Browse files
author
Ingvord
authored
remove NotifdEvent (#295)
* Progress: remove NotifdEventConsumer * Progress: remove NotifdEventSupplier * Progress: move EventConsumer related stuff to even_consumer.cxx * handle rebase * Progress: fix size test * Progress: change source files extension * Progress: move tpp file * Progress: resolve after rebase mess * Progress: fix some codacy * Fix typo * Progress: remove omniCOS dependency * Progress: more clean-ups
1 parent 4b0705e commit 7b866fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+14085
-16254
lines changed

configure/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,13 @@ endif(IDL_BASE)
2121
if(OMNI_BASE)
2222
message("Using OMNI_BASE=${OMNI_BASE}")
2323
set(OMNIORB_PKG_INCLUDE_DIRS ${OMNI_BASE}/include)
24-
set(OMNIORB_PKG_LIBRARIES "-lomniORB4 -lomnithread -lCOS4 -lomniDynamic4")
24+
set(OMNIORB_PKG_LIBRARIES "-lomniORB4 -lomnithread -lomniDynamic4")
2525
set(OMNIIDL_PATH ${OMNI_BASE}/bin/)
2626
include_directories(${OMNI_BASE}/include)
2727
link_directories(${OMNI_BASE}/lib)
2828
else(OMNI_BASE)
2929
#CORBA
3030
pkg_search_module(OMNIORB_PKG REQUIRED omniORB4)
31-
#COS
32-
pkg_search_module(OMNICOS_PKG REQUIRED omniCOS4)
3331
#dynamic CORBA
3432
pkg_search_module(OMNIDYN_PKG REQUIRED omniDynamic4)
3533
if(NOT OMNIORB_PKG_FOUND)

include/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ set(CLIENT_HELPERS
5656
tango/client/helpers/Xstring.h)
5757

5858
set(CLIENT_TEMPLATES
59-
tango/client/event.tpp
6059
tango/client/devapi_attr.tpp
6160
tango/client/devapi_utils.tpp
6261
tango/client/api_util.tpp
63-
tango/client/devapi_pipe.tpp)
62+
tango/client/devapi_pipe.tpp
63+
tango/client/event_consumer.tpp)
6464

6565
set(SERVER_HEADERS tango/server/attrdesc.h
6666
tango/server/attribute.h

include/tango/client/ApiUtil.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,14 +206,8 @@ namespace Tango {
206206
// EventConsumer related methods
207207
//
208208

209-
void create_notifd_event_consumer();
210-
211209
void create_zmq_event_consumer();
212210

213-
bool is_notifd_event_consumer_created() { return notifd_event_consumer != NULL; }
214-
215-
NotifdEventConsumer *get_notifd_event_consumer();
216-
217211
bool is_zmq_event_consumer_created() { return zmq_event_consumer != NULL; }
218212

219213
ZmqEventConsumer *get_zmq_event_consumer();
@@ -285,7 +279,6 @@ namespace Tango {
285279
ApiUtilExt *ext; // Class extension
286280
#endif
287281

288-
NotifdEventConsumer *notifd_event_consumer;
289282
TangoSys_Pid cl_pid;
290283
int user_connect_timeout;
291284
ZmqEventConsumer *zmq_event_consumer;

include/tango/client/Database.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1902,9 +1902,7 @@ namespace Tango {
19021902

19031903
void reread_filedatabase();
19041904

1905-
void write_event_channel_ior_filedatabase(string &);
1906-
1907-
void build_connection();
1905+
void build_connection();
19081906

19091907
void post_reconnection();
19101908

include/tango/client/devapi.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ namespace Tango {
6464

6565
class AsynReq;
6666

67-
class NotifdEventConsumer;
68-
6967
class ZmqEventConsumer;
7068

7169
class CallBack;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//
2+
// Created by ingvord on 10/24/16.
3+
//
4+
5+
#pragma once
6+
7+
8+
//+-----------------------------------------------------------------------------------------------------------------
9+
//
10+
// method :
11+
// EventConsumer::attr_to_device()
12+
//
13+
// description :
14+
// Method to initialize in the DeviceAttribute instance given to the user the attribute value which are received
15+
// in a AttrValUnion (or in a class inheriting from)
16+
//
17+
// argument :
18+
// in :
19+
// - attr_value :
20+
// out :
21+
// - dev_attr :
22+
//
23+
//-------------------------------------------------------------------------------------------------------------------
24+
template <typename T>
25+
inline void Tango::EventConsumer::base_attr_to_device(const T *attr_value,DeviceAttribute *dev_attr)
26+
{
27+
dev_attr->name = attr_value->name;
28+
dev_attr->quality = attr_value->quality;
29+
dev_attr->time = attr_value->time;
30+
dev_attr->dim_x = attr_value->r_dim.dim_x;
31+
dev_attr->dim_y = attr_value->r_dim.dim_y;
32+
dev_attr->set_w_dim_x(attr_value->w_dim.dim_x);
33+
dev_attr->set_w_dim_y(attr_value->w_dim.dim_y);
34+
dev_attr->err_list = new DevErrorList(attr_value->err_list);
35+
dev_attr->data_format = attr_value->data_format;
36+
37+
if (dev_attr->quality != Tango::ATTR_INVALID)
38+
{
39+
att_union_to_device(&attr_value->zvalue,dev_attr);
40+
}
41+
}

0 commit comments

Comments
 (0)