summaryrefslogtreecommitdiff
path: root/TAO/tao/IOR_Parser.h
blob: 2657a0914314b74a4b30f9041a85b7e1683095f0 (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
58
59
60
61
// $Id$

// ============================================================================
//
// = LIBRARY
//   TAO
//
// = FILENAME
//   IOR_Parser.h
//
// = AUTHOR
//   Carlos O'Ryan (coryan@cs.wustl.edu)
//
// ============================================================================

#ifndef TAO_IOR_PARSER_H
#define TAO_IOR_PARSER_H
#include "ace/pre.h"

#include "tao/corbafwd.h"

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

#include "ace/Service_Object.h"

class TAO_Export TAO_IOR_Parser : public ACE_Service_Object
{
  // = TITLE
  //   Defines the interface for the pluggable IOR parser components
  //
  // = DESCRIPTION
  //   The ORB is able to dynamically load the list of IOR formats it
  //   understands.  That allow us to integrate formats such as
  //   corbaname:, http: or ftp: only when required.
  //   This class provides a uniform interface for all the IOR parsers
  //
public:
  virtual ~TAO_IOR_Parser (void);
  // The destructor

  virtual int match_prefix (const char *ior_string) const = 0;
  // Return 1 if <ior_string> starts with a prefix known to this IOR
  // parser

  virtual CORBA::Object_ptr parse_string (const char *ior,
                                          CORBA::ORB_ptr orb,
                                          CORBA::Environment &)
    ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
  // Parse the <ior> argument and return an object reference.
  // The call may raise the standard system exceptions (NO_MEMORY,
  // INV_OBJREF, etc.)
};

#if defined (__ACE_INLINE__)
# include "tao/IOR_Parser.i"
#endif /* __ACE_INLINE__ */

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