2017-08-29 Fred Gleason <fredg@paravelsystems.com>

* Added an '--ignore-stops' switch to rdrender(1).
This commit is contained in:
Fred Gleason 2017-08-29 08:32:23 -04:00
parent caaa4404dc
commit 0da7f0acff
5 changed files with 37 additions and 0 deletions

View File

@ -15977,3 +15977,5 @@
* Changed the behavior of the '--last-line=' switch to be non-inclusive.
2017-08-29 Fred Gleason <fredg@paravelsystems.com>
* Updated the rdrender(1) man page.
2017-08-29 Fred Gleason <fredg@paravelsystems.com>
* Added an '--ignore-stops' switch to rdrender(1).

View File

@ -83,6 +83,19 @@
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--ignore-stops</option>
</term>
<listitem>
<para>
Treat any STOP transitions encountered as if they were PLAY.
If not given, a STOP transition will cause rendering of the log
to be terminated at that point.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--last-line=</option><replaceable>lineno</replaceable>
@ -124,6 +137,19 @@
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>--verbose</option>
</term>
<listitem>
<para>
Be verbose. Among other things, this will cause
<command>rdrender</command><manvolnum>1</manvolnum> to print
a disposition for each log event encountered to standard error.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>

View File

@ -67,6 +67,9 @@ int MainObject::MainLoop()
for(int i=0;i<log_event->size();i++) {
lls.push_back(new LogLine(log_event->logLine(i),render_user,render_station,
render_system,render_config,render_channels));
if(render_ignore_stops&&(lls.back()->transType()==RDLogLine::Stop)) {
lls.back()->setTransType(RDLogLine::Play);
}
if((!render_first_time.isNull())&&
(lls.back()->timeType()==RDLogLine::Hard)&&
(render_first_line==-1)&&

View File

@ -44,6 +44,7 @@ MainObject::MainObject(QObject *parent)
render_channels=RDRENDER_DEFAULT_CHANNELS;
render_first_line=-1;
render_last_line=-1;
render_ignore_stops=false;
//
// Read Command Options
@ -90,6 +91,10 @@ MainObject::MainObject(QObject *parent)
}
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--ignore-stops") {
render_ignore_stops=true;
cmd->setProcessed(i,true);
}
if(cmd->key(i)=="--last-time") {
render_last_time=QTime::fromString(cmd->value(i));
if(!render_last_time.isValid()) {

View File

@ -68,6 +68,7 @@ class MainObject : public QObject
int render_last_line;
QTime render_first_time;
QTime render_last_time;
bool render_ignore_stops;
RDRipc *render_ripc;
RDStation *render_station;
RDSystem *render_system;