2 # Autogenerated by Thrift
4 # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
8 require 'thrift/protocol'
9 require File.dirname(__FILE__) + '/graphicserver_types'
13 include Thrift::Client
21 send_message('usi2png', Usi2png_args, :usi => usi)
25 result = receive_message(Usi2png_result)
26 return result.success unless result.success.nil?
27 raise Thrift::ApplicationException.new(Thrift::ApplicationException::MISSING_RESULT, 'usi2png failed: unknown result')
33 include Thrift::Processor
35 def process_usi2png(seqid, iprot, oprot)
36 args = read_args(iprot, Usi2png_args)
37 result = Usi2png_result.new()
38 result.success = @handler.usi2png(args.usi)
39 write_result(result, oprot, 'usi2png', seqid)
44 # HELPER FUNCTIONS AND STRUCTURES
47 include Thrift::Struct
50 Thrift::Struct.field_accessor self, :usi
52 USI => {:type => Thrift::Types::STRING, :name => 'usi'}
60 include Thrift::Struct
63 Thrift::Struct.field_accessor self, :success
65 SUCCESS => {:type => Thrift::Types::STRING, :name => 'success'}