Commit f0a68744 authored by claes's avatar claes

RemnodeMQ added in remnode table

parent 3ecfcfa4
/*
* Proview $Id: xtt_xnav_tables.cpp,v 1.12 2006-06-15 12:17:40 claes Exp $
* Proview $Id: xtt_xnav_tables.cpp,v 1.13 2006-07-27 10:18:20 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -1332,7 +1332,7 @@ int XNav::show_remnode()
strcpy( th.title[th.table_cnt++], "Description");
new ItemTableHeader( brow, this, "Title", &th, NULL, flow_eDest_IntoLast);
for ( int i = 0; i < 6; i++) {
for ( int i = 0; i < 7; i++) {
switch ( i) {
case 0: cid = pwr_cClass_RemnodeUDP; break;
case 1: cid = pwr_cClass_RemnodeTCP; break;
......@@ -1340,6 +1340,7 @@ int XNav::show_remnode()
case 3: cid = pwr_cClass_RemnodeALCM; break;
case 4: cid = pwr_cClass_RemnodeSerial; break;
case 5: cid = pwr_cClass_RemnodeModbus; break;
case 6: cid = pwr_cClass_RemnodeMQ; break;
}
sts = gdh_GetClassList( cid, &objid);
......@@ -1382,6 +1383,11 @@ int XNav::show_remnode()
strncpy( description, ((pwr_sClass_RemnodeModbus *)object_ptr)->Description,
sizeof(description));
break;
case 6:
strncpy( id, ((pwr_sClass_RemnodeMQ *)object_ptr)->Id, sizeof(id));
strncpy( description, ((pwr_sClass_RemnodeMQ *)object_ptr)->Description,
sizeof(description));
break;
}
t.elem_cnt = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment