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

#ifndef POLYGRAPH__CSM_CONTAINERBODYITER_H
#define POLYGRAPH__CSM_CONTAINERBODYITER_H

#include "csm/BodyIter.h"

class EmbedContMdl;

class ContainerBodyIter: public BodyIter {
	public:
		ContainerBodyIter();

		virtual void start(WrBuf *aBuf);
		virtual void reset();

		void embedContModel(EmbedContMdl *aModel);

	protected:
		virtual bool pourBody();
		Size embed(); // writes embedded oid tag

	protected:
		EmbedContMdl *theModel;
		int theEmbedGoal;     // how many objects to embed
		int theEmbedCount;    // number of objects embedded so far
		Size theEmbedDist;    // ~ distance between embed tags
};

#endif


syntax highlighted by Code2HTML, v. 0.9.1