00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file FILE_Parser.h 00006 * 00007 * FILE_Parser.h,v 1.9 2005/11/02 07:13:02 ossama Exp 00008 * 00009 * @author Carlos O'Ryan (coryan@cs.wustl.edu) 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_FILE_PARSER_H 00015 #define TAO_FILE_PARSER_H 00016 00017 #include /**/ "ace/pre.h" 00018 #include "ace/Service_Config.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/IOR_Parser.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 /** 00029 * @class TAO_FILE_Parser 00030 * 00031 * @brief Implements the <file:> IOR format 00032 * 00033 * This class implements the <file:> IOR format. 00034 * It is dynamically loaded by the ORB and used to open a file, 00035 * read its contents and then interepret the file as an IOR (that 00036 * can be in any valid format). 00037 */ 00038 class TAO_FILE_Parser : public TAO_IOR_Parser 00039 { 00040 public: 00041 00042 /// The destructor 00043 virtual ~TAO_FILE_Parser (void); 00044 00045 // = The IOR_Parser methods, please read the documentation in 00046 // IOR_Parser.h 00047 virtual int match_prefix (const char *ior_string) const; 00048 virtual CORBA::Object_ptr parse_string (const char *ior, 00049 CORBA::ORB_ptr orb 00050 ACE_ENV_ARG_DECL_NOT_USED) 00051 ACE_THROW_SPEC ((CORBA::SystemException)); 00052 }; 00053 00054 TAO_END_VERSIONED_NAMESPACE_DECL 00055 00056 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_FILE_Parser) 00057 ACE_FACTORY_DECLARE (TAO, TAO_FILE_Parser) 00058 00059 #include /**/ "ace/post.h" 00060 #endif /* TAO_FILE_PARSER_H */