diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-10-20 02:34:57 +0000 |
commit | 5c1001ce4f585836e1f83c28d1df89aee42fb743 (patch) | |
tree | 5967e9ca7d44ed1d2823be9746817ebb8e025f5d /TAO/examples/POA/Default_Servant/File_i.h | |
parent | 2ae14b2b85ad813a269e8a5529aa76cf984fa8a5 (diff) | |
download | ATCD-5c1001ce4f585836e1f83c28d1df89aee42fb743.tar.gz |
changed include protection from #if !defined to ifndef, and added #pragma once, if possible
Diffstat (limited to 'TAO/examples/POA/Default_Servant/File_i.h')
-rw-r--r-- | TAO/examples/POA/Default_Servant/File_i.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/examples/POA/Default_Servant/File_i.h b/TAO/examples/POA/Default_Servant/File_i.h index 4ebbccea87b..736789654cf 100644 --- a/TAO/examples/POA/Default_Servant/File_i.h +++ b/TAO/examples/POA/Default_Servant/File_i.h @@ -36,25 +36,25 @@ public: 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, + 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, + 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, + 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_; }; @@ -62,7 +62,7 @@ public: // File System implementation class { public: - // Constructor, Creates a single File Descriptor Servant and + // Constructor, Creates a single File Descriptor Servant and // registers it with the POA as the Default Servant System (PortableServer::POA_ptr poa); @@ -73,14 +73,14 @@ public: 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, + // 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_; |