![]() |
Rosetta Utilities
2014.16.56682
|
The JobOptions class holds job-specific options (i.e. command line flags). It can be used by the ResourceManager to hold options for a particular job, so that the ResourceManager can retrieve those options as needed. It is basically a bag for 12 OptionKey/OptionKeyValue maps, one for every kind of OptionKey. More...
#include <JobOptions.hh>
Public Member Functions | |
| virtual | ~JobOptions () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
| virtual void | show (std::ostream &out) const |
| Describe this JobOptions to the given output stream. More... | |
| void | add_option (utility::options::BooleanOptionKey key, bool val) |
| Set the value for the indicated boolean option. More... | |
| bool | has_option (utility::options::BooleanOptionKey key) const |
| Return true if a value for the indicated boolean option has been set. More... | |
| bool | get_option (utility::options::BooleanOptionKey key) const |
| Return the value of the indicated boolean option. More... | |
| void | add_option (utility::options::BooleanVectorOptionKey key, utility::vector1< bool > const &val) |
| Set the value for the indicated boolean-vector option. More... | |
| bool | has_option (utility::options::BooleanVectorOptionKey key) const |
| Return true if a value for the indicated boolean-vector option has been set. More... | |
| utility::vector1< bool > const & | get_option (utility::options::BooleanVectorOptionKey key) const |
| Return the value of the indicated boolean-vector option. More... | |
| void | add_option (utility::options::FileOptionKey key, utility::file::FileName const &val) |
| Set the value for the indicated file option. More... | |
| bool | has_option (utility::options::FileOptionKey key) const |
| Return true if a value for the indicated file option has been set. More... | |
| utility::file::FileName const & | get_option (utility::options::FileOptionKey key) const |
| Return the value of the indicated file option. More... | |
| void | add_option (utility::options::FileVectorOptionKey key, utility::vector1< utility::file::FileName > const &val) |
| Set the value for the indicated file-vector option. More... | |
| bool | has_option (utility::options::FileVectorOptionKey key) const |
| Return true if a value for the indicated file-vector option has been set. More... | |
| utility::vector1 < utility::file::FileName > const & | get_option (utility::options::FileVectorOptionKey key) const |
| Return the value of the indicated file-vector option. More... | |
| void | add_option (utility::options::IntegerOptionKey key, int val) |
| Set the value for the indicated integer option. More... | |
| bool | has_option (utility::options::IntegerOptionKey key) const |
| Return true if a value for the indicated integer option has been set. More... | |
| int | get_option (utility::options::IntegerOptionKey key) const |
| Return the value of the indicated integer option. More... | |
| void | add_option (utility::options::IntegerVectorOptionKey key, utility::vector1< int > const &val) |
| Set the value for the indicated integer-vector option. More... | |
| bool | has_option (utility::options::IntegerVectorOptionKey key) const |
| Return true if a value for the indicated integer-vector option has been set. More... | |
| utility::vector1< int > const & | get_option (utility::options::IntegerVectorOptionKey key) const |
| Return the value of the indicated integer-vector option. More... | |
| void | add_option (utility::options::PathOptionKey key, utility::file::PathName const &val) |
| Set the value for the indicated path option. More... | |
| bool | has_option (utility::options::PathOptionKey key) const |
| Return true if a value for the indicated path option has been set. More... | |
| utility::file::PathName const & | get_option (utility::options::PathOptionKey key) const |
| Return the value of the indicated path option. More... | |
| void | add_option (utility::options::PathVectorOptionKey key, utility::vector1< utility::file::PathName > const &val) |
| Set the value for the indicated path-vector option. More... | |
| bool | has_option (utility::options::PathVectorOptionKey key) const |
| Return true if a value for the indicated path-vector option has been set. More... | |
| utility::vector1 < utility::file::PathName > const & | get_option (utility::options::PathVectorOptionKey key) const |
| Return the value of the indicated path-vector option. More... | |
| void | add_option (utility::options::RealOptionKey key, platform::Real val) |
| Set the value for the indicated real option. More... | |
| bool | has_option (utility::options::RealOptionKey key) const |
| Return true if a value for the indicated real option has been set. More... | |
| platform::Real | get_option (utility::options::RealOptionKey key) const |
| Return the value of the indicated real option. More... | |
| void | add_option (utility::options::RealVectorOptionKey key, utility::vector1< platform::Real > const &val) |
| Set the value for the indicated real-vector option. More... | |
| bool | has_option (utility::options::RealVectorOptionKey key) const |
| Return true if a value for the indicated real-vector option has been set. More... | |
| utility::vector1 < platform::Real > const & | get_option (utility::options::RealVectorOptionKey key) const |
| Return the value of the indicated real-vector option. More... | |
| void | add_option (utility::options::StringOptionKey key, std::string val) |
| Set the value for the indicated string option. More... | |
| bool | has_option (utility::options::StringOptionKey key) const |
| Return true if a value for the indicated string option has been set. More... | |
| std::string const & | get_option (utility::options::StringOptionKey key) const |
| Return the value of the indicated string option. More... | |
| void | add_option (utility::options::StringVectorOptionKey key, utility::vector1< std::string > const &val) |
| Set the value for the indicated string-vector option. More... | |
| bool | has_option (utility::options::StringVectorOptionKey key) const |
| Return true if a value for the indicated string-vector option has been set. More... | |
| utility::vector1< std::string > const & | get_option (utility::options::StringVectorOptionKey key) const |
| Return the value of the indicated string-vector option. More... | |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
| void | ctor () |
| virtual | ~ReferenceCount () |
| Destructor. More... | |
| Size | ref_count () const |
| Reference count. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const JobOptions &job_options) |
| This friend function output-operator function invokes the JobOption's show() method. More... | |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
| typedef platform::Size | Size |
| typedef platform::Size | size_type |
Protected Member Functions inherited from utility::pointer::ReferenceCount | |
| ReferenceCount () | |
| Default constructor. More... | |
| ReferenceCount (ReferenceCount const &) | |
| Copy constructor. More... | |
| ReferenceCount & | operator= (ReferenceCount const &) |
| Copy assignment. More... | |
The JobOptions class holds job-specific options (i.e. command line flags). It can be used by the ResourceManager to hold options for a particular job, so that the ResourceManager can retrieve those options as needed. It is basically a bag for 12 OptionKey/OptionKeyValue maps, one for every kind of OptionKey.
|
virtual |
Automatically generated virtual destructor for class deriving directly from ReferenceCount.
Auto-generated virtual destructor
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::BooleanOptionKey | key, |
| bool | val | ||
| ) |
Set the value for the indicated boolean option.
References boolean_options_, and basic::options::OptionKeys::key.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::BooleanVectorOptionKey | key, |
| utility::vector1< bool > const & | val | ||
| ) |
Set the value for the indicated boolean-vector option.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::FileOptionKey | key, |
| utility::file::FileName const & | val | ||
| ) |
Set the value for the indicated file option.
References file_options_, and basic::options::OptionKeys::key.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::FileVectorOptionKey | key, |
| utility::vector1< utility::file::FileName > const & | val | ||
| ) |
Set the value for the indicated file-vector option.
References file_vector_options_, and basic::options::OptionKeys::key.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::IntegerOptionKey | key, |
| int | val | ||
| ) |
Set the value for the indicated integer option.
References integer_options_, and basic::options::OptionKeys::key.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::IntegerVectorOptionKey | key, |
| utility::vector1< int > const & | val | ||
| ) |
Set the value for the indicated integer-vector option.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::PathOptionKey | key, |
| utility::file::PathName const & | val | ||
| ) |
Set the value for the indicated path option.
References basic::options::OptionKeys::key, and path_options_.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::PathVectorOptionKey | key, |
| utility::vector1< utility::file::PathName > const & | val | ||
| ) |
Set the value for the indicated path-vector option.
References basic::options::OptionKeys::key, and path_vector_options_.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::RealOptionKey | key, |
| platform::Real | val | ||
| ) |
Set the value for the indicated real option.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::RealVectorOptionKey | key, |
| utility::vector1< platform::Real > const & | val | ||
| ) |
Set the value for the indicated real-vector option.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::StringOptionKey | key, |
| std::string | val | ||
| ) |
Set the value for the indicated string option.
References basic::options::OptionKeys::key, and string_options_.
| void basic::resource_manager::JobOptions::add_option | ( | utility::options::StringVectorOptionKey | key, |
| utility::vector1< std::string > const & | val | ||
| ) |
Set the value for the indicated string-vector option.
| bool basic::resource_manager::JobOptions::get_option | ( | utility::options::BooleanOptionKey | key | ) | const |
Return the value of the indicated boolean option.
References boolean_options_, and utility::keys::AutoKey< O, S, C >::identifier().
| vector1< bool > const & basic::resource_manager::JobOptions::get_option | ( | utility::options::BooleanVectorOptionKey | key | ) | const |
Return the value of the indicated boolean-vector option.
References boolean_vector_options_, and utility::keys::AutoKey< O, S, C >::identifier().
| FileName const & basic::resource_manager::JobOptions::get_option | ( | utility::options::FileOptionKey | key | ) | const |
Return the value of the indicated file option.
References file_options_, and utility::keys::AutoKey< O, S, C >::identifier().
| vector1< FileName > const & basic::resource_manager::JobOptions::get_option | ( | utility::options::FileVectorOptionKey | key | ) | const |
Return the value of the indicated file-vector option.
References file_vector_options_, and utility::keys::AutoKey< O, S, C >::identifier().
| int basic::resource_manager::JobOptions::get_option | ( | utility::options::IntegerOptionKey | key | ) | const |
Return the value of the indicated integer option.
References utility::keys::AutoKey< O, S, C >::identifier(), and integer_options_.
| vector1< int > const & basic::resource_manager::JobOptions::get_option | ( | utility::options::IntegerVectorOptionKey | key | ) | const |
Return the value of the indicated integer-vector option.
References utility::keys::AutoKey< O, S, C >::identifier(), and integer_vector_options_.
| PathName const & basic::resource_manager::JobOptions::get_option | ( | utility::options::PathOptionKey | key | ) | const |
Return the value of the indicated path option.
References utility::keys::AutoKey< O, S, C >::identifier(), and path_options_.
| vector1< PathName > const & basic::resource_manager::JobOptions::get_option | ( | utility::options::PathVectorOptionKey | key | ) | const |
Return the value of the indicated path-vector option.
References utility::keys::AutoKey< O, S, C >::identifier(), and path_vector_options_.
| Real basic::resource_manager::JobOptions::get_option | ( | utility::options::RealOptionKey | key | ) | const |
Return the value of the indicated real option.
References utility::keys::AutoKey< O, S, C >::identifier(), and real_options_.
| vector1< Real > const & basic::resource_manager::JobOptions::get_option | ( | utility::options::RealVectorOptionKey | key | ) | const |
Return the value of the indicated real-vector option.
References utility::keys::AutoKey< O, S, C >::identifier(), and real_vector_options_.
| string const & basic::resource_manager::JobOptions::get_option | ( | utility::options::StringOptionKey | key | ) | const |
Return the value of the indicated string option.
References utility::keys::AutoKey< O, S, C >::identifier(), and string_options_.
| vector1< string > const & basic::resource_manager::JobOptions::get_option | ( | utility::options::StringVectorOptionKey | key | ) | const |
Return the value of the indicated string-vector option.
References utility::keys::AutoKey< O, S, C >::identifier(), and string_vector_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::BooleanOptionKey | key | ) | const |
Return true if a value for the indicated boolean option has been set.
References boolean_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::BooleanVectorOptionKey | key | ) | const |
Return true if a value for the indicated boolean-vector option has been set.
References boolean_vector_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::FileOptionKey | key | ) | const |
Return true if a value for the indicated file option has been set.
References file_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::FileVectorOptionKey | key | ) | const |
Return true if a value for the indicated file-vector option has been set.
References file_vector_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::IntegerOptionKey | key | ) | const |
Return true if a value for the indicated integer option has been set.
References integer_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::IntegerVectorOptionKey | key | ) | const |
Return true if a value for the indicated integer-vector option has been set.
References integer_vector_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::PathOptionKey | key | ) | const |
Return true if a value for the indicated path option has been set.
References path_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::PathVectorOptionKey | key | ) | const |
Return true if a value for the indicated path-vector option has been set.
References path_vector_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::RealOptionKey | key | ) | const |
Return true if a value for the indicated real option has been set.
References real_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::RealVectorOptionKey | key | ) | const |
Return true if a value for the indicated real-vector option has been set.
References real_vector_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::StringOptionKey | key | ) | const |
Return true if a value for the indicated string option has been set.
References string_options_.
| bool basic::resource_manager::JobOptions::has_option | ( | utility::options::StringVectorOptionKey | key | ) | const |
Return true if a value for the indicated string-vector option has been set.
References string_vector_options_.
|
virtual |
Describe this JobOptions to the given output stream.
References boolean_options_, boolean_vector_options_, utility::keys::AutoKey< O, S, C >::id(), basic::options::OptionKeys::ufv::left, basic::options::OptionKeys::out::file::o, and options.
Referenced by basic::resource_manager::operator<<().
|
friend |
This friend function output-operator function invokes the JobOption's show() method.
|
private |
Referenced by add_option(), get_option(), has_option(), and show().
|
private |
Referenced by get_option(), has_option(), and show().
|
private |
Referenced by add_option(), get_option(), and has_option().
|
private |
Referenced by add_option(), get_option(), and has_option().
|
private |
Referenced by add_option(), get_option(), and has_option().
|
private |
Referenced by get_option(), and has_option().
|
private |
Referenced by add_option(), get_option(), and has_option().
|
private |
Referenced by add_option(), get_option(), and has_option().
|
private |
Referenced by get_option(), and has_option().
|
private |
Referenced by get_option(), and has_option().
|
private |
Referenced by add_option(), get_option(), and has_option().
|
private |
Referenced by get_option(), and has_option().
1.8.7