summaryrefslogtreecommitdiff
path: root/TAO/tao/FILE_Parser.h
blob: de7bd0e5d3b187bb5d8de7e4f6d7f8026975904f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// -*- C++ -*-

//=============================================================================
/**
 *  @file   FILE_Parser.h
 *
 *  @author Carlos O'Ryan (coryan@cs.wustl.edu)
 */
//=============================================================================


#ifndef TAO_FILE_PARSER_H
#define TAO_FILE_PARSER_H

#include /**/ "ace/pre.h"
#include "ace/Service_Config.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "tao/IOR_Parser.h"

#if (TAO_HAS_FILE_PARSER == 1)

TAO_BEGIN_VERSIONED_NAMESPACE_DECL

/**
 * @class TAO_FILE_Parser
 *
 * @brief Implements the <file:> IOR format
 *
 * This class implements the <file:> IOR format.
 * It is dynamically loaded by the ORB and used to open a file,
 * read its contents and then interprete the file as an IOR (that
 * can be in any valid format).
 */
class TAO_FILE_Parser : public TAO_IOR_Parser
{
public:
  ~TAO_FILE_Parser () override = default;

  // = The IOR_Parser methods, please read the documentation in
  //   IOR_Parser.h
  bool match_prefix (const char *ior_string) const override;
  CORBA::Object_ptr parse_string (const char *ior, CORBA::ORB_ptr orb) override;
};

ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_FILE_Parser)
ACE_FACTORY_DECLARE (TAO, TAO_FILE_Parser)

TAO_END_VERSIONED_NAMESPACE_DECL

#endif /* TAO_HAS_FILE_PARSER == 1 */

#include /**/ "ace/post.h"
#endif /* TAO_FILE_PARSER_H */