// // Here we'll define interfaces for testing each CORBA type. We can // then write tests to transmit these types around and see if Fnorb's // IIOP implementation is actually working. // // // Interface for testing the "short" type. // interface Short { short shortIn(in short v); void shortOut(in short vin, out short vout); short shortInOut(in short vin, inout short vinout); }; interface Long { long longIn(in long v); void longOut(in long vin, out long vout); short longInOut(in long vin, inout long vinout); }; interface Char { char charIn(in char v); void charOut(in char vin, out char vout); char charInOut(in char vin, inout char vinout); }; interface WChar { wchar wCharIn(in wchar v); void wCharOut(in wchar vin, out wchar vout); wchar wCharInOut(in wchar vin, inout wchar vinout); }; interface WString { wstring wStringIn(in wstring v); void wStringOut(in wstring vin, out wstring vout); wstring wStringInOut(in wstring vin, inout wstring vinout); }; interface Sequence { typedef sequence SeqString; SeqString seqIn(in SeqString v); void seqOut(in SeqString vin, out SeqString vout); SeqString seqInOut(in SeqString vin, inout SeqString vinout); }; interface Fixed { typedef fixed<5, 2> FixedType; FixedType fixedIn(in FixedType v); void fixedOut(in FixedType vin, out FixedType vout); FixedType fixedInOut(in FixedType vin, inout FixedType vinout); };