Пример #1
0
std::ostream& operator<<( std::ostream& flux, const UnknownProperties& unknownProperties )
{
	flux << separator << " Unknown stream " << separator << std::endl;

	PropertyVector properties = unknownProperties.getPropertiesAsVector();
	for( PropertyVector::iterator it = properties.begin(); it != properties.end(); ++it )
	{
		flux << std::setw( keyWidth ) << it->first << ": " << it->second << std::endl;
	}

	return flux;
}
std::ostream& operator<<(std::ostream& flux, const SubtitleProperties& subtitleProperties)
{
    flux << detail::separator << " Subtitle stream " << detail::separator << std::endl;

    PropertyVector properties = subtitleProperties.asVector();
    for(PropertyVector::iterator it = properties.begin(); it != properties.end(); ++it)
    {
        flux << std::setw(detail::keyWidth) << it->first << ": " << it->second << std::endl;
    }

    return flux;
}
Пример #3
0
std::ostream& operator<<( std::ostream& flux, const FileProperties& fileProperties )
{
	flux << std::left;
	flux << separator << " Wrapper " << separator << std::endl;

	PropertyVector properties = fileProperties.getPropertiesAsVector();
	for( PropertyVector::iterator it = properties.begin(); it != properties.end(); ++it )
	{
		flux << std::setw( keyWidth ) << it->first << ": " << it->second << std::endl;
	}

	return flux;
}