RobWorkProject  6.6.6
Static Public Member Functions | List of all members
WorkCellLoader::Factory Class Reference

A factory for WorkCellLoader. This factory also defines the "rw.loaders.WorkCellLoader" extension point where new loaders can be registered. More...

#include <WorkCellLoader.hpp>

Inherits ExtensionPoint< WorkCellLoader >.

Static Public Member Functions

static rw::common::Ptr< WorkCellLoadergetWorkCellLoader (const std::string &format)
 Get loaders for a specific format. More...
 
static models::WorkCell::Ptr load (const std::string &filename)
 Loads/imports a WorkCell from a file. More...
 

Additional Inherited Members

- Public Types inherited from ExtensionPoint< WorkCellLoader >
typedef rw::common::Ptr< ExtensionPointPtr
 smart pointer type of ExtensionPoint
 
- Public Member Functions inherited from ExtensionPoint< WorkCellLoader >
 ExtensionPoint (const std::string &id, const std::string &name, Plugin *plugin=NULL)
 Constructor. More...
 
const std::string & getId () const
 get unique identifier of this extensionpoint
 
const std::string & getName () const
 get human readable name of this extension point
 
const rw::common::PropertyMapgetSchema () const
 the schema describe the possible properties/configurations elements which is used in the PropertyMap. It contain examples of all possible configuration options. This can be used to configure any extensions that needs to attach to this extension point.
 
std::vector< Extension::DescriptorgetExtensionDescriptors () const
 get all extension descriptions of this extension point
 
std::vector< rw::common::Ptr< Extension > > getExtensions () const
 get all extensions of this extension point
 
- Protected Member Functions inherited from ExtensionPoint< WorkCellLoader >
rw::common::PropertyMapgetSchema ()
 the schema describe the possible properties/configurations elements which is used in the PropertyMap. The schema property map should just be loaded with all possible configuration options which the extension might use. More...
 

Detailed Description

A factory for WorkCellLoader. This factory also defines the "rw.loaders.WorkCellLoader" extension point where new loaders can be registered.

Member Function Documentation

◆ getWorkCellLoader()

static rw::common::Ptr<WorkCellLoader> getWorkCellLoader ( const std::string &  format)
static

Get loaders for a specific format.

Parameters
format[in] the extension (including initial dot). The extension name is case-insensitive.
Returns
a suitable loader.

◆ load()

static models::WorkCell::Ptr load ( const std::string &  filename)
static

Loads/imports a WorkCell from a file.

An exception is thrown if the file can't be loaded. The RobWork XML format is supported by default, as well as TUL WorkCell format.

Parameters
filename[in] name of the WorkCell file.

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