| 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.
????
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;