blob: a5c81145e7a7568975beef64201db48c18c7fdca (
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
|
/**
* @file ORB_Holder.h
*
* $Id$
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
#ifndef TAO_PERF_RTEC_ORB_HOLDER_H
#define TAO_PERF_RTEC_ORB_HOLDER_H
#include "rtec_perf_export.h"
#include "tao/ORB.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/**
* @class ORB_Holder
*
* @brief Implement a helper class to initialize and destroy an ORB.
*
*/
class TAO_RTEC_Perf_Export ORB_Holder
{
public:
/// Constructor
ORB_Holder (int &argc, ACE_TCHAR *argv[],
const char *orb_id = 0);
/// Destructor
/**
* @todo This method could benefit from the error logging described
* in Servant_var.cpp
*/
~ORB_Holder (void);
/// Access the underlying ORB, using the canonical CORBA memory
/// management model
CORBA::ORB_ptr orb (void);
/// Implicit conversion to CORBA::ORB_ptr
/**
* It behaves as the .in() methods in the T_var classes.
*/
operator CORBA::ORB_ptr () const;
/// Smart pointer behavior
CORBA::ORB_ptr operator-> () const;
private:
/// The ORB
CORBA::ORB_var orb_;
};
#if defined(__ACE_INLINE__)
#include "ORB_Holder.inl"
#endif /* __ACE_INLINE__ */
#endif /* TAO_PERF_RTEC_ORB_HOLDER_H */
|