# -*- coding: utf-8 -*-
"""
/***************************************************************************
 DsgTools
                                 A QGIS plugin
 Brazilian Army Cartographic Production Tools
                             -------------------
        begin                : 2014-10-09
        copyright            : (C) 2014 by Luiz Andrade - Cartographic Engineer @ Brazilian Army
        email                : luiz.claudio@dsg.eb.mil.br
        git sha              : $Format:%H$
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 This script initializes the plugin, making it known to QGIS.
"""

from .dsg_tools import DsgTools

# allowing to import a singleton of DsgTools upper object
dsgTools = None

# noinspection PyPep8Naming
def classFactory(iface):  # pylint: disable=invalid-name
    """Load DsgTools class from file DsgTools.

    :param iface: A QGIS interface instance.
    :type iface: QgsInterface
    """
    global dsgTools
    dsgTools = DsgTools(iface)
    return dsgTools
