summaryrefslogtreecommitdiff
path: root/TAO/tests/Cubit/Orbix/tps/cubit_impl.h
blob: 31a8874f07beccb529175aec4f421ceb41f98af9 (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

#ifndef cubit_ih
#define cubit_ih

#include "cubit.h"
#include "ace/Task.h"

#ifdef Cubit_USE_BOA
class Cubit_Impl : public virtual CubitBOAImpl {
#else
class Cubit_Impl {
#endif /* Cubit_USE_BOA */
public:
  virtual CORBA::Octet cube_octet (CORBA::Octet o, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);
  virtual CORBA::Short cube_short (CORBA::Short s, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);
  virtual CORBA::Long cube_long (CORBA::Long l, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);
  virtual Cubit::Many cube_struct (const Cubit::Many& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);
  virtual Cubit::oneof cube_union (const Cubit::oneof& values, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);
  virtual void please_exit (CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);

};

#ifdef Cubit_USE_BOA
class Cubit_Factory_Impl : public virtual Cubit_FactoryBOAImpl {
#else
class Cubit_Factory_Impl {
#endif

public:
        virtual Cubit_ptr create_cubit (const char * name, CORBA::Environment &IT_env=CORBA::default_environment) throw (CORBA::SystemException);
};

class Cubit_Impl_Task : public virtual Cubit_Impl, public virtual ACE_Task<ACE_MT_SYNCH> {
public:
  // For ACE_Task
  int svc (void);
  // for narrowing
  virtual void *_deref ();
};

#ifndef Cubit_USE_BOA
DEF_TIE_Cubit (Cubit_Impl)
DEF_TIE_Cubit_Factory (Cubit_Factory_Impl)
#endif /* Cubit_USE_BOA */

#endif