counter : output

Output the block to the stream.

Any other method of any other object can call this method. This is called 'public' access.

The data-type returned is "voidtype";

This method is contained in the object "counter".

The method takes the following arguments:

filedef : Pointer to tgl_structure_parser

Not sure.

obj : Pointer to @schemaobj

Not sure.

This method is overridden from an abstract method with the same signature found in the object @block.

Implementations

C++

The files "tgl_structure_parser.hpp" and "boost/lexical_cast.hpp" are included.

Output a counter. Each time this is called, the counter is incremented.

	if (_count == 0)
		_count = _start;
	filedef->write_output(boost::lexical_cast<std::string>(_count));
	if (_increment == 0)
		_count++;
	else
		_count += _increment;

Generated: Wed Apr 5 23:58:37 EST 2006 using "xsltproc ... docbook.xsl". Copyright (c) 2003, 2004, 2005; Paul Hamilton; pHamtec P/L. Use, modification, and distribution is provided free of any limitations.