tgl_structure_parser : write_output

As above, but a single character.

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

The data-type returned is "booltype"; Not sure.

This method is contained in the object "tgl_structure_parser".

The method takes the following arguments:

c : chartype

The char to output.

C++

????

	bool comment = get_variable("comment") == "on";
	bool uppercase = get_variable("uppercase") == "on";

	if (_first)
	{
		_first = false;
		if (comment)
			*_stream << "// ";
	}
	if (!comment && !uppercase)
		*_stream << c;
	else
	{
		if (comment && c == '\\n')
			*_stream << std::endl <<  "// ";
		else
		{
			if (uppercase)
				*_stream << (char)std::toupper(c);
			else
				*_stream << c;
		}
	}
	return true;

Generated: Wed Apr 5 23:51:59 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.