~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/orbsvcs/tests/Notify/lib/ConsumerAdmin_Command.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
/**
3
 
 *  @file ConsumerAdmin_Command.h
4
 
 *
5
 
 *  ConsumerAdmin_Command.h,v 1.6 2003/07/21 23:51:33 dhinton Exp
6
 
 *
7
 
 *  @author Pradeep Gore <pradeep@oomworks.com>
8
 
 *
9
 
 *
10
 
 */
11
 
 
12
 
#ifndef TAO_Notify_Tests_CONSUMERADMIN_COMMAND_H
13
 
#define TAO_Notify_Tests_CONSUMERADMIN_COMMAND_H
14
 
#include /**/ "ace/pre.h"
15
 
 
16
 
#include "notify_test_export.h"
17
 
 
18
 
#if !defined (ACE_LACKS_PRAGMA_ONCE)
19
 
# pragma once
20
 
#endif /* ACE_LACKS_PRAGMA_ONCE */
21
 
 
22
 
#include "ace/SString.h"
23
 
#include "orbsvcs/CosNotifyChannelAdminC.h"
24
 
#include "Command.h"
25
 
 
26
 
/**
27
 
 * @class TAO_Notify_Tests_ConsumerAdmin_Command
28
 
 *
29
 
 * @brief Command for ConsumerAdmin objects.
30
 
 *
31
 
 */
32
 
class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_ConsumerAdmin_Command  : public TAO_Notify_Tests_Command
33
 
{
34
 
public:
35
 
  /// Constuctor
36
 
  TAO_Notify_Tests_ConsumerAdmin_Command (void);
37
 
 
38
 
  /// Destructor
39
 
  ~TAO_Notify_Tests_ConsumerAdmin_Command ();
40
 
 
41
 
  /// Parse args and populate options.
42
 
  virtual void init (ACE_Arg_Shifter& arg_shifter);
43
 
 
44
 
  /// Execute the command.
45
 
  virtual void execute_i (ACE_ENV_SINGLE_ARG_DECL);
46
 
 
47
 
  /// Name of object
48
 
  virtual const char* get_name (void);
49
 
  static const char* name (void);
50
 
 
51
 
protected:
52
 
 
53
 
  /// = Data Members
54
 
#ifdef HPUX_11
55
 
   // Remove clash with /usr/include/machine/cpu.h and /usr/include/pa/cpu.h
56
 
#undef COMMAND
57
 
#endif
58
 
  enum COMMAND
59
 
  {
60
 
    CREATE,
61
 
    DESTROY,
62
 
    SET_QOS,
63
 
    SET_ADMIN,
64
 
    SUBSCRIPTION,
65
 
    DUMP_STATE
66
 
  };
67
 
 
68
 
  ACE_CString name_;
69
 
 
70
 
  ACE_CString factory_;
71
 
 
72
 
  CosNotifyChannelAdmin::InterFilterGroupOperator ifgop_;
73
 
 
74
 
  CosNotifyChannelAdmin::AdminID id_;
75
 
 
76
 
  CosNotification::QoSProperties qos_;
77
 
 
78
 
  // Subscription change
79
 
  CosNotification::EventTypeSeq added_;
80
 
  CosNotification::EventTypeSeq removed_;
81
 
 
82
 
  /// = Handlers
83
 
  void handle_create (ACE_ENV_SINGLE_ARG_DECL);
84
 
  void handle_subscriptions (ACE_ENV_SINGLE_ARG_DECL);
85
 
  void handle_status (ACE_ENV_SINGLE_ARG_DECL);
86
 
  void handle_set_qos (ACE_ENV_SINGLE_ARG_DECL);
87
 
};
88
 
 
89
 
#include /**/ "ace/post.h"
90
 
#endif /* TAO_Notify_Tests_CONSUMERADMIN_COMMAND_H */