53 #include <OpenMesh/Core/IO/writer/BaseWriter.hh> 55 #if defined(OM_CC_MIPS) 70 #ifndef DOXY_IGNORE_THIS 72 static inline char tolower(
char c)
88 std::string extension;
89 std::string::size_type pos(_filename.rfind(
"."));
91 if (pos != std::string::npos)
92 extension = _filename.substr(pos+1, _filename.length()-pos-1);
94 extension = _filename;
96 std::transform( extension.begin(), extension.end(),
97 extension.begin(), tolower );
100 return (get_extensions().find(extension) != std::string::npos);
virtual bool can_u_write(const std::string &_filename) const
Returns true if writer can write _filename (checks extension). _filename can also provide an extensio...