/* Web Polygraph       http://www.web-polygraph.org/
 * (C) 2003-2006 The Measurement Factory
 * Licensed under the Apache License, Version 2.0 */

#ifndef POLYGRAPH__RUNTIME_VISERVS_H
#define POLYGRAPH__RUNTIME_VISERVS_H

class HostCfg;
class NetAddr;
class PubWorld;

// iterates all visible servers, returning their HostCfg objects
class ViservIterator {
	public:
		ViservIterator();

		bool atEnd() const;
		int viserv() const;
		HostCfg *host() const;
		const NetAddr &addr() const;
		PubWorld *pubWorld() const;

		ViservIterator &operator ++();
		void next();
	
	protected:
		void sync();

	protected:
		int theIdx;
};

#endif


syntax highlighted by Code2HTML, v. 0.9.1