summaryrefslogtreecommitdiff
path: root/TAO/tao/TkResource_Loader.h
blob: 9b20a5eac023a8f2e9293c41f7ffd0739f92a1c7 (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
// -*- C++ -*-

//=============================================================================
/**
 *  @file   TkResource_Loader.h
 *
 *  $Id$
 *
 *  @author Balachandran Natarajan <bala@cs.wustl.edu>
 *  @author Marek Brudka <mbrudka@aster.pl>
 */
//=============================================================================

#ifndef TAO_TKRESOURCE_LOADER_H
#define TAO_TKRESOURCE_LOADER_H
#include /**/ "ace/pre.h"
#include "tao/TAO_TkResource_Export.h"

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

namespace TAO
{
  /**
   * @class TkResource_Loader
   *
   * @brief Loads TAO resources related with Tk.
   *
   * This class changes the default reactor implementation into
   * ACE_TkReactor one by calling TAO_ORB_Core::set_gui_resource_factory.
   * User should create an instance of this class before ORB_init
   * when the TAO server has has to be integrated within Tk event loop.
   *
   * Please notice, this class has to be created in the main Tk thread,
   * because set_gui_resource_factory creates a variable in TSS. This way
   * TkReactor is instantiated only in Tk event loop thread.
   */
  class TAO_TkResource_Export TkResource_Loader
  {

  public:
    TkResource_Loader ( );

    virtual ~TkResource_Loader ();
  };
}
#include /**/ "ace/post.h"
#endif /* TAO_TKRESOURCE_LOADER_H */