~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/orbsvcs/FaultTolerance/FT_ClientService_Activate.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//=============================================================================
2
 
/**
3
 
 * @file FT_ClientService_Activate.h
4
 
 *
5
 
 * FT_ClientService_Activate.h,v 1.2 2003/11/17 22:56:13 wilson_d Exp
6
 
 *
7
 
 * A concrete implementation of a service callback
8
 
 *
9
 
 * @author Bala Natarajan <bala@cs.wustl.edu>
10
 
 */
11
 
//=============================================================================
12
 
 
13
 
#ifndef TAO_FT_CLIENTACTIVATE_H
14
 
#define TAO_FT_CLIENTACTIVATE_H
15
 
#include /**/ "ace/pre.h"
16
 
 
17
 
#include "FT_ClientORB_export.h"
18
 
 
19
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
20
 
# pragma once
21
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
22
 
 
23
 
#include "tao/Services_Activate.h"
24
 
#include "ace/Service_Config.h"
25
 
 
26
 
class TAO_Service_Callbacks;
27
 
 
28
 
// Forward declarations
29
 
/**
30
 
 * @class TAO_FT_ClientService_Activate
31
 
 *
32
 
 * @brief A class to dynamically load the FT callback implementations in
33
 
 * to the ORB.
34
 
 *
35
 
 * An implementation of the service callbacks that allows the
36
 
 * loading of the FT ORB level library in to the ORB
37
 
 */
38
 
class TAO_FT_ClientORB_Export TAO_FT_ClientService_Activate : public TAO_Services_Activate
39
 
{
40
 
 
41
 
public:
42
 
  /// Constructor
43
 
  TAO_FT_ClientService_Activate (void);
44
 
 
45
 
  /// The destructor
46
 
  virtual ~TAO_FT_ClientService_Activate (void);
47
 
 
48
 
  /**
49
 
   * Create and activate the service callbacks into the orb.
50
 
   * This method cannot throw any exception, but it can return a nil
51
 
   * object to indicate an error condition.
52
 
   */
53
 
  virtual TAO_Service_Callbacks *activate_services (TAO_ORB_Core *orb)
54
 
    ACE_THROW_SPEC ((CORBA::SystemException));
55
 
 
56
 
  /// Used to force the initialization.
57
 
  static int Initializer (void);
58
 
 
59
 
};
60
 
 
61
 
ACE_STATIC_SVC_DECLARE (TAO_FT_ClientService_Activate)
62
 
ACE_FACTORY_DECLARE (TAO_FT_ClientORB, TAO_FT_ClientService_Activate)
63
 
 
64
 
#if defined(ACE_HAS_BROKEN_STATIC_CONSTRUCTORS)
65
 
 
66
 
typedef int (*TAO_Module_Initializer) (void);
67
 
 
68
 
static TAO_Module_Initializer
69
 
TAO_FT_Requires_ClientService_Activate = &TAO_FT_ClientService_Activate::Initializer;
70
 
 
71
 
#else
72
 
 
73
 
static int
74
 
TAO_FT_Requires_ClientService_Activate = TAO_FT_ClientService_Activate::Initializer ();
75
 
 
76
 
#endif /* ACE_HAS_BROKEN_STATIC_CONSTRUCTORS */
77
 
 
78
 
#include /**/ "ace/post.h"
79
 
#endif /*TAO_FT_CLIENTACTIVATE_H*/