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

The NullResourceLocator is meant for cases where a resource can be created without reading from an input file. It goes through the motions of returning a ResourceStream (an empty NullStream) as is required of all ResourceLocators, but the stream that it creates will not be used. More...

#include <NullResourceLocator.hh>

Public Member Functions

 NullResourceLocator ()
 
 NullResourceLocator (NullResourceLocator const &src)
 
virtual ~NullResourceLocator ()
 
virtual void show (std::ostream &out) const
 Describe this instance to the given output stream; since there is no data in this class, merely print the name of this class. More...
 
virtual std::string type () const
 Return the name of this class: "NullResourceLocator". More...
 
virtual ResourceStreamOP locate_resource_stream (std::string const &locator_tag) const
 Create an empty NullResource object that will not be used. More...
 
virtual void parse_my_tag (utility::tag::TagCOP tag)
 Noop, since there is no data in this class. 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...
 

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 NullResourceLocator is meant for cases where a resource can be created without reading from an input file. It goes through the motions of returning a ResourceStream (an empty NullStream) as is required of all ResourceLocators, but the stream that it creates will not be used.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Create an empty NullResource object that will not be used.

Implements basic::resource_manager::ResourceLocator.

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

Noop, since there is no data in this class.

Implements basic::resource_manager::ResourceLocator.

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

Describe this instance to the given output stream; since there is no data in this class, merely print the name of this class.

Implements basic::resource_manager::ResourceLocator.

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

Return the name of this class: "NullResourceLocator".

Implements basic::resource_manager::ResourceLocator.


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