17 #include <basic/resource_manager/ResourceOptions.hh>
25 #include <utility/excn/Exceptions.hh>
32 namespace electron_density {
34 using basic::resource_manager::ResourceOP;
35 using basic::resource_manager::ResourceLoaderOP;
36 using basic::resource_manager::ResourceOptions;
37 using basic::resource_manager::ResourceOptionsOP;
38 using basic::resource_manager::LocatorID;
54 return "ElectronDensity";
67 ResourceOptions
const & options,
68 LocatorID
const & locator_id,
72 if ( ! dynamic_cast< ElectronDensityOptions const * >( &options ) ) {
73 throw utility::excn::EXCN_Msg_Exception(
74 "ElectronDensityLoader expected to get a ElectronDensityOptions object, "
75 "but was given a ResourceOptions of type '" + options.type() +
"', "
76 "which has the name '" + options.name() +
"'." );
79 static_cast< ElectronDensityOptions const & >( options ));
83 electron_density->readMRCandResize(
89 return electron_density;