001 package tecgraf.openbus.DRMAA; 002 003 /** 004 * Generated from IDL alias "TimeAmount". 005 * 006 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006 007 * @version generated at Nov 3, 2010 2:32:40 PM 008 */ 009 010 public final class TimeAmountHelper 011 { 012 private static org.omg.CORBA.TypeCode _type = null; 013 014 public static void insert (org.omg.CORBA.Any any, long s) 015 { 016 any.insert_longlong(s); 017 } 018 019 public static long extract (final org.omg.CORBA.Any any) 020 { 021 return any.extract_longlong(); 022 } 023 024 public static org.omg.CORBA.TypeCode type () 025 { 026 if (_type == null) 027 { 028 _type = org.omg.CORBA.ORB.init().create_alias_tc(tecgraf.openbus.DRMAA.TimeAmountHelper.id(), "TimeAmount",org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(23))); 029 } 030 return _type; 031 } 032 033 public static String id() 034 { 035 return "IDL:tecgraf/openbus/DRMAA/TimeAmount:1.0"; 036 } 037 public static long read (final org.omg.CORBA.portable.InputStream _in) 038 { 039 long _result; 040 _result=_in.read_longlong(); 041 return _result; 042 } 043 044 public static void write (final org.omg.CORBA.portable.OutputStream _out, long _s) 045 { 046 _out.write_longlong(_s); 047 } 048 }