3 //=============================================================================
7 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
9 //=============================================================================
12 #ifndef TAO_FILE_PARSER_H
13 #define TAO_FILE_PARSER_H
15 #include /**/ "ace/pre.h"
16 #include "ace/Service_Config.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/IOR_Parser.h"
24 #if (TAO_HAS_FILE_PARSER == 1)
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 * @class TAO_FILE_Parser
31 * @brief Implements the <file:> IOR format
33 * This class implements the <file:> IOR format.
34 * It is dynamically loaded by the ORB and used to open a file,
35 * read its contents and then interprete the file as an IOR (that
36 * can be in any valid format).
38 class TAO_FILE_Parser
: public TAO_IOR_Parser
41 ~TAO_FILE_Parser () override
= default;
43 // = The IOR_Parser methods, please read the documentation in
45 bool match_prefix (const char *ior_string
) const override
;
46 CORBA::Object_ptr
parse_string (const char *ior
, CORBA::ORB_ptr orb
) override
;
49 ACE_STATIC_SVC_DECLARE_EXPORT (TAO
, TAO_FILE_Parser
)
50 ACE_FACTORY_DECLARE (TAO
, TAO_FILE_Parser
)
52 TAO_END_VERSIONED_NAMESPACE_DECL
54 #endif /* TAO_HAS_FILE_PARSER == 1 */
56 #include /**/ "ace/post.h"
57 #endif /* TAO_FILE_PARSER_H */