diff options
Diffstat (limited to 'TAO/examples/POA/Default_Servant/File_i.h')
-rw-r--r-- | TAO/examples/POA/Default_Servant/File_i.h | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/TAO/examples/POA/Default_Servant/File_i.h b/TAO/examples/POA/Default_Servant/File_i.h index fdca0289a08..736789654cf 100644 --- a/TAO/examples/POA/Default_Servant/File_i.h +++ b/TAO/examples/POA/Default_Servant/File_i.h @@ -22,8 +22,8 @@ class FileImpl { public: class Descriptor : public POA_File::Descriptor - // Descriptor implements the Descriptor interface in the File Module - // A single Descriptor servant can serve multiple object references + // Descriptor implements the Descriptor interface in the File Module + // A single Descriptor servant can serve multiple object references { public: //Constructor @@ -37,25 +37,18 @@ public: // write buffer to File corresponding to this Descriptor virtual CORBA::Long write (const File::Descriptor::DataBuffer &buffer, - CORBA::Environment &env) - ACE_THROW_SPEC ((CORBA::SystemException, - File::IOError)); + CORBA::Environment &env); // Reads num_bytes from the file and returns it virtual File::Descriptor::DataBuffer *read (CORBA::Long num_bytes, - CORBA::Environment &env) - ACE_THROW_SPEC ((CORBA::SystemException, - File::IOError)); + CORBA::Environment &env); // seek to the offset in file from whence virtual CORBA::ULong lseek (CORBA::ULong offset, CORBA::Long whence, - CORBA::Environment &env) - ACE_THROW_SPEC ((CORBA::SystemException, - File::IOError)); + CORBA::Environment &env); // closes the file corresponding to the requested ObjectID - virtual void destroy (CORBA::Environment &env) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void destroy (CORBA::Environment &env); private: @@ -66,7 +59,7 @@ public: }; class System : public POA_File::System - // File System implementation class + // File System implementation class { public: // Constructor, Creates a single File Descriptor Servant and @@ -83,9 +76,7 @@ public: // and returns that reference File::Descriptor_ptr open (const char *file_name, CORBA::Long flags, - CORBA::Environment &env) - ACE_THROW_SPEC ((CORBA::SystemException, - File::IOError)); + CORBA::Environment &env); private: PortableServer::POA_var poa_; @@ -95,3 +86,4 @@ public: Descriptor fd_servant_; }; }; + |