Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git] / TAO / tests / POA / Default_Servant2 / File.idl
blobf94bf938d2b087c8c2ae6615dd4775a869ac9717
2 //=============================================================================
3 /**
4 * @file File.idl
6 * A simple File Descriptor and File System IDL interface.
9 * @author Irfan Pyarali
11 //=============================================================================
14 // IDL
16 module File
18 exception IOError
20 long error;
23 interface Descriptor
25 typedef sequence<octet> DataBuffer;
27 long write (in DataBuffer buffer)
28 raises (IOError);
29 // write buffer to File
31 DataBuffer read (in long num_bytes)
32 raises (IOError);
33 // read num_bytes to DataBuffer
35 unsigned long lseek (in unsigned long offset,
36 in long whence)
37 raises (IOError);
38 // seek to offset in File from whence
40 void destroy ();
41 // destroy the descriptor
44 interface System
46 /// File open operation
47 Descriptor open (in string file_name,
48 in long flags)
49 raises (IOError);
51 oneway void shutdown ();