From 33237023b5af640a6c066b879664d02f5b62c3df Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Mon, 19 Jun 2000 10:29:53 +0000 Subject: ChangeLogTag:Mon Jun 19 03:27:47 2000 Ossama Othman --- .../AMI_Observer/Push_Web_Server_i.h | 102 --------------------- 1 file changed, 102 deletions(-) delete mode 100644 TAO/examples/Content_Server/AMI_Observer/Push_Web_Server_i.h (limited to 'TAO/examples/Content_Server/AMI_Observer') diff --git a/TAO/examples/Content_Server/AMI_Observer/Push_Web_Server_i.h b/TAO/examples/Content_Server/AMI_Observer/Push_Web_Server_i.h deleted file mode 100644 index 75ff376af6f..00000000000 --- a/TAO/examples/Content_Server/AMI_Observer/Push_Web_Server_i.h +++ /dev/null @@ -1,102 +0,0 @@ -// -*- C++ -*- -// $Id$ - - -// ============================================================================ -// -// = LIBRARY -// Content_Server -// -// = FILENAME -// Push_Web_Server_i.h -// -// = DESCRIPTION -// Header file for the CORBA push web server implementation. -// -// = AUTHOR -// Ossama Othman -// -// ============================================================================ - -#ifndef PUSH_WEB_SERVER_I_H -#define PUSH_WEB_SERVER_I_H - -#include "ace/pre.h" - -#include "Push_Web_ServerS.h" - -#if !defined (ACE_LACKS_PRAGMA_ONCE) -# pragma once -#endif /* ACE_LACKS_PRAGMA_ONCE */ - -// Forward declarations -struct stat; - -// Implement the Web_Server interface. -class Push_Web_Server_i -{ -public: - // Download the associated with . - // The reports information about the . - virtual void get (const char *pathname, - Web_Server::Content_Type_out contents, - Web_Server::Metadata_Type_out metadata, - CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)); - -private: - int modification_date (struct stat * file_status, - Web_Server::Metadata_Type_out metadata); - // Set the field in the outgoing metadata. - - int content_type (const char *filename, - Web_Server::Metadata_Type_out metadata); - // Set the field in the outgoing metadata. -}; - -// Implement the Web_Server::Content_Iterator interface. -class Content_Iterator_i : virtual public POA_Web_Server::Content_Iterator -{ -public: - // Constructor - Content_Iterator_i (ACE_HANDLE handle); - - // Destructor - ~Content_Iterator_i (void); - - // This operation returns the next of the file starting at - // . If there are no more bindings, false is returned. - virtual CORBA::Boolean next_chunk (CORBA::ULong offset, - Chunk_Type_out chunk, - CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)); - - // Destroy the iterator. - virtual void destroy (CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException)); - -private: - ACE_HANDLE handle_; - // The file descriptor of the open file being iterated over. -}; - -// Implement the Web_Server::Iterator_Factory interface. -class Iterator_Factory_i : virtual public POA_Web_Server::Iterator_Factory -{ -public: - // This factory method returns a that can be used - // to read the associated with one ``chunk'' - // at a time. The reports information about the - // . - virtual void get_iterator (const char * pathname, - Content_Iterator_out contents, - Metadata_Type_out metadata,, - CORBA::Environment &ACE_TRY_ENV) - ACE_THROW_SPEC ((CORBA::SystemException, - WebServer::Error_Result)); - -}; - -#include "ace/post.h" - -#endif /* PUSH_WEB_SERVER_I_H */ -- cgit v1.2.1