Rosetta Protocols  2014.35
Public Member Functions | List of all members
protocols::loops::LoopsFileLoader Class Reference

LoopsFileLoader constructs a LoopsFileData instance from data provided by the ResourceManager. More...

#include <LoopsFileLoader.hh>

Public Member Functions

 LoopsFileLoader ()
 Construct the LoopsFileLoader. More...
 
virtual ~LoopsFileLoader ()
 Destructor. More...
 
virtual
utility::pointer::ReferenceCountOP 
create_resource (basic::resource_manager::ResourceOptions const &options, basic::resource_manager::LocatorID const &locator_id, std::istream &istream) const
 Return a LoopsFileDataOP constructed from the given input stream (istream). More...
 
virtual
basic::resource_manager::ResourceOptionsOP 
default_options () const
 Return a ResourceOptionsOP with the default set of options. More...
 

Detailed Description

LoopsFileLoader constructs a LoopsFileData instance from data provided by the ResourceManager.

The LoopsFileLoader is given an istream containing the information in a LoopsFile from the ResourceManager. This information is then processed by an instance of LoopsFileIO to produce a LoopsFileDataOP to return to the protocol.

Constructor & Destructor Documentation

protocols::loops::LoopsFileLoader::LoopsFileLoader ( )

Construct the LoopsFileLoader.

protocols::loops::LoopsFileLoader::~LoopsFileLoader ( )
virtual

Destructor.

Member Function Documentation

utility::pointer::ReferenceCountOP protocols::loops::LoopsFileLoader::create_resource ( basic::resource_manager::ResourceOptions const &  options,
basic::resource_manager::LocatorID const &  locator_id,
std::istream &  istream 
) const
virtual

Return a LoopsFileDataOP constructed from the given input stream (istream).

Ensure the ResourceOptions is a LoopsFileOptions instance and construct a new LoopsFileData from the istream and the options. The locator_id is used solely for reporting accurate error messages.

Exceptions
utility::excn::EXCN_Msg_Exception

Implements basic::resource_manager::ResourceLoader.

References protocols::loops::LoopsFileOptions::prohibit_single_residue_loops(), protocols::loops::LoopsFileIO::read_loop_file_stream(), and basic::resource_manager::ResourceOptions::type().

basic::resource_manager::ResourceOptionsOP protocols::loops::LoopsFileLoader::default_options ( ) const
virtual

Return a ResourceOptionsOP with the default set of options.

Return an owning pointer to a newly constructed default instance of LoopsFileOptions.

Implements basic::resource_manager::ResourceLoader.


The documentation for this class was generated from the following files: