Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
protocols::jd3::full_model_inputters::FullModelInputterFactory Class Reference

#include <FullModelInputterFactory.hh>

Inheritance diagram for protocols::jd3::full_model_inputters::FullModelInputterFactory:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string,
FullModelInputterCreatorOP
FullModelInputterMap
 
typedef std::list
< FullModelInputterCreatorCOP
CreatorList
 
typedef utility::vector1
< std::pair
< FullModelInputSourceOP,
FullModelInputterOP > > 
FullModelInputSourcesAndInputters
 
typedef utility::tag::Tag Tag
 
typedef utility::tag::TagCOP TagCOP
 

Public Member Functions

void factory_register (FullModelInputterCreatorOP creator)
 add a FullModelInputter prototype, using its default type name as the map key More...
 
FullModelInputterOP new_full_model_inputter (std::string const &) const
 Create a pose inputter given its identifying string, e.g. the name of an XML element. More...
 
FullModelInputSourcesAndInputters full_model_inputs_from_command_line () const
 Read the command line (i.e. in the absence of a job-definition file) to determine the set of input poses. Note that this reads from the global options system and does not read per-job options – this is necessary because there isn't a job-definition file from which to read per-job options. Note also that this will read all options on the command line, possibly from different FullModelInputters. The order in which the FullModelInputSources are reported are sorted by alphabetically by the keys of the FullModelInputters (e.g. "PDB" will precede "Silent"). More...
 
void set_throw_on_double_registration ()
 Should the Factory throw an exception or call utility::exit when it encounters the second of two FullModelInputterCreators with the same keyname? It's default behavior is to call utility::exit, but this method allows you to set it so that it will throw an exception instead (which is unit testable). More...
 
void define_full_model_inputter_xml_schema (utility::tag::XMLSchemaDefinition &xsd) const
 The ResidueSelectorFactory is the point of entry for the definition of the XML Schemas for every ResidueSelector that may be instantiated from a file. It is responsible for defining an xs:group named "residue_selector" listing each of the residue-selector-complex types that may be initialized using the ResidueSelectorFactory and to iterate across each of the ResidueSelectorCreators it contains asking them for the XML schema of the ResidueSelector they are responsible for creating. More...
 
void list_options_read (utility::options::OptionKeyList &read_options) const
 
CreatorList const & full_model_inputter_creators () const
 

Static Public Member Functions

static std::string full_model_inputter_xml_schema_group_name ()
 
static std::string complex_type_name_for_full_model_inputter (std::string const &inputter_key)
 

Private Member Functions

 FullModelInputterFactory ()
 
 FullModelInputterFactory (FullModelInputterFactory const &)=delete
 
FullModelInputterFactory const & operator= (FullModelInputterFactory const &)=delete
 

Private Attributes

FullModelInputterMap full_model_inputter_creator_map_
 
CreatorList creator_list_
 
bool throw_on_double_registration_
 

Friends

class utility::SingletonBase< FullModelInputterFactory >
 

Member Typedef Documentation

Constructor & Destructor Documentation

protocols::jd3::full_model_inputters::FullModelInputterFactory::FullModelInputterFactory ( )
private
protocols::jd3::full_model_inputters::FullModelInputterFactory::FullModelInputterFactory ( FullModelInputterFactory const &  )
privatedelete

Member Function Documentation

std::string protocols::jd3::full_model_inputters::FullModelInputterFactory::complex_type_name_for_full_model_inputter ( std::string const &  inputter_key)
static
void protocols::jd3::full_model_inputters::FullModelInputterFactory::define_full_model_inputter_xml_schema ( utility::tag::XMLSchemaDefinition &  xsd) const

The ResidueSelectorFactory is the point of entry for the definition of the XML Schemas for every ResidueSelector that may be instantiated from a file. It is responsible for defining an xs:group named "residue_selector" listing each of the residue-selector-complex types that may be initialized using the ResidueSelectorFactory and to iterate across each of the ResidueSelectorCreators it contains asking them for the XML schema of the ResidueSelector they are responsible for creating.

References complex_type_name_for_full_model_inputter(), full_model_inputter_creator_map_, and full_model_inputter_xml_schema_group_name().

void protocols::jd3::full_model_inputters::FullModelInputterFactory::factory_register ( FullModelInputterCreatorOP  creator)

add a FullModelInputter prototype, using its default type name as the map key

References creator_list_, full_model_inputter_creator_map_, and throw_on_double_registration_.

FullModelInputterFactory::FullModelInputSourcesAndInputters protocols::jd3::full_model_inputters::FullModelInputterFactory::full_model_inputs_from_command_line ( ) const

Read the command line (i.e. in the absence of a job-definition file) to determine the set of input poses. Note that this reads from the global options system and does not read per-job options – this is necessary because there isn't a job-definition file from which to read per-job options. Note also that this will read all options on the command line, possibly from different FullModelInputters. The order in which the FullModelInputSources are reported are sorted by alphabetically by the keys of the FullModelInputters (e.g. "PDB" will precede "Silent").

References full_model_inputter_creator_map_.

FullModelInputterFactory::CreatorList const & protocols::jd3::full_model_inputters::FullModelInputterFactory::full_model_inputter_creators ( ) const

References creator_list_.

std::string protocols::jd3::full_model_inputters::FullModelInputterFactory::full_model_inputter_xml_schema_group_name ( )
static
void protocols::jd3::full_model_inputters::FullModelInputterFactory::list_options_read ( utility::options::OptionKeyList &  read_options) const

References creator_list_.

FullModelInputterOP protocols::jd3::full_model_inputters::FullModelInputterFactory::new_full_model_inputter ( std::string const &  full_model_inputter_type) const

Create a pose inputter given its identifying string, e.g. the name of an XML element.

return new FullModelInputter by key lookup in full_model_inputter_prototype_map_ (new FullModelInputter parses Tag if provided)

References full_model_inputter_creator_map_, and protocols::jd3::full_model_inputters::TR().

FullModelInputterFactory const& protocols::jd3::full_model_inputters::FullModelInputterFactory::operator= ( FullModelInputterFactory const &  )
privatedelete
void protocols::jd3::full_model_inputters::FullModelInputterFactory::set_throw_on_double_registration ( )

Should the Factory throw an exception or call utility::exit when it encounters the second of two FullModelInputterCreators with the same keyname? It's default behavior is to call utility::exit, but this method allows you to set it so that it will throw an exception instead (which is unit testable).

References throw_on_double_registration_.

Friends And Related Function Documentation

friend class utility::SingletonBase< FullModelInputterFactory >
friend

Member Data Documentation

CreatorList protocols::jd3::full_model_inputters::FullModelInputterFactory::creator_list_
private
FullModelInputterMap protocols::jd3::full_model_inputters::FullModelInputterFactory::full_model_inputter_creator_map_
private
bool protocols::jd3::full_model_inputters::FullModelInputterFactory::throw_on_double_registration_
private

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