(self, data_value)
Convert provided int to language specific literal.
Convert provided int to language specific literal.
Convert provided int to language specific literal .
def _Int(self, data_value):
    """Convert provided int to language specific literal."""
    # Available types can be found in class variables
    code_types = {
        'int16': '%s',
        'uint16': '%s',
        'int32': '%s',
        'uint32': '%s',
        'int64': '%sL',
        'uint64': '%sL',
        }
    try:
      return code_types[data_value.code_type] % long(data_value.value)
    except KeyError:
      raise ValueError(
          ('Provided DataValue (%s) does not present an appropriate C++ '
           'annotated code type (%s).') %
          (data_value.value, data_value.code_type))
def _Int ( self , data_value ) : # Available types can be found in class variables code_types = { 'int16' : '%s' , 'uint16' : '%s' , 'int32' : '%s' , 'uint32' : '%s' , 'int64' : '%sL' , 'uint64' : '%sL' , } try : return code_types [ data_value . code_type ] % long ( data_value . value ) except KeyError : raise ValueError ( ( 'Provided DataValue (%s) does not present an appropriate C++ ' 'annotated code type (%s).' ) % ( data_value . value , data_value . code_type ) )