summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_3647_Regression/Backend_Impl.hpp
blob: fb0dddc35c947eb0ade88345d6ebf636a6efd309 (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
#ifndef Bug_3647_Regression_Backend_Impl_hpp
#define Bug_3647_Regression_Backend_Impl_hpp

#include "TestS.h"
#include "Throw_Spec.h"

namespace Bug_3647_Regression
{

/**
 * @class Backend
 *
 * Implement the Bug_3647_Regression::Backend interface
 *
 */
class Backend_Impl : public POA_Bug_3647_Regression::Backend
{
public:
  Backend_Impl(CORBA::ORB_ptr orb, bool verbose);
  virtual ~Backend_Impl();

  virtual void startup_test()
      THROW_SPEC (CORBA::SystemException);
  virtual void ping(Bug_3647_Regression::Payload const & the_payload)
      THROW_SPEC (CORBA::SystemException);
  virtual void freeze(CORBA::ULong seconds)
      THROW_SPEC (CORBA::SystemException);

  virtual void shutdown()
      THROW_SPEC (CORBA::SystemException);

private:
  /// Keep a reference to the ORB so we can shutdown the application.
  CORBA::ORB_var orb_;

  /// Use this flag to decide if the program should produce any output.
  bool verbose_;
};

} // namespace Bug_3647_Regression

#endif // Bug_3647_Regression_Backend_hpp