Package rosetta :: Package basic :: Package resource_manager :: Module _basic_resource_manager_ :: Class ResourceLoader
[hide private]
[frames] | no frames]

Class ResourceLoader

 object --+    
          |    
??.instance --+
              |
             ResourceLoader
Known Subclasses:

The ResourceLoader is responsible for instantiating a Resource object and initializing it. In order to do so, the ResourceLoader is given an input stream and a ResourceOptions object. Note that the ResourceOptions object has to be of the right type, or the ResourceLoader will not be able to read the data that it needs out of it. If the ResourceLoader is given the wrong kind of ResourceOptions object, it will throw an exception.

Instance Methods [hide private]
 
__init__(...)
__init__( (object)arg1) -> None :
 
__reduce__(...)
helper for pickle
 
create_resource(...)
create_resource( (ResourceLoader)arg1, (ResourceOptions)options, (str)locator_id, (std_istream)istream) -> object : Create a resource, held in an owning pointer, of any type which will be stored and whose lifetime will be governed by the ResourceManager
 
default_options(...)
default_options( (ResourceLoader)arg1) -> ResourceOptions : basic/resource_manager/ResourceLoader.hh:57

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  __instance_size__ = 32
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 

__init__( (object)arg1) -> None :

    C++ signature :
        void __init__(_object*)

Overrides: object.__init__

__reduce__(...)

 

helper for pickle

Overrides: object.__reduce__
(inherited documentation)

create_resource(...)

 

create_resource( (ResourceLoader)arg1, (ResourceOptions)options, (str)locator_id, (std_istream)istream) -> object :
    Create a resource, held in an owning pointer, of any type
    which will be stored and whose lifetime will be governed by the
    ResourceManager
    

    C++ signature :
        boost::shared_ptr<utility::pointer::ReferenceCount> create_resource(basic::resource_manager::ResourceLoader {lvalue},basic::resource_manager::ResourceOptions,std::string,std::istream {lvalue})

create_resource( (ResourceLoader)arg1, (ResourceOptions)arg2, (str)arg3, (std_istream)arg4) -> None :

    C++ signature :
        void create_resource(boost::shared_ptr<ResourceLoader_exposer_callback> {lvalue},basic::resource_manager::ResourceOptions,std::string,std::istream {lvalue})

default_options(...)

 

default_options( (ResourceLoader)arg1) -> ResourceOptions :
    basic/resource_manager/ResourceLoader.hh:57

    C++ signature :
        boost::shared_ptr<basic::resource_manager::ResourceOptions> default_options(basic::resource_manager::ResourceLoader {lvalue})

default_options( (ResourceLoader)arg1) -> None :

    C++ signature :
        void default_options(boost::shared_ptr<ResourceLoader_exposer_callback> {lvalue})