CORBANAME_Parser.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file   CORBANAME_Parser.h
00006  *
00007  *  CORBANAME_Parser.h,v 1.10 2005/11/02 07:13:02 ossama Exp
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 !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif /* ACE_LACKS_PRAGMA_ONCE */
00024 
00025 #include "ace/Service_Config.h"
00026 
00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00028 
00029 /**
00030  * @class TAO_CORBANAME_Parser
00031  *
00032  * @brief Implements the <corbaname:> IOR format
00033  *
00034  * This class implements the <corbaname:> IOR format.
00035  * It is dynamically loaded by the ORB and used to get reference
00036  * to a naming service at the given address and port and then resolve an
00037  * object in that context.
00038  */
00039 class TAO_CORBANAME_Parser : public TAO_IOR_Parser
00040 {
00041 public:
00042 
00043   /// The destructor
00044   virtual ~TAO_CORBANAME_Parser (void);
00045 
00046   // = The IOR_Parser methods, please read the documentation in
00047   //   IOR_Parser.h
00048   virtual int match_prefix (const char *ior_string) const;
00049   virtual CORBA::Object_ptr parse_string (const char *ior,
00050                                           CORBA::ORB_ptr orb
00051                                           ACE_ENV_ARG_DECL_NOT_USED)
00052     ACE_THROW_SPEC ((CORBA::SystemException));
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                                          ACE_ENV_ARG_DECL)
00059     ACE_THROW_SPEC ((CORBA::SystemException));
00060 };
00061 
00062 TAO_END_VERSIONED_NAMESPACE_DECL
00063 
00064 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_CORBANAME_Parser)
00065 ACE_FACTORY_DECLARE (TAO, TAO_CORBANAME_Parser)
00066 
00067 #include /**/ "ace/post.h"
00068 #endif /* TAO_CORBANAME_PARSER_H */

Generated on Thu Nov 9 11:54:10 2006 for TAO by doxygen 1.3.6