X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FVE7CC.pm;fp=perl%2FVE7CC.pm;h=43390fb943341472735a0f599d20d73ab3f8aa60;hb=080b937d5e6d083879e9df1dd70def745efd8839;hp=0000000000000000000000000000000000000000;hpb=c925c7a6dfc84428c5163498f9e637c1a30b3f19;p=spider.git diff --git a/perl/VE7CC.pm b/perl/VE7CC.pm new file mode 100644 index 00000000..43390fb9 --- /dev/null +++ b/perl/VE7CC.pm @@ -0,0 +1,40 @@ +# +# VE7CC variations for DXCommandmode +# +# This is done this way because a) there aren't very many and +# b) because it isn't easy to reliably rebless the object in +# flight (as it were). +# +# This could change. +# + +package VE7CC; + +use DXVars; +use DXDebug; +use DXUtil; +use Julian; +use Prefix; + +use strict; + +use vars qw($VERSION $BRANCH); +$VERSION = sprintf( "%d.%03d", q$Revision$ =~ /(\d+)\.(\d+)/ ); +$BRANCH = sprintf( "%d.%03d", q$Revision$ =~ /\d+\.\d+\.(\d+)\.(\d+)/ || (0,0)); +$main::build += $VERSION; +$main::branch += $BRANCH; + +sub dx_spot +{ + my $self = shift; # this may be useful some day + my $freq = shift; + my $spotted = shift; + my $t = shift; + + # remove interface callsign; + pop; + + return sprintf("CC11^%0.1f^%s^", $freq, $spotted) . join('^', cldate($t), ztime($t), @_); +} + +1;