Skip to content
Snippets Groups Projects
Commit 9787231d authored by stefan's avatar stefan
Browse files

IOManager, Added Getter funcions for IoHandlers

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1830 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 4d28a893
No related branches found
No related tags found
No related merge requests found
......@@ -17,13 +17,13 @@
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//------------------------------------------------------------------------------
#include <ost/io/io_manager.hh>
#include <ost/io/mol/entity_io_pdb_handler.hh>
#include <ost/io/mol/entity_io_pdb_handler.hh>
#include <ost/io/mol/entity_io_crd_handler.hh>
#include <ost/io/mol/entity_io_sdf_handler.hh>
#include <ost/io/seq/fasta_io_handler.hh>
#include <ost/io/seq/promod_io_handler.hh>
#include <ost/io/mol/surface_io_msms_handler.hh>
#include <ost/io/seq/clustal_io_handler.hh>
#include <ost/io/seq/clustal_io_handler.hh>
#if OST_IMG_ENABLED
# include <ost/io/img/map_io_dx_handler.hh>
# include <ost/io/img/map_io_spi_handler.hh>
......@@ -246,6 +246,11 @@ void IOManager::RegisterFactory(const MapIOHandlerFactoryBasePtr& f)
map_io_list_.push_back(f);
}
MapIOFList IOManager::GetAvailableMapHandler() const
{
return map_io_list_;
}
#endif //OST_IMG_ENABLED
void IOManager::RegisterFactory(const EntityIOHandlerFactoryBaseP& f)
......@@ -263,4 +268,19 @@ void IOManager::RegisterFactory(const SurfaceIOHandlerFactoryBasePtr& f)
surface_io_list_.push_back(f);
}
EntityIOHFList IOManager::GetAvailableEntityHandler() const
{
return entity_iohf_list_;
}
AlignmentIOFList IOManager::GetAvailableAlignmentHandler() const
{
return alignment_io_list_;
}
SurfaceIOFList IOManager::GetAvailableSurfaceHandler() const
{
return surface_io_list_;
}
}} // ns
......@@ -36,16 +36,16 @@
#include <ost/io/io_exception.hh>
namespace ost { namespace io {
/// \brief Central registry for input/output handlers
class DLLEXPORT_OST_IO IOManager {
typedef std::vector<EntityIOHandlerFactoryBaseP> EntityIOHFList;
typedef std::vector<SequenceIOHandlerFactoryBasePtr> AlignmentIOFList;
typedef std::vector<SurfaceIOHandlerFactoryBasePtr> SurfaceIOFList;
typedef std::vector<EntityIOHandlerFactoryBaseP> EntityIOHFList;
typedef std::vector<SequenceIOHandlerFactoryBasePtr> AlignmentIOFList;
typedef std::vector<SurfaceIOHandlerFactoryBasePtr> SurfaceIOFList;
#if OST_IMG_ENABLED
typedef std::vector<MapIOHandlerFactoryBasePtr> MapIOFList;
#endif
/// \brief Central registry for input/output handlers
class DLLEXPORT_OST_IO IOManager {
public:
/// \brief get entity io handler that is able to import the given file.
///
......@@ -96,6 +96,15 @@ public:
/// \sa adding_io_handler
void RegisterFactory(const SurfaceIOHandlerFactoryBasePtr&);
/// \brief Get a list with all available EntityHandler
EntityIOHFList GetAvailableEntityHandler() const;
/// \brief Get a list with all available AlignmentHandler
AlignmentIOFList GetAvailableAlignmentHandler() const;
/// \brief Get a list with all available SurfaceHandler
SurfaceIOFList GetAvailableSurfaceHandler() const;
#if OST_IMG_ENABLED
/// \name Image/Map IO
//@{
......@@ -114,6 +123,8 @@ public:
MapIOHandlerPtr FindMapExportHandlerStream(std::istream& stream,
const ImageFormatBase& format);
MapIOFList GetAvailableMapHandler() const;
//@}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment