00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file CORBANAME_Parser.h 00006 * 00007 * $Id: CORBANAME_Parser.h 79237 2007-08-07 09:48:21Z johnnyw $ 00008 * 00009 * @author Priyanka Gontla (pgontla@uci.edu) 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_CORBANAME_PARSER_H 00015 #define TAO_CORBANAME_PARSER_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/IOR_Parser.h" 00020 00021 #if (TAO_HAS_CORBANAME_PARSER == 1) 00022 00023 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00024 # pragma once 00025 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00026 00027 #include "ace/Service_Config.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 /** 00032 * @class TAO_CORBANAME_Parser 00033 * 00034 * @brief Implements the <corbaname:> IOR format 00035 * 00036 * This class implements the <corbaname:> IOR format. 00037 * It is dynamically loaded by the ORB and used to get reference 00038 * to a naming service at the given address and port and then resolve an 00039 * object in that context. 00040 */ 00041 class TAO_CORBANAME_Parser : public TAO_IOR_Parser 00042 { 00043 public: 00044 00045 /// The destructor 00046 virtual ~TAO_CORBANAME_Parser (void); 00047 00048 // = The IOR_Parser methods, please read the documentation in 00049 // IOR_Parser.h 00050 virtual bool match_prefix (const char *ior_string) const; 00051 virtual CORBA::Object_ptr parse_string (const char *ior, 00052 CORBA::ORB_ptr orb); 00053 00054 private: 00055 virtual CORBA::Object_ptr 00056 parse_string_dynamic_request_helper (CORBA::Object_ptr naming_context, 00057 ACE_CString &key_string 00058 ); 00059 }; 00060 00061 TAO_END_VERSIONED_NAMESPACE_DECL 00062 00063 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_CORBANAME_Parser) 00064 ACE_FACTORY_DECLARE (TAO, TAO_CORBANAME_Parser) 00065 00066 #endif /* TAO_HAS_CORBANAME_PARSER == 1 */ 00067 00068 #include /**/ "ace/post.h" 00069 #endif /* TAO_CORBANAME_PARSER_H */