summaryrefslogtreecommitdiff
path: root/TAO/tests/Smart_Proxies/Benchmark/Smart_Proxy_Impl.h
blob: 90c52349f8a4da7afcfaccf895950c6bceef02d0 (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
// $Id$

#include "testC.h"
#if (TAO_HAS_SMART_PROXIES == 1)
class Smart_Test_Factory : public virtual TAO_Test_Default_Proxy_Factory
{
public:

  Smart_Test_Factory (void);
  
  virtual Test_ptr create_proxy (Test_ptr proxy,
                                 CORBA::Environment &env = 
                                 TAO_default_environment ());
  // This method will create the smart_proxy.   
};

class Smart_Test_Proxy : public virtual TAO_Test_Smart_Proxy_Base 
{
public:
  Smart_Test_Proxy (Test_ptr proxy);

  virtual CORBA::Short box_prices(CORBA::Environment &ACE_TRY_ENV = 
                               TAO_default_environment ())
    ACE_THROW_SPEC ((CORBA::SystemException)); 
  // "Smartify" the method call!

 private:
  CORBA::Short price_;
};
#endif /*(TAO_HAS_SMART_PROXIES == 1)*/