Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / tao / FILE_Parser.h
blobde7bd0e5d3b187bb5d8de7e4f6d7f8026975904f
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file FILE_Parser.h
7 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
8 */
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)
19 # 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
28 /**
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
40 public:
41 ~TAO_FILE_Parser () override = default;
43 // = The IOR_Parser methods, please read the documentation in
44 // IOR_Parser.h
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 */