RAVE
Lib.rave_pgf_quality_registry Namespace Reference

Functions

 init ()
 Initializes the registry by reading the xml file with the plugin definitions.
 
 add_plugin (name, plug)
 Adds a plugin to the registry.
 
 remove_plugin (name)
 Removes a plugin from the registry.
 
 get_plugin (name)
 Load the registry.
 
 get_plugins ()
 Return all registered plugin names.
 

Variables

bool _initialized = False
 
dict _registry = {}
 

Detailed Description

Copyright (C) 2010- Swedish Meteorological and Hydrological Institute (SMHI)

This file is part of RAVE.

RAVE is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

RAVE is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with RAVE.  If not, see <http://www.gnu.org/licenses/>.

Function Documentation

◆ add_plugin()

Lib.rave_pgf_quality_registry.add_plugin ( name,
plug )

Adds a plugin to the registry.

Used for debugging and testing purposes.

◆ get_plugin()

Lib.rave_pgf_quality_registry.get_plugin ( name)

Load the registry.

Return the plugin with the given name or None if no such plugin exists.

◆ get_plugins()

Lib.rave_pgf_quality_registry.get_plugins ( )

Return all registered plugin names.

◆ init()

Lib.rave_pgf_quality_registry.init ( )

Initializes the registry by reading the xml file with the plugin definitions.

◆ remove_plugin()

Lib.rave_pgf_quality_registry.remove_plugin ( name)

Removes a plugin from the registry.

Used for debugging and testing purposes