src/oslinfo/oslinfo.cpp
// Print all the metadata for a parameter.
Print all the metadata for a parameter.
Print all the metadata for a parameter .
static void
print_metadata(const OSLQuery::Parameter& m)
{
    std::string typestring(m.type.c_str());
    std::cout << "\t\tmetadata: " << typestring << ' ' << m.name << " =";
    for (unsigned int d = 0; d < m.idefault.size(); ++d)
        std::cout << " " << m.idefault[d];
    for (unsigned int d = 0; d < m.fdefault.size(); ++d)
        std::cout << " " << m.fdefault[d];
    for (unsigned int d = 0; d < m.sdefault.size(); ++d)
        std::cout << " \"" << OIIO::Strutil::escape_chars(m.sdefault[d])
                  << "\"";
    std::cout << std::endl;
}
static void print_metadata ( const OSLQuery :: Parameter & m ) { std :: string typestring ( m . type . c_str ( ) ) ; std :: cout << " \t \t " << typestring << ' ' << m . name << " " ; for ( unsigned int d = 0 ; d < m . idefault . size ( ) ; ++ d ) std :: cout << " " << m . idefault [ d ] ; for ( unsigned int d = 0 ; d < m . fdefault . size ( ) ; ++ d ) std :: cout << " " << m . fdefault [ d ] ; for ( unsigned int d = 0 ; d < m . sdefault . size ( ) ; ++ d ) std :: cout << " \" " << OIIO :: Strutil :: escape_chars ( m . sdefault [ d ] ) << " \" " ; std :: cout << std :: endl ; }
Print all the metadata for a parameter.
Print all the metadata for a parameter .