Rosetta Utilities  2014.35
Public Member Functions | Private Attributes | List of all members
basic::resource_manager::locator::FileListResourceLocator Class Reference

The FileListResourceLocator concatenates a set of listed files; e.g. useful for constructing a pose from two separate PDB files. More...

#include <FileListResourceLocator.hh>

Public Member Functions

 FileListResourceLocator ()
 
 FileListResourceLocator (FileListResourceLocator const &src)
 
virtual ~FileListResourceLocator ()
 
virtual void show (std::ostream &out) const
 Describe the FileListResourceLocator to the output stringstream; since this class has no data, merely prints the name of the class. More...
 
virtual std::string type () const
 Return the name for this class: "FileListResourceLocator". More...
 
void set_open_mode (std::ios_base::openmode open_mode)
 
std::ios_base::openmode get_open_mode () const
 
virtual ResourceStreamOP locate_resource_stream (std::string const &locator_tag) const
 Take the input locator tag and split it by whitespace, interpret each substring as the name of a file, and concatenate each file into a single stringstream to be returned. More...
 
virtual void parse_my_tag (utility::tag::TagCOP tag)
 Do nothing, since there is no data that the FileListResourceLocator needs. More...
 
- Public Member Functions inherited from basic::resource_manager::ResourceLocator
 ResourceLocator ()
 Construct a ResourceLocator and initialize its name (its locator_tag) to the empty string. More...
 
 ResourceLocator (std::string const &locator_tag)
 Construct a ResourceLocator while setting its name to the input locater_tag. More...
 
 ResourceLocator (ResourceLocator const &src)
 Copy construct a ResourceLocator from an example locator. More...
 
virtual ~ResourceLocator ()
 
virtual void locator_tag (std::string const &locator_tag)
 Set the name for this ResourceLocator. More...
 
virtual std::string locator_tag () const
 Return the name for this ResourceLocator. More...
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Private Attributes

std::ios_base::openmode open_mode_
 

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...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Detailed Description

The FileListResourceLocator concatenates a set of listed files; e.g. useful for constructing a pose from two separate PDB files.

Constructor & Destructor Documentation

basic::resource_manager::locator::FileListResourceLocator::FileListResourceLocator ( )
basic::resource_manager::locator::FileListResourceLocator::FileListResourceLocator ( FileListResourceLocator const &  src)
basic::resource_manager::locator::FileListResourceLocator::~FileListResourceLocator ( )
virtual

Member Function Documentation

std::ios_base::openmode basic::resource_manager::locator::FileListResourceLocator::get_open_mode ( ) const

References open_mode_.

ResourceStreamOP basic::resource_manager::locator::FileListResourceLocator::locate_resource_stream ( std::string const &  locator_tag) const
virtual

Take the input locator tag and split it by whitespace, interpret each substring as the name of a file, and concatenate each file into a single stringstream to be returned.

Implements basic::resource_manager::ResourceLocator.

References utility::io::getline(), line, open_mode_, basic::resource_manager::locator::FileStream::stream(), and utility::string_split().

void basic::resource_manager::locator::FileListResourceLocator::parse_my_tag ( utility::tag::TagCOP  tag)
virtual

Do nothing, since there is no data that the FileListResourceLocator needs.

Implements basic::resource_manager::ResourceLocator.

void basic::resource_manager::locator::FileListResourceLocator::set_open_mode ( std::ios_base::openmode  open_mode)

References open_mode_.

void basic::resource_manager::locator::FileListResourceLocator::show ( std::ostream &  out) const
virtual

Describe the FileListResourceLocator to the output stringstream; since this class has no data, merely prints the name of the class.

Implements basic::resource_manager::ResourceLocator.

std::string basic::resource_manager::locator::FileListResourceLocator::type ( ) const
virtual

Return the name for this class: "FileListResourceLocator".

Implements basic::resource_manager::ResourceLocator.

Member Data Documentation

std::ios_base::openmode basic::resource_manager::locator::FileListResourceLocator::open_mode_
private

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