TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/host/io.hpp
Go to the documentation of this file.
00001 #ifndef _TUTTLE_HOST_IO_HPP_
00002 #define _TUTTLE_HOST_IO_HPP_
00003 
00004 #include <string>
00005 #include <vector>
00006 
00007 namespace tuttle {
00008 namespace host {
00009 namespace io {
00010 
00011 /**
00012  * Choose a plugin which supports the given file extension. 
00013  * This plugin has the best evaluation among available plugins.
00014  * @return  the node identifier
00015  */
00016 std::vector< std::string > getIOPluginsForExtension( const std::string& extension, const std::string& context );
00017 
00018 /**
00019  * Get a file extension of the given file name.
00020  * @return the file extension
00021  */
00022 std::string getFileExtension( const std::string& filename );
00023 
00024 /**
00025  * @param extension
00026  * @return the reader nodes identifiers that support the given file extension
00027  */
00028 std::vector< std::string > _getReaders( const std::string& extension );
00029 
00030 /**
00031  * @param filename can be a filename or an extension
00032  * @return the reader nodes identifiers that support the extension of the given file
00033  */
00034 std::vector< std::string > getReaders( const std::string& filename );
00035 
00036 /**
00037  * @param filename can be a filename or an extension 
00038  * @return the reader node identifier that supports the extension of the given file
00039  */
00040 std::string getBestReader( const std::string& filename );
00041 
00042 /**
00043  * @param extension
00044  * @return the writer nodes identifiers that support the given file extension
00045  */
00046 std::vector< std::string > _getWriters( const std::string& extension );
00047 
00048 /**
00049  * @param filename can be a filename or an extension
00050  * @return the writer nodes identifiers that support the extension of the given file.
00051  */
00052 std::vector< std::string > getWriters( const std::string& filename );
00053 
00054 /**
00055  * 
00056  * @param filename can be a filename or an extension
00057  * @return the writer node identifier that supports the extension of the given file.
00058  */
00059 std::string getBestWriter( const std::string& filename );
00060 
00061 }
00062 }
00063 }
00064 
00065 #endif
00066