blob: 86fbd81c2e67b0ca48fcd412e7a6822b863c39cc (
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
47
48
49
50
51
52
53
54
55
|
// -*- C++ -*-
//=============================================================================
/**
* @file Iterator.h
*
* $Id$
*
* @brief This file declares ImR's iterator.
*
* @author Darrell Brunsch <brunsch@cs.wustl.edu>
*/
//=============================================================================
#ifndef IMR_ITERATOR_H
#define IMR_ITERATOR_H
#include "Locator_Repository.h"
#include "tao/PortableServer/PortableServer.h"
#include "tao/ImR_Client/ImplRepoS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/**
* @class ImR_Iterator
*
* @brief The Iterator for servers in the ImR.
*
*/
class ImR_Iterator
: public POA_ImplementationRepository::ServerInformationIterator
{
public:
ImR_Iterator (CORBA::ULong n, Locator_Repository& repo, PortableServer::POA_ptr poa);
/// Returns the next list of up to <how_many> servers. If empty, will return
/// false.
virtual CORBA::Boolean next_n (
CORBA::ULong how_many,
ImplementationRepository::ServerInformationList_out server_list
ACE_ENV_ARG_DECL_WITH_DEFAULTS
)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void destroy (void)
ACE_THROW_SPEC ((CORBA::SystemException));
private:
Locator_Repository& repo_;
CORBA::ULong count_;
PortableServer::POA_ptr poa_;
};
#endif /* IMR_ITERATOR_H */
|