CERN -> IPT Group -> FrameMaker at CERN
Information Service User's Guide

12.16 ISServerIterator

IPCServerIterator


Synopsis
#include <is/serveriterator.h>
IPCPartiiton p( "MyPartition" );
ISServerIterator it( p );


Description

This class enumerates IS servers for the IS repository in a particular partition. It inherits from the IPCServerIterator class and has the same functionality.

The "current item" is undefined immediately after construction - one must define it by using operator() or some other valid operator.


Example
1: IPCPartition p( "MyPartition" );
2: ISServerIterator ii(p);
3: std::cout << "MyPartition has " << ii.entries() << " IS servers : " << std::endl;
4: while ( ii() )
5: std::cout << ii.name() << std::endl;


Public Constructors
ISServerIterator( );
Constructs new ISServerIterator object which enumerates all the servers for the IS repository in the default IPC partition.
ISServerIterator( const IPCPartition & part );
Constructs new ISServerIterator object which enumerates all the servers for the IS repository in the part IPC partition.


Public Member Operators
bool
operator()();
Inherited from the IPCServerIterator class. Advances the iterator one position. Returns true if new position is valid, false otherwise.
bool
operator++();
Inherited from the IPCServerIterator class. Advances the iterator one position. Returns true if new position is valid, false otherwise.
bool
operator--();
Inherited from the IPCServerIterator class. Retreats the iterator to the previous position. Returns true if new position is valid, false otherwise.
bool
operator++(int);
Inherited from the IPCServerIterator class. Advances the iterator one position. Returns true if new position is valid, false otherwise.
bool
operator--(int);
Inherited from the IPCServerIterator class. Retreats the iterator to the previous position. Returns true if new position is valid, false otherwise.you


Public Member Functions
const char *
name();
Inherited from the IPCServerIterator class. Returns the name of the IS server at the iterator's current position.
void
reset();
Inherited from the IPCServerIterator class. Reset the iterator to the state it had immediately after construction.
size_t
entries();
Inherited from the IPCServerIterator class. Returns the number of the IS servers in the iterator.


2 July 1998 - WebMaster
Copyright © CERN 1998