Sha256: 5f017104fa27ace0d69ac4fe4565a3baedf2d9de80a56d076391a0a290f90d61

Contents?: true

Size: 927 Bytes

Versions: 12

Compression:

Stored size: 927 Bytes

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
        CmdTlmServer.instance.start_logging(@packet_log_writer_name)
      end
    end

  end # class NewPacketLogProcessor

end # module Cosmos

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cosmos-3.4.2 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.4.1 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.4.0 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.3.3 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.3.2 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.3.1 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.3.0 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.2.1 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.2.0 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.1.2 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.1.1 lib/cosmos/processors/new_packet_log_processor.rb
cosmos-3.1.0 lib/cosmos/processors/new_packet_log_processor.rb