summaryrefslogtreecommitdiff
path: root/TAO/CIAO/docs/tutorial/Hello/hello_exec.h
blob: 0fdf42e4c2e7a270d15e7edcbffaf0066ce4f752 (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
// $Id$

// This file contains executor implementations.

#if !defined (HELLO_EXECUTORS_H)
#define HELLO_EXECUTORS_H

#include "helloEC.h"
#include "hello_exec_export.h"
#include "tao/LocalObject.h"

class HelloWorld_Impl :
  public virtual CCM_HelloWorld,
  public virtual TAO_Local_RefCounted_Object
{
public:
  /// Default ctor.
  HelloWorld_Impl ();

  /// Default dtor.
  ~HelloWorld_Impl ();

  virtual char *sayhello (const char *username
                          ACE_ENV_ARG_DECL_WITH_DEFAULTS)
    ACE_THROW_SPEC ((
      CORBA::SystemException
    ));
};

class HelloHome_Impl :
  public virtual CCM_HelloHome,
  public virtual TAO_Local_RefCounted_Object
{
public:
  /// Default ctor.
  HelloHome_Impl ();

  /// Default dtor.
  ~HelloHome_Impl ();

  virtual ::Components::EnterpriseComponent_ptr
  create (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
    ACE_THROW_SPEC ((Components::CCMException,
		     CORBA::SystemException));
};

// We still need to figure out a way to clean up the object created by
// the factory correctly.   Like we did in ACE_FACTORY macro, with a
// Gobbler function.

extern "C" HELLO_EXEC_Export ::Components::HomeExecutorBase_ptr
createHelloHome_Impl (void);

#endif /* HELLO_EXECUTORS_H */