48 #include <OpenMesh/Core/IO/writer/BaseWriter.hh> 50 #if defined(OM_CC_MIPS) 65 #ifndef DOXY_IGNORE_THIS 67 static inline char tolower(
char c)
83 std::string extension;
84 std::string::size_type pos(_filename.rfind(
"."));
86 if (pos != std::string::npos)
87 extension = _filename.substr(pos+1, _filename.length()-pos-1);
89 extension = _filename;
91 std::transform( extension.begin(), extension.end(),
92 extension.begin(), tolower );
95 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...