diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-09 07:08:18 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-09 07:08:18 +0000 |
commit | 957681064207962c8e33263c7ebebbb4a83f7af0 (patch) | |
tree | d28e87f0be723cf1eed7e0f52298d8153fc8f4cd /TAO/examples/POA/Default_Servant/File_i.h | |
parent | 1eeb03769ad41dd4bc5ac7d438cc98680ef55059 (diff) | |
download | ATCD-ACE-4_6_27.tar.gz |
This commit was manufactured by cvs2svn to create tag 'ACE-4_6_27'.ACE-4_6_27
Diffstat (limited to 'TAO/examples/POA/Default_Servant/File_i.h')
-rw-r--r-- | TAO/examples/POA/Default_Servant/File_i.h | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/TAO/examples/POA/Default_Servant/File_i.h b/TAO/examples/POA/Default_Servant/File_i.h deleted file mode 100644 index 736789654cf..00000000000 --- a/TAO/examples/POA/Default_Servant/File_i.h +++ /dev/null @@ -1,89 +0,0 @@ -// $Id$ -//=================================================================== -// -// = FILENAME -// File_i.h -// -// = DESCRIPTION -// Defines the implementation classes for the File IDL -// module -// -// = AUTHOR -// Irfan Pyarali -// -//==================================================================== - - - -#include "FileS.h" - -class FileImpl -// FileImpl class provides the namespace for the File IDL module . -{ -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 - { - public: - //Constructor - Descriptor (PortableServer::POA_ptr poa); - - //Destructor - ~Descriptor (void); - - // Returns the default POA of this object - PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - // write buffer to File corresponding to this Descriptor - virtual CORBA::Long write (const File::Descriptor::DataBuffer &buffer, - CORBA::Environment &env); - - // Reads num_bytes from the file and returns it - virtual File::Descriptor::DataBuffer *read (CORBA::Long num_bytes, - CORBA::Environment &env); - // seek to the offset in file from whence - virtual CORBA::ULong lseek (CORBA::ULong offset, - CORBA::Long whence, - CORBA::Environment &env); - - // closes the file corresponding to the requested ObjectID - virtual void destroy (CORBA::Environment &env); - - private: - - // Extracts the ACE_HANDLE from the objectID - ACE_HANDLE fd (CORBA::Environment &env); - - PortableServer::POA_var poa_; - }; - - class System : public POA_File::System - // File System implementation class - { - public: - // Constructor, Creates a single File Descriptor Servant and - // registers it with the POA as the Default Servant - System (PortableServer::POA_ptr poa); - - //Destructor - ~System (void); - - //Returns the default POA of this object - PortableServer::POA_ptr _default_POA (CORBA::Environment &env); - - //Opens a file ,creates a Descriptor reference with the ACE_HANDLE - // and returns that reference - File::Descriptor_ptr open (const char *file_name, - CORBA::Long flags, - CORBA::Environment &env); - - private: - PortableServer::POA_var poa_; - - // The single File Descriptor servant which serves requests for any - // Descriptor object under poa_. - Descriptor fd_servant_; - }; -}; - |