Class: Majoron::AntHill::SMPP::SMPPCSVOutputter

Inherits:
AntHill::TxtOutputter
  • Object
show all
Includes:
SMPPOutputterBase
Defined in:
lib/smpp_csv_outputter.rb

Instance Method Summary collapse

Methods included from SMPPOutputterBase

#get_area_format_name, #get_command_name, #get_error_name, #get_message_state_name, #get_network_error_name, #initialize_smpp_outputter_base

Methods included from ISMPPOutputter

#initialize_i_smpp_outputter

Constructor Details

#initialize(ostream, showesm = true, showfmt = true) ⇒ SMPPCSVOutputter

Returns a new instance of SMPPCSVOutputter.



27
28
29
30
31
32
# File 'lib/smpp_csv_outputter.rb', line 27

def initialize(ostream, showesm = true, showfmt = true)
	super(ostream)
	initialize_smpp_outputter_base()
	@show_esminfo = showesm
	@show_fmtinfo = showfmt
end

Instance Method Details

#output_additional_status_info_text(additional_status_info_text, len) ⇒ Object



1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'lib/smpp_csv_outputter.rb', line 1536

def output_additional_status_info_text(additional_status_info_text, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::ADDITIONAL_STATUS_INFO_TEXT
	ostream << Outputter::SEPARATOR
	if !additional_status_info_text.nil?
		buffer = AntHill::ByteBuffer.new(additional_status_info_text)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_additional_status_info_text(additional_status_info_text, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_addr_npi(addr_npi) ⇒ Object



166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/smpp_csv_outputter.rb', line 166

def output_addr_npi(addr_npi)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ADDR_NPI
	ostream << Outputter::SEPARATOR << addr_npi.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_addr_npi(addr_npi)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_addr_ton(addr_ton) ⇒ Object



152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/smpp_csv_outputter.rb', line 152

def output_addr_ton(addr_ton)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ADDR_TON
	ostream << Outputter::SEPARATOR << addr_ton.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_addr_ton(addr_ton)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_address_range(address_range) ⇒ Object



180
181
182
183
184
185
186
187
188
189
190
191
192
# File 'lib/smpp_csv_outputter.rb', line 180

def output_address_range(address_range)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ADDRESS_RANGE
	ostream << Outputter::SEPARATOR << address_range.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_address_range(address_range)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_alert_on_msg_delivery(alert_on_msg_delivery, len) ⇒ Object



833
834
835
836
837
838
839
840
841
842
843
844
845
# File 'lib/smpp_csv_outputter.rb', line 833

def output_alert_on_msg_delivery(alert_on_msg_delivery, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::ALERT_ON_MSG_DELIVERY
	ostream << Outputter::SEPARATOR << alert_on_msg_delivery.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_alert_on_msg_delivery(alert_on_msg_delivery, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_area_identifier(broadcast_area_identifier, len) ⇒ Object



711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
# File 'lib/smpp_csv_outputter.rb', line 711

def output_broadcast_area_identifier(broadcast_area_identifier, len)
	0.upto(broadcast_area_identifier.size() -1) do | i |
		# Output field
		ostream << Outputter::MANDATORY << Outputter::SEPARATOR << len[i].to_s
		ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_AREA_IDENTIFIER
		ostream << Outputter::SEPARATOR


		if broadcast_area_identifier[i].value().size()
			buffer = AntHill::ByteBuffer.new(broadcast_area_identifier[i].value())
			buffer.write_dump(ostream)

			if @show_fmtinfo
           area_format_code = 0
           if RUBY_VERSION >= "1.9.0"
             area_format_code = broadcast_area_identifier[i].value()[0].ord
           else
             area_format_code = broadcast_area_identifier[i].value()[0]
           end
				# area_format_code = broadcast_area_identifier[i].value()[0]
				area_format_name = get_area_format_name(area_format_code)
				ostream << sprintf("%s%d", Outputter::COMMA, area_format_code)
				ostream << sprintf("%s%s", Outputter::EQUAL, area_format_name)
			end
		end
		ostream << Outputter::SEPARATOR


		encoder.reset_buffer()
		encoder.encode_broadcast_area_identifier_single(broadcast_area_identifier[i], len[i])
		byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
		byte_buffer.write_dump(ostream)
		ostream << "\n"
	end
end

#output_broadcast_area_success(broadcast_area_success, len) ⇒ Object



798
799
800
801
802
803
804
805
806
807
808
809
810
# File 'lib/smpp_csv_outputter.rb', line 798

def output_broadcast_area_success(broadcast_area_success, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_AREA_SUCCESS
	ostream << Outputter::SEPARATOR << broadcast_area_success.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_area_success(broadcast_area_success, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_channel_indicator(broadcast_channel_indicator, len) ⇒ Object



847
848
849
850
851
852
853
854
855
856
857
858
859
# File 'lib/smpp_csv_outputter.rb', line 847

def output_broadcast_channel_indicator(broadcast_channel_indicator, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_CHANNEL_INDICATOR
	ostream << Outputter::SEPARATOR << broadcast_channel_indicator.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_channel_indicator(broadcast_channel_indicator, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_content_type(broadcast_content_type, len) ⇒ Object



780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
# File 'lib/smpp_csv_outputter.rb', line 780

def output_broadcast_content_type(broadcast_content_type, len)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_CONTENT_TYPE
	ostream << Outputter::SEPARATOR
	if !broadcast_content_type.nil?
		buffer = AntHill::ByteBuffer.new(broadcast_content_type)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_content_type(broadcast_content_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_content_type_info(broadcast_content_type_info, len) ⇒ Object



861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
# File 'lib/smpp_csv_outputter.rb', line 861

def output_broadcast_content_type_info(broadcast_content_type_info, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_MESSAGE_CLASS
	ostream << Outputter::SEPARATOR
	if !broadcast_content_type_info.nil?
		buffer = AntHill::ByteBuffer.new(broadcast_content_type_info)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_content_type_info(broadcast_content_type_info, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_content_type_opt(broadcast_content_type, len) ⇒ Object



1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
# File 'lib/smpp_csv_outputter.rb', line 1205

def output_broadcast_content_type_opt(broadcast_content_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_CONTENT_TYPE
	ostream << Outputter::SEPARATOR
	if !broadcast_content_type.nil?
		buffer = AntHill::ByteBuffer.new(broadcast_content_type)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_content_type(broadcast_content_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_end_time(broadcast_end_time, len) ⇒ Object



1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
# File 'lib/smpp_csv_outputter.rb', line 1568

def output_broadcast_end_time(broadcast_end_time, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_END_TIME
	ostream << Outputter::SEPARATOR << broadcast_end_time.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_end_time(broadcast_end_time, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_error_status(broadcast_error_status, len) ⇒ Object



1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
# File 'lib/smpp_csv_outputter.rb', line 1155

def output_broadcast_error_status(broadcast_error_status, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_ERROR_STATUS
	ostream << Outputter::SEPARATOR << broadcast_error_status.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_error_status(broadcast_error_status, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_frequency_interval(broadcast_frequency_interval, len) ⇒ Object



761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
# File 'lib/smpp_csv_outputter.rb', line 761

def output_broadcast_frequency_interval(broadcast_frequency_interval, len)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_FREQUENCY_INTERVAL
	ostream << Outputter::SEPARATOR
	if !broadcast_frequency_interval.nil?
		buffer = AntHill::ByteBuffer.new(broadcast_frequency_interval)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_frequency_interval(broadcast_frequency_interval, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"

end

#output_broadcast_message_class(broadcast_message_class, len) ⇒ Object



879
880
881
882
883
884
885
886
887
888
889
890
891
# File 'lib/smpp_csv_outputter.rb', line 879

def output_broadcast_message_class(broadcast_message_class, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_MESSAGE_CLASS
	ostream << Outputter::SEPARATOR << broadcast_message_class.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_message_class(broadcast_message_class, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_rep_num(broadcast_rep_num, len) ⇒ Object



747
748
749
750
751
752
753
754
755
756
757
758
759
# File 'lib/smpp_csv_outputter.rb', line 747

def output_broadcast_rep_num(broadcast_rep_num, len)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_REP_NUM
	ostream << Outputter::SEPARATOR << broadcast_rep_num.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_rep_num(broadcast_rep_num, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_broadcast_service_group(broadcast_service_group, len) ⇒ Object



893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
# File 'lib/smpp_csv_outputter.rb', line 893

def output_broadcast_service_group(broadcast_service_group, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::BROADCAST_SERVICE_GROUP
	ostream << Outputter::SEPARATOR
	if !broadcast_service_group.nil?
		buffer = AntHill::ByteBuffer.new(broadcast_service_group)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_broadcast_service_group(broadcast_service_group, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_callback_num(callback_num, len) ⇒ Object



911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
# File 'lib/smpp_csv_outputter.rb', line 911

def output_callback_num(callback_num, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::CALLBACK_NUM
	ostream << Outputter::SEPARATOR
	if !callback_num.nil?
		buffer = AntHill::ByteBuffer.new(callback_num)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_callback_num(callback_num, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_callback_num_atag(callback_num_atag, len) ⇒ Object



929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
# File 'lib/smpp_csv_outputter.rb', line 929

def output_callback_num_atag(callback_num_atag, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::CALLBACK_NUM_ATAG
	ostream << Outputter::SEPARATOR
	if !callback_num_atag.nil?
		buffer = AntHill::ByteBuffer.new(callback_num_atag)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_callback_num_atag(callback_num_atag, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_callback_num_pres_ind(callback_num_pres_ind, len) ⇒ Object



947
948
949
950
951
952
953
954
955
956
957
958
959
# File 'lib/smpp_csv_outputter.rb', line 947

def output_callback_num_pres_ind(callback_num_pres_ind, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::CALLBACK_NUM_PRES_IND
	ostream << Outputter::SEPARATOR << callback_num_pres_ind.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_callback_num_pres_ind(callback_num_pres_ind, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_data_coding(data_coding) ⇒ Object



418
419
420
421
422
423
424
425
426
427
428
429
430
# File 'lib/smpp_csv_outputter.rb', line 418

def output_data_coding(data_coding)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << data_coding.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_data_coding(data_coding)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_delivery_failure_reason(delivery_failure_reason, len) ⇒ Object



1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
# File 'lib/smpp_csv_outputter.rb', line 1522

def output_delivery_failure_reason(delivery_failure_reason, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DELIVERY_FAILURE_REASON
	ostream << Outputter::SEPARATOR << delivery_failure_reason.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_delivery_failure_reason(delivery_failure_reason, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_addr21(dest_addr) ⇒ Object



292
293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/smpp_csv_outputter.rb', line 292

def output_dest_addr21(dest_addr)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << dest_addr.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_addr21(dest_addr)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_addr65(dest_addr) ⇒ Object



306
307
308
309
310
311
312
313
314
315
316
317
318
# File 'lib/smpp_csv_outputter.rb', line 306

def output_dest_addr65(dest_addr)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << dest_addr.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_addr65(dest_addr)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_addr_npi(dest_addr_npi) ⇒ Object



278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/smpp_csv_outputter.rb', line 278

def output_dest_addr_npi(dest_addr_npi)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR_NPI
	ostream << Outputter::SEPARATOR << dest_addr_npi.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_addr_npi(dest_addr_npi)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_addr_subunit(dest_addr_subunit, len) ⇒ Object



961
962
963
964
965
966
967
968
969
970
971
972
973
# File 'lib/smpp_csv_outputter.rb', line 961

def output_dest_addr_subunit(dest_addr_subunit, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR_SUBUNIT
	ostream << Outputter::SEPARATOR << dest_addr_subunit.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_addr_subunit(dest_addr_subunit, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_addr_ton(dest_addr_ton) ⇒ Object



264
265
266
267
268
269
270
271
272
273
274
275
276
# File 'lib/smpp_csv_outputter.rb', line 264

def output_dest_addr_ton(dest_addr_ton)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR_TON
	ostream << Outputter::SEPARATOR << dest_addr_ton.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_addr_ton(dest_addr_ton)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_addresses(dest_addresses) ⇒ Object



548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'lib/smpp_csv_outputter.rb', line 548

def output_dest_addresses(dest_addresses)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDRESSES
	ostream << Outputter::SEPARATOR

	0.upto(dest_addresses.size() -1) do |i|
		# Output destination address
		ostream << Outputter::LCURLYBRACE if i == 0
		ostream << Outputter::LBRACKET << FieldsName::DESTFLAG
		ostream << Outputter::COLON << Outputter::SPACE
		ostream << dest_addresses[i].dest_flag()
		case dest_addresses[i].dest_flag()
			when DestFlag::SME_ADDRESS
				ostream << Outputter::SPACE << FieldsName::TON
				ostream << Outputter::COLON << Outputter::SPACE
				ostream << dest_addresses[i].address.ton()
				ostream << Outputter::SPACE << FieldsName::NPI
				ostream << Outputter::COLON << Outputter::SPACE
				ostream << dest_addresses[i].address.npi()
				ostream << Outputter::SPACE << FieldsName::ADDRESS
				ostream << Outputter::COLON << Outputter::SPACE
				ostream << dest_addresses[i].address.address()
			when DestFlag::DISTR_LIST_NAME
				ostream << Outputter::SPACE << FieldsName::DISTR_LIST_NAME
				ostream << Outputter::COLON << Outputter::SPACE
				ostream << dest_addresses[i].distr_list_name()
			else
				ostream << Outputter::SPACE << FieldsName::INV_DEST_FLAG
				ostream << Outputter::SPACE
		end
		ostream << Outputter::RBRACKET

		#Next or last element
		if i != dest_addresses.size() - 1
			ostream << Outputter::COMMA
		else
			ostream << Outputter::RCURLYBRACE
		end
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_addresses(dest_addresses)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_bearer_type(dest_bearer_type, len) ⇒ Object



1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
# File 'lib/smpp_csv_outputter.rb', line 1293

def output_dest_bearer_type(dest_bearer_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DEST_BEARER_TYPE
	ostream << Outputter::SEPARATOR << dest_bearer_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_bearer_type(dest_bearer_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_network_type(dest_network_type, len) ⇒ Object



1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
# File 'lib/smpp_csv_outputter.rb', line 1279

def output_dest_network_type(dest_network_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DEST_NETWORK_TYPE
	ostream << Outputter::SEPARATOR << dest_network_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_network_type(dest_network_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_subaddress(dest_subaddress, len) ⇒ Object



975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
# File 'lib/smpp_csv_outputter.rb', line 975

def output_dest_subaddress(dest_subaddress, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DEST_SUBADDRESS
	ostream << Outputter::SEPARATOR
	if !dest_subaddress.nil?
		buffer = AntHill::ByteBuffer.new(dest_subaddress)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_subaddress(dest_subaddress, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dest_telematics_id(dest_telematics_id, len) ⇒ Object



1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
# File 'lib/smpp_csv_outputter.rb', line 1307

def output_dest_telematics_id(dest_telematics_id, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DEST_TELEMATICS_ID
	ostream << Outputter::SEPARATOR << dest_telematics_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dest_telematics_id(dest_telematics_id, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_destination_port(destination_port, len) ⇒ Object



1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
# File 'lib/smpp_csv_outputter.rb', line 1265

def output_destination_port(destination_port, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DESTINATION_PORT
	ostream << Outputter::SEPARATOR << destination_port.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_destination_port(destination_port, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_display_time(display_time, len) ⇒ Object



993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
# File 'lib/smpp_csv_outputter.rb', line 993

def output_display_time(display_time, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DISPLAY_TIME
	ostream << Outputter::SEPARATOR << display_time.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_display_time(display_time, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_dpf_result(dpf_result, len) ⇒ Object



1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
# File 'lib/smpp_csv_outputter.rb', line 1554

def output_dpf_result(dpf_result, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::DPF_RESULT
	ostream << Outputter::SEPARATOR << dpf_result.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_dpf_result(dpf_result, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_error_code(error_code) ⇒ Object



681
682
683
684
685
686
687
688
689
690
691
692
693
# File 'lib/smpp_csv_outputter.rb', line 681

def output_error_code(error_code)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ERROR_CODE
	ostream << Outputter::SEPARATOR << error_code.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_error_code(error_code)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_esm_class(esm_class) ⇒ Object



320
321
322
323
324
325
326
327
328
329
330
331
332
# File 'lib/smpp_csv_outputter.rb', line 320

def output_esm_class(esm_class)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << esm_class.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_esm_class(esm_class)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_esme_addr(esme_addr) ⇒ Object



520
521
522
523
524
525
526
527
528
529
530
531
532
# File 'lib/smpp_csv_outputter.rb', line 520

def output_esme_addr(esme_addr)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ESME_ADDR
	ostream << Outputter::SEPARATOR << esme_addr.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_esme_addr(esme_addr)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_esme_addr_npi(esme_addr_npi) ⇒ Object



506
507
508
509
510
511
512
513
514
515
516
517
518
# File 'lib/smpp_csv_outputter.rb', line 506

def output_esme_addr_npi(esme_addr_npi)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ESME_ADDR_NPI
	ostream << Outputter::SEPARATOR << esme_addr_npi.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_esme_addr_npi(esme_addr_npi)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_esme_addr_ton(esme_addr_ton) ⇒ Object



492
493
494
495
496
497
498
499
500
501
502
503
504
# File 'lib/smpp_csv_outputter.rb', line 492

def output_esme_addr_ton(esme_addr_ton)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ESME_ADDR_TON
	ostream << Outputter::SEPARATOR << esme_addr_ton.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_esme_addr_ton(esme_addr_ton)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_failed_broadcast_area_identifier(failed_broadcast_area_identifier, len) ⇒ Object



1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
# File 'lib/smpp_csv_outputter.rb', line 1169

def output_failed_broadcast_area_identifier(failed_broadcast_area_identifier, len)
	0.upto(failed_broadcast_area_identifier.size() -1) do | i |
		# Output field
		ostream << Outputter::MANDATORY << Outputter::SEPARATOR << len[i].to_s
		ostream << Outputter::SEPARATOR << FieldsName::FAILED_BROADCAST_AREA_IDENTIFIER
		ostream << Outputter::SEPARATOR


		if failed_broadcast_area_identifier[i].value().size()
			buffer = AntHill::ByteBuffer.new(failed_broadcast_area_identifier[i].value())
			buffer.write_dump(ostream)

			if @show_fmtinfo
           area_format_code = 0
           if RUBY_VERSION >= "1.9.0"
             area_format_code = failed_broadcast_area_identifier[i].value()[0].ord
           else
             area_format_code = failed_broadcast_area_identifier[i].value()[0]
           end
				# area_format_code = failed_broadcast_area_identifier[i].value()[0]
				area_format_name = get_area_format_name(area_format_code)
				ostream << sprintf("%s%d", Outputter::COMMA, area_format_code)
				ostream << sprintf("%s%s", Outputter::EQUAL, area_format_name)
			end
		end
		ostream << Outputter::SEPARATOR


		encoder.reset_buffer()
		encoder.encode_failed_broadcast_area_identifier_single(failed_broadcast_area_identifier[i], len[i])
		byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
		byte_buffer.write_dump(ostream)
		ostream << "\n"
	end
end

#output_final_date(final_date) ⇒ Object



651
652
653
654
655
656
657
658
659
660
661
662
663
# File 'lib/smpp_csv_outputter.rb', line 651

def output_final_date(final_date)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::FINAL_DATE
	ostream << Outputter::SEPARATOR << final_date.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_final_date(final_date)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_header(header) ⇒ Object

Output header



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/smpp_csv_outputter.rb', line 36

def output_header(header)
	command_name = get_command_name(header.command_id())
	error_name = get_error_name(header.command_status())

	# Output command lengtht
	ostream << Outputter::HEADER << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::COMMAND_LENGTH
	ostream << Outputter::SEPARATOR << header.command_length().to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_unsigned32(header.command_length())
	byte_buffer1 = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer1.write_dump(ostream)
	ostream << "\n"

	# Output command id
	ostream << Outputter::HEADER << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::COMMAND_ID
	ostream << Outputter::SEPARATOR << Outputter::HEXSIGN
	ostream << sprintf("%X", header.command_id()) << Outputter::EQUAL
	ostream << command_name << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_unsigned32(header.command_id())
	byte_buffer2 = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer2.write_dump(ostream)
	ostream << "\n"

	# Output command status
	ostream << Outputter::HEADER << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::COMMAND_STATUS
	ostream << Outputter::SEPARATOR << header.command_status().to_s
	ostream << Outputter::EQUAL << error_name << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_unsigned32(header.command_status())
	byte_buffer3 = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer3.write_dump(ostream)
	ostream << "\n"

	# Output sequence number
	ostream << Outputter::HEADER << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SEQUENCE_NUMBER
	ostream << Outputter::SEPARATOR << header.sequence_number().to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_unsigned32(header.sequence_number())
	byte_buffer4 = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer4.write_dump(ostream)
	ostream << "\n"
end

#output_interface_version(interface_version) ⇒ Object



138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/smpp_csv_outputter.rb', line 138

def output_interface_version(interface_version)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::INTERFACE_VERSION
	ostream << Outputter::SEPARATOR << Outputter::HEXSIGN
	ostream << sprintf("%X", interface_version) << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_interface_version(interface_version)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_its_reply_type(its_reply_type, len) ⇒ Object



1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
# File 'lib/smpp_csv_outputter.rb', line 1480

def output_its_reply_type(its_reply_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::ITS_REPLY_TYPE
	ostream << Outputter::SEPARATOR << its_reply_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_its_reply_type(its_reply_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_its_session_info(its_session_info, len) ⇒ Object



1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
# File 'lib/smpp_csv_outputter.rb', line 1494

def output_its_session_info(its_session_info, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::ITS_SESSION_INFO
	ostream << Outputter::SEPARATOR << its_session_info.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_its_session_info(its_session_info, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_language_indicator(language_indicator, len) ⇒ Object



1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
# File 'lib/smpp_csv_outputter.rb', line 1007

def output_language_indicator(language_indicator, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::LANGUAGE_INDICATOR
	ostream << Outputter::SEPARATOR << language_indicator.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_language_indicator(language_indicator, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_message_id(message_id) ⇒ Object



478
479
480
481
482
483
484
485
486
487
488
489
490
# File 'lib/smpp_csv_outputter.rb', line 478

def output_message_id(message_id)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::MESSAGE_ID
	ostream << Outputter::SEPARATOR << message_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_message_id(message_id)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_message_payload(message_payload, len) ⇒ Object



1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
# File 'lib/smpp_csv_outputter.rb', line 1021

def output_message_payload(message_payload, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::MESSAGE_PAYLOAD
	ostream << Outputter::SEPARATOR
	if !message_payload.nil?
		buffer = AntHill::ByteBuffer.new(message_payload)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_message_payload(message_payload, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_message_state(message_state) ⇒ Object



665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
# File 'lib/smpp_csv_outputter.rb', line 665

def output_message_state(message_state)
	message_state_name = get_message_state_name(message_state)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::ERROR_CODE
	ostream << Outputter::SEPARATOR << message_state.to_s
	ostream << Outputter::EQUAL << message_state_name
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_message_state(message_state)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_message_state_tlv(message_state, len) ⇒ Object



695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
# File 'lib/smpp_csv_outputter.rb', line 695

def output_message_state_tlv(message_state, len)
	message_state_name = get_message_state_name(message_state)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::MESSAGE_STATE
	ostream << Outputter::SEPARATOR << message_state.to_s
	ostream << Outputter::EQUAL << message_state_name
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_message_state_tlv(message_state, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_message_state_tlv_opt(message_state, len) ⇒ Object



1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
# File 'lib/smpp_csv_outputter.rb', line 1419

def output_message_state_tlv_opt(message_state, len)
	message_state_name = get_message_state_name(message_state)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::MESSAGE_STATE
	ostream << Outputter::SEPARATOR << message_state.to_s
	ostream << Outputter::EQUAL << message_state_name
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_message_state_tlv(message_state, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_more_messages_to_send(more_messages_to_send, len) ⇒ Object



1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
# File 'lib/smpp_csv_outputter.rb', line 1363

def output_more_messages_to_send(more_messages_to_send, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::MORE_MESSAGES_TO_SEND
	ostream << Outputter::SEPARATOR << more_messages_to_send.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_more_messages_to_send(more_messages_to_send, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_ms_availability_status(ms_availability_status, len) ⇒ Object



819
820
821
822
823
824
825
826
827
828
829
830
831
# File 'lib/smpp_csv_outputter.rb', line 819

def output_ms_availability_status(ms_availability_status, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_ADDR_NPI
	ostream << Outputter::SEPARATOR << ms_availability_status.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_ms_availability_status(ms_availability_status, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_ms_msg_wait_facilities(ms_msg_wait_facilities, len) ⇒ Object



1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
# File 'lib/smpp_csv_outputter.rb', line 1452

def output_ms_msg_wait_facilities(ms_msg_wait_facilities, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::MS_MSG_WAIT_FACILITIES
	ostream << Outputter::SEPARATOR << ms_msg_wait_facilities.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_ms_msg_wait_facilities(ms_msg_wait_facilities, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_ms_validity(ms_validity, len) ⇒ Object



1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'lib/smpp_csv_outputter.rb', line 1039

def output_ms_validity(ms_validity, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::MS_VALIDITY
	ostream << Outputter::SEPARATOR << ms_validity.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_ms_validity(ms_validity, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_network_error_code(network_error_code, len) ⇒ Object



1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
# File 'lib/smpp_csv_outputter.rb', line 1435

def output_network_error_code(network_error_code, len)
	network_name = get_network_error_name(network_error_code.network_code())
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::NETWORK_ERROR_CODE
	ostream << Outputter::SEPARATOR << network_error_code.network_code.to_s
	ostream << Outputter::EQUAL << network_name.to_s
	ostream << Outputter::COMMA << network_error_code.error_code.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_network_error_code(network_error_code, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_no_unsuccess(no_unsuccess) ⇒ Object



597
598
599
600
601
602
603
604
605
606
607
608
609
# File 'lib/smpp_csv_outputter.rb', line 597

def output_no_unsuccess(no_unsuccess)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::NO_UNSUCCESS
	ostream << Outputter::SEPARATOR << no_unsuccess.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_no_unsuccess(no_unsuccess)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_number_of_dest(number_of_dest) ⇒ Object



534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/smpp_csv_outputter.rb', line 534

def output_number_of_dest(number_of_dest)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::NUMBER_OF_DEST
	ostream << Outputter::SEPARATOR << number_of_dest.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_number_of_dest(number_of_dest)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_number_of_messages(number_of_messages, len) ⇒ Object



1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
# File 'lib/smpp_csv_outputter.rb', line 1466

def output_number_of_messages(number_of_messages, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::NUMBER_OF_MESSAGES
	ostream << Outputter::SEPARATOR << number_of_messages.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_number_of_messages(number_of_messages, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_password(password) ⇒ Object



109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/smpp_csv_outputter.rb', line 109

def output_password(password)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::PASSWORD
	ostream << Outputter::SEPARATOR << password.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_password(password)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_payload_type(payload_type, len) ⇒ Object



1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
# File 'lib/smpp_csv_outputter.rb', line 1053

def output_payload_type(payload_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::PAYLOAD_TYPE
	ostream << Outputter::SEPARATOR << payload_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_payload_type(payload_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_priority_flag(priority_flag) ⇒ Object



348
349
350
351
352
353
354
355
356
357
358
359
360
# File 'lib/smpp_csv_outputter.rb', line 348

def output_priority_flag(priority_flag)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << priority_flag.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_priority_flag(priority_flag)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_privacy_indicator(privacy_indicator, len) ⇒ Object



1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
# File 'lib/smpp_csv_outputter.rb', line 1067

def output_privacy_indicator(privacy_indicator, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::PRIVACY_INDICATOR
	ostream << Outputter::SEPARATOR << privacy_indicator.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_privacy_indicator(privacy_indicator, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_protocol_id(protocol_id) ⇒ Object



334
335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/smpp_csv_outputter.rb', line 334

def output_protocol_id(protocol_id)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << protocol_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_protocol_id(protocol_id)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_qos_time_to_live(qos_time_to_live, len) ⇒ Object



1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
# File 'lib/smpp_csv_outputter.rb', line 1377

def output_qos_time_to_live(qos_time_to_live, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::QOS_TIME_TO_LIVE
	ostream << Outputter::SEPARATOR << qos_time_to_live.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_qos_time_to_live(qos_time_to_live, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_receipted_message_id(receipted_message_id, len) ⇒ Object



1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
# File 'lib/smpp_csv_outputter.rb', line 1405

def output_receipted_message_id(receipted_message_id, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::RECEIPTED_MESSAGE_ID
	ostream << Outputter::SEPARATOR << receipted_message_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_receipted_message_id(receipted_message_id, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_registered_delivery(registered_delivery) ⇒ Object



390
391
392
393
394
395
396
397
398
399
400
401
402
# File 'lib/smpp_csv_outputter.rb', line 390

def output_registered_delivery(registered_delivery)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::REGISTERED_DELIVERY
	ostream << Outputter::SEPARATOR << registered_delivery.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_registered_delivery(registered_delivery)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_replace_if_present_flag(replace_if_present_flag) ⇒ Object



404
405
406
407
408
409
410
411
412
413
414
415
416
# File 'lib/smpp_csv_outputter.rb', line 404

def output_replace_if_present_flag(replace_if_present_flag)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::DEST_ADDR
	ostream << Outputter::SEPARATOR << replace_if_present_flag.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_replace_if_present_flag(replace_if_present_flag)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sar_msg_ref_num(sar_msg_ref_num, len) ⇒ Object



1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
# File 'lib/smpp_csv_outputter.rb', line 1321

def output_sar_msg_ref_num(sar_msg_ref_num, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SAR_MSG_REF_NUM
	ostream << Outputter::SEPARATOR << sar_msg_ref_num.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_sar_msg_ref_num(sar_msg_ref_num, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sar_segment_seqnum(sar_segment_seqnum, len) ⇒ Object



1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
# File 'lib/smpp_csv_outputter.rb', line 1349

def output_sar_segment_seqnum(sar_segment_seqnum, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SAR_SEGMENT_SEQNUM
	ostream << Outputter::SEPARATOR << sar_segment_seqnum.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_sar_segment_seqnum(sar_segment_seqnum, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sar_total_segments(sar_total_segments, len) ⇒ Object



1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
# File 'lib/smpp_csv_outputter.rb', line 1335

def output_sar_total_segments(sar_total_segments, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SAR_TOTAL_SEGMENTS
	ostream << Outputter::SEPARATOR << sar_total_segments.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_sar_total_segments(sar_total_segments, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sc_interface_version(sc_interface_version, len) ⇒ Object

Methods to output optional fields



815
816
817
# File 'lib/smpp_csv_outputter.rb', line 815

def output_sc_interface_version(sc_interface_version, len)
	raise Errors::INTERFACE_NOT_IMPLEMENTED
end

#output_schedule_delivery_time(schedule_delivery_time) ⇒ Object



362
363
364
365
366
367
368
369
370
371
372
373
374
# File 'lib/smpp_csv_outputter.rb', line 362

def output_schedule_delivery_time(schedule_delivery_time)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SCHEDULE_DELIVERY_TIME
	ostream << Outputter::SEPARATOR << schedule_delivery_time.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_schedule_delivery_time(schedule_delivery_time)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_service_type(service_type) ⇒ Object



194
195
196
197
198
199
200
201
202
203
204
205
206
# File 'lib/smpp_csv_outputter.rb', line 194

def output_service_type(service_type)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SERVICE_TYPE
	ostream << Outputter::SEPARATOR << service_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_service_type(service_type)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_set_dpf(set_dpf, len) ⇒ Object



1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
# File 'lib/smpp_csv_outputter.rb', line 1391

def output_set_dpf(set_dpf, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SET_DPF
	ostream << Outputter::SEPARATOR << set_dpf.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_set_dpf(set_dpf, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_short_message(short_message) ⇒ Object



460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# File 'lib/smpp_csv_outputter.rb', line 460

def output_short_message(short_message)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SHORT_MESSAGE
	ostream << Outputter::SEPARATOR
	if !short_message.nil?
		buffer = AntHill::ByteBuffer.new(short_message)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_short_message(short_message)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sm_default_msg_id(sm_default_msg_id) ⇒ Object



432
433
434
435
436
437
438
439
440
441
442
443
444
# File 'lib/smpp_csv_outputter.rb', line 432

def output_sm_default_msg_id(sm_default_msg_id)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SM_DEFAULT_MSG_ID
	ostream << Outputter::SEPARATOR << sm_default_msg_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_sm_default_msg_id(sm_default_msg_id)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sm_length(sm_length) ⇒ Object



446
447
448
449
450
451
452
453
454
455
456
457
458
# File 'lib/smpp_csv_outputter.rb', line 446

def output_sm_length(sm_length)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SM_LENGTH
	ostream << Outputter::SEPARATOR << sm_length.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_sm_length(sm_length)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_sms_signal(sms_signal, len) ⇒ Object



1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
# File 'lib/smpp_csv_outputter.rb', line 1081

def output_sms_signal(sms_signal, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SMS_SIGNAL
	ostream << Outputter::SEPARATOR << sms_signal.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_sms_signal(sms_signal, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_addr21(source_addr) ⇒ Object



236
237
238
239
240
241
242
243
244
245
246
247
248
# File 'lib/smpp_csv_outputter.rb', line 236

def output_source_addr21(source_addr)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_ADDR
	ostream << Outputter::SEPARATOR << source_addr.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_addr21(source_addr)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_addr65(source_addr) ⇒ Object



250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'lib/smpp_csv_outputter.rb', line 250

def output_source_addr65(source_addr)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_ADDR
	ostream << Outputter::SEPARATOR << source_addr.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_addr65(source_addr)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_addr_npi(addr_npi) ⇒ Object



222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'lib/smpp_csv_outputter.rb', line 222

def output_source_addr_npi(addr_npi)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_ADDR_NPI
	ostream << Outputter::SEPARATOR << addr_npi.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_addr_npi(addr_npi)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_addr_subunit(source_addr_subunit, len) ⇒ Object



1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
# File 'lib/smpp_csv_outputter.rb', line 1095

def output_source_addr_subunit(source_addr_subunit, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_ADDR_SUBUNIT
	ostream << Outputter::SEPARATOR << source_addr_subunit.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_addr_subunit(source_addr_subunit, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_addr_ton(addr_ton) ⇒ Object



208
209
210
211
212
213
214
215
216
217
218
219
220
# File 'lib/smpp_csv_outputter.rb', line 208

def output_source_addr_ton(addr_ton)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_ADDR_TON
	ostream << Outputter::SEPARATOR << addr_ton.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_addr_ton(addr_ton)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_bearer_type(source_bearer_type, len) ⇒ Object



1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
# File 'lib/smpp_csv_outputter.rb', line 1237

def output_source_bearer_type(source_bearer_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_BEARER_TYPE
	ostream << Outputter::SEPARATOR << source_bearer_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_bearer_type(source_bearer_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_network_type(source_network_type, len) ⇒ Object



1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
# File 'lib/smpp_csv_outputter.rb', line 1223

def output_source_network_type(source_network_type, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_NETWORK_TYPE
	ostream << Outputter::SEPARATOR << source_network_type.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_network_type(source_network_type, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_port(source_port, len) ⇒ Object



1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
# File 'lib/smpp_csv_outputter.rb', line 1109

def output_source_port(source_port, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_PORT
	ostream << Outputter::SEPARATOR << source_port.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_port(source_port, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_subaddress(source_subaddress, len) ⇒ Object



1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
# File 'lib/smpp_csv_outputter.rb', line 1123

def output_source_subaddress(source_subaddress, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_SUBADDRESS
	ostream << Outputter::SEPARATOR
	if !source_subaddress.nil?
		buffer = AntHill::ByteBuffer.new(source_subaddress)
		buffer.write_dump(ostream)
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_subaddress(source_subaddress, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_source_telematics_id(source_telematics_id, len) ⇒ Object



1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
# File 'lib/smpp_csv_outputter.rb', line 1251

def output_source_telematics_id(source_telematics_id, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::SOURCE_TELEMATICS_ID
	ostream << Outputter::SEPARATOR << source_telematics_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_source_telematics_id(source_telematics_id, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_system_id(system_id) ⇒ Object

Output mandatory fields



95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/smpp_csv_outputter.rb', line 95

def output_system_id(system_id)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SYSTEM_ID
	ostream << Outputter::SEPARATOR << system_id.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_system_id(system_id)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_system_type(system_type) ⇒ Object



123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/smpp_csv_outputter.rb', line 123

def output_system_type(system_type)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::SYSTEM_TYPE
	ostream << Outputter::SEPARATOR << system_type.to_s
	ostream << Outputter::SEPARATOR


	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_system_type(system_type)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_unsuccess_smes(unsuccess_smes) ⇒ Object



611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
# File 'lib/smpp_csv_outputter.rb', line 611

def output_unsuccess_smes(unsuccess_smes)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::UNSUCCESS_SMES
	ostream << Outputter::SEPARATOR

	0.upto(unsuccess_smes.size() -1) do |i|
		# Output destination address
		ostream << Outputter::LCURLYBRACE if i == 0
		ostream << Outputter::LBRACKET << FieldsName::ERROR_STATUS_CODE
		ostream << Outputter::COLON << Outputter::SPACE
		ostream << unsuccess_smes[i].error_status_code.to_s

		ostream << Outputter::SPACE << FieldsName::TON
		ostream << Outputter::COLON << Outputter::SPACE
		ostream << unsuccess_smes[i].sme_address().ton()
		ostream << Outputter::SPACE << FieldsName::NPI
		ostream << Outputter::COLON << Outputter::SPACE
		ostream << unsuccess_smes[i].sme_address().npi()
		ostream << Outputter::SPACE << FieldsName::NPI
		ostream << Outputter::COLON << Outputter::SPACE
		ostream << unsuccess_smes[i].sme_address().address()
		ostream << Outputter::RBRACKET

		#Next or last element
		if i != unsuccess_smes.size() - 1
			ostream << Outputter::COMMA
		else
			ostream << Outputter::RCURLYBRACE
		end
	end
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_unsuccess_smes(unsuccess_smes)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_user_message_reference(user_message_reference, len) ⇒ Object



1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
# File 'lib/smpp_csv_outputter.rb', line 1141

def output_user_message_reference(user_message_reference, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::USER_MESSAGE_REFERENCE
	ostream << Outputter::SEPARATOR << user_message_reference.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_user_message_reference(user_message_reference, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_user_response_code(user_response_code, len) ⇒ Object



1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
# File 'lib/smpp_csv_outputter.rb', line 1508

def output_user_response_code(user_response_code, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::USER_RESPONSE_CODE
	ostream << Outputter::SEPARATOR << user_response_code.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_user_response_code(user_response_code, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_ussd_service_op(ussd_service_op, len) ⇒ Object



1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
# File 'lib/smpp_csv_outputter.rb', line 1583

def output_ussd_service_op(ussd_service_op, len)
	ostream << Outputter::OPTIONAL_ << Outputter::SEPARATOR << len.to_s
	ostream << Outputter::SEPARATOR << FieldsName::USSD_SERVICE_OP
	ostream << Outputter::SEPARATOR << ussd_service_op.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_ussd_service_op(ussd_service_op, len)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end

#output_validity_period(validity_period) ⇒ Object



376
377
378
379
380
381
382
383
384
385
386
387
388
# File 'lib/smpp_csv_outputter.rb', line 376

def output_validity_period(validity_period)
	ostream << Outputter::MANDATORY << Outputter::SEPARATOR
	ostream << Outputter::SEPARATOR << FieldsName::VALIDITY_PERIOD
	ostream << Outputter::SEPARATOR << validity_period.to_s
	ostream << Outputter::SEPARATOR

	# Show hex dump
	encoder.reset_buffer()
	encoder.encode_validity_period(validity_period)
	byte_buffer = AntHill::ByteBuffer.new(encoder.get_buffer())
	byte_buffer.write_dump(ostream)
	ostream << "\n"
end