Sha256: 48047628c5e4901c2eea8bdf74632b252ba996653909f13fb03514ba8206a2c5
Contents?: true
Size: 1.09 KB
Versions: 43
Compression:
Stored size: 1.09 KB
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'cosmos/processors/processor' module Cosmos class NewPacketLogProcessor < Processor # @param packet_log_writer_name [String] Name of the packet log writer to start new logs on def initialize(packet_log_writer_name = 'ALL') super() @packet_log_writer_name = packet_log_writer_name end # Create a new log file # # See Processor#call def call(packet, buffer) if CmdTlmServer.instance and $0 !~ /Replay/ CmdTlmServer.instance.start_logging(@packet_log_writer_name) end end # Convert to configuration file string def to_config " PROCESSOR #{@name} #{self.class.name.to_s.class_name_to_filename} #{@packet_log_writer_name}\n" end end # class NewPacketLogProcessor end # module Cosmos
Version data entries
43 entries across 43 versions & 1 rubygems