3 //=============================================================================
7 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
9 //=============================================================================
12 #ifndef TAO_IOR_PARSER_H
13 #define TAO_IOR_PARSER_H
15 #include /**/ "ace/pre.h"
16 #include "ace/Service_Object.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/orbconf.h"
23 #include "tao/TAO_Export.h"
25 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
30 typedef Object
*Object_ptr
;
37 * @class TAO_IOR_Parser
39 * @brief Defines the interface for the pluggable IOR parser components
41 * The ORB is able to dynamically load the list of IOR formats it
42 * understands. That allow us to integrate formats such as
43 * corbaname:, http: or ftp: only when required.
44 * This class provides a uniform interface for all the IOR parsers
46 class TAO_Export TAO_IOR_Parser
: public ACE_Service_Object
50 TAO_IOR_Parser () = default;
51 virtual ~TAO_IOR_Parser ();
53 /// Return true if @a ior_string starts with a prefix known to this IOR
55 virtual bool match_prefix (const char *ior_string
) const = 0;
58 * Parse the @a ior argument and return an object reference.
59 * The call may raise the standard system exceptions (NO_MEMORY,
62 virtual CORBA::Object_ptr
parse_string (const char *ior
, CORBA::ORB_ptr orb
) = 0;
65 TAO_END_VERSIONED_NAMESPACE_DECL
67 #include /**/ "ace/post.h"
68 #endif /* TAO_IOR_PARSER_H */