2022-10-30 Fred Gleason <fredg@paravelsystems.com>

* Refactored rdcatch(1) to use the notification mechanism instead of
	the 'PurgeEvent' command.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-10-30 16:52:44 -04:00
parent 6bc518b515
commit 96dc57685c
6 changed files with 9 additions and 67 deletions

View File

@@ -216,19 +216,6 @@ bool RDCatchEvent::read(const QString &str)
}
}
if(ok&&(op==RDCatchEvent::PurgeEventOp)) {
if(f0.size()!=4) {
return false;
}
unsigned id=f0.at(3).toUInt(&ok);
if(ok) {
d_operation=op;
d_host_name=f0.at(1);
d_event_id=id;
return true;
}
}
return false;
}
@@ -261,10 +248,6 @@ QString RDCatchEvent::write() const
ret+=QString::asprintf(" %d",d_cut_number);
break;
case RDCatchEvent::PurgeEventOp:
ret+=QString::asprintf(" %u",d_event_id);
break;
case RDCatchEvent::DeckStatusQueryOp:
case RDCatchEvent::NullOp:
case RDCatchEvent::LastOp:
@@ -307,11 +290,6 @@ QString RDCatchEvent::dump() const
ret+=QString::asprintf("cut number: %d\n",d_cut_number);
break;
case RDCatchEvent::PurgeEventOp:
ret+="operation: RDCatchEvent::PurgeEventOpOp\n";
ret+=QString::asprintf("event id: %u\n",d_event_id);
break;
case RDCatchEvent::NullOp:
case RDCatchEvent::LastOp:
break;

View File

@@ -31,7 +31,7 @@ class RDCatchEvent
public:
enum Operation {NullOp=0,DeckEventProcessedOp=1,
DeckStatusQueryOp=2,DeckStatusResponseOp=3,
PurgeEventOp=4,LastOp=5};
LastOp=5};
RDCatchEvent(RDDeck::Status status);
RDCatchEvent();
Operation operation() const;