rcs.nml
Class PackedFormatConverter

java.lang.Object
  extended by rcs.nml.NMLFormatConverter
      extended by rcs.nml.NMLFormatConverterBase
          extended by rcs.nml.PackedFormatConverter

public class PackedFormatConverter
extends NMLFormatConverterBase

The PackedFormatConverter converts NML message classes to Packed. Most users should not use it directly.

 Related Documentation:
 RCS Library, NML Programmers Guide (Java Version)

 


Field Summary
static byte[] align_bytes
           
static boolean auto_align
           
 boolean data_has_64bit_longs
           
 boolean l64_mode
           
 
Fields inherited from class rcs.nml.NMLFormatConverterBase
base_class_name, bytes_in_input_stream, bytes_in_input_stream_known, check_unsigneds, class_name, class_var_name, debug_on, decoding, diagnostics_mode, diagnostics_mode_string_max, first_format_error, first_update_error_occured, hide_errors, input_stream, input_string, input_string_tokenizer, msg_dict, msg_size, next_default, nfceci, output_stream, output_string_buffer, raw_data_size, save_var_names, updating_unsigned, use_string, var_name, var_name_list
 
Fields inherited from class rcs.nml.NMLFormatConverter
add_array_indexes_to_name, always_update_cmd_msg, always_update_stat_msg, array_val, bufName, bytes_not_used_warning_given, classVarArrayIndex, cmd_msg_updated, error_in_update, error_in_update_string, msg_to_update, msg_type, sending_short, stat_msg_updated, tokens_not_used_warning_given, type_string
 
Constructor Summary
PackedFormatConverter(boolean _l64_mode)
           
 
Method Summary
 void align(int align_factor)
           
 byte[] convertMsgToRawData(NMLmsg _msg)
           
 void HandleErrorInUpdate(java.lang.Exception e)
           
 void start_updates()
           
 java.lang.String toString()
           
 boolean update(boolean x)
           
 byte update(byte x)
           
 void update(byte[] x, int num_elements)
           
 char update(char x)
           
 void update(char[] x, int num_elements)
           
 double update(double x)
           
 void update(double[] x, int num_elements)
           
 float update(float x)
           
 void update(float[] x, int num_elements)
           
 int update(int x)
           
 void update(int[] x, int num_elements)
           
 long update(long x)
           
 void update(long[] x, int num_elements)
           
 short update(short x)
           
 void update(short[] x, int num_elements)
           
 void waste(int bytes_to_waste)
           
 
Methods inherited from class rcs.nml.NMLFormatConverterBase
add_to_output_string, beginBaseClass, beginClass, beginClassArrayElem, beginClassVar, check_type_info, convertMsgToRawData, convertMsgToString, convertRawDataToMsg, convertStringToMsg, endBaseClass, endClass, endClassArrayElem, endClassVar, get_decoding, get_diagnostics_mode_string_max, get_diagnostics_mode, get_length_of_unbounded, get_raw_data_size, get_token_count, get_use_string, GetMessageDictionary, getMessageFromInputStream, getVersionString, next_update_default, rewind, sendMsgToOutputStream, set_diagnostics_mode_string_max, set_diagnostics_mode, set_do_not_print_diag_overflow_err, SetBufName, SetErrorInUpdate, SetFormatConvertErrCallback, SetMessageDictionary, throw_away_token, update_attribute_enumeration_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_attribute_with_name, update_CMS_DATE, update_CMS_TIME, update_dla_length_with_name, update_enumeration_array_with_name, update_enumeration_with_name, update_pre_check, update_unbounded_attribute_with_name, update_unbounded_unsigned_with_name, update_unbounded_unsigned_with_name, update_unbounded_unsigned_with_name, update_unbounded_unsigned_with_name, update_unbounded_with_name, update_unbounded_with_name, update_unbounded_with_name, update_unbounded_with_name, update_unbounded_with_name, update_unbounded_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned_with_name, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_unsigned, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update_with_name, update
 
Methods inherited from class rcs.nml.NMLFormatConverter
set_array_val, set_classVarArrayIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

align_bytes

public static byte[] align_bytes

auto_align

public static boolean auto_align

data_has_64bit_longs

public boolean data_has_64bit_longs

l64_mode

public boolean l64_mode
Constructor Detail

PackedFormatConverter

public PackedFormatConverter(boolean _l64_mode)
Method Detail

HandleErrorInUpdate

public void HandleErrorInUpdate(java.lang.Exception e)

toString

public java.lang.String toString()
Overrides:
toString in class NMLFormatConverter

align

public void align(int align_factor)
           throws java.lang.Exception
Throws:
java.lang.Exception

waste

public void waste(int bytes_to_waste)
           throws java.lang.Exception
Throws:
java.lang.Exception

start_updates

public void start_updates()
Overrides:
start_updates in class NMLFormatConverterBase

update

public boolean update(boolean x)
Overrides:
update in class NMLFormatConverterBase

update

public byte update(byte x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(byte[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public char update(char x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(char[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public short update(short x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(short[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public int update(int x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(int[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public long update(long x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(long[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public float update(float x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(float[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

update

public double update(double x)
Specified by:
update in class NMLFormatConverterBase

update

public void update(double[] x,
                   int num_elements)
Specified by:
update in class NMLFormatConverterBase

convertMsgToRawData

public byte[] convertMsgToRawData(NMLmsg _msg)
                           throws java.lang.Exception
Throws:
java.lang.Exception