Use =default for skeleton copy constructor
[ACE_TAO.git] / TAO / tests / Big_Twoways / Coordinator.h
blob5eea7e62c336c0807d00e29b1554678bec3ed535
2 #ifndef BIG_ONEWAYS_COORDINATOR_H
3 #define BIG_ONEWAYS_COORDINATOR_H
4 #include /**/ "ace/pre.h"
6 #include "TestS.h"
8 /// Implement the Test::Coordinator interface
9 class Coordinator
10 : public virtual POA_Test::Coordinator
12 public:
13 /// Constructor
14 Coordinator (CORBA::ULong peer_count);
16 /// Check if all the peers have registered already
17 int has_all_peers () const;
19 /// Check a session on each peer
20 void create_session_list (Test::Session_Control_ptr session_control,
21 CORBA::ULong payload_size,
22 CORBA::ULong thread_count,
23 CORBA::ULong message_count,
24 Test::Session_List &session_list);
26 /// Shutdown all the peers
27 void shutdown_all_peers ();
29 // = The skeleton methods
30 virtual void add_peer (Test::Peer_ptr peer);
32 protected:
33 /// Protected destructor, call _remove_ref() to delete
34 virtual ~Coordinator ();
36 private:
37 /// Store a reference to each peer
38 Test::Peer_var *peers_;
40 /// Current number of elements in the array
41 size_t peer_count_;
43 /// Array's capacity
44 size_t peer_max_;
47 #include /**/ "ace/post.h"
48 #endif /* BIG_ONEWAYS_COORDINATOR_H */