SPPAS 4.20

Module sppas.src.structs

Class sppasOption

Description

Adds a key to a sppasBaseOption.

  • author: Brigitte Bigi
  • organization: Laboratoire Parole et Langage, Aix-en-Provence, France
  • contact: contact@sppas.org
  • license: GPL, v3
  • copyright: Copyright (C) 2011-2019 Brigitte Bigi

Constructor

Create a sppasOption instance.

Parameters
  • option_key: (any type) An identifier for that option.
  • option_type: (str) Type of the option.
  • option_value: (str) The value of the option.
View Source
def __init__(self, option_key, option_type='str', option_value=''):
    """Create a sppasOption instance.

    :param option_key: (any type) An identifier for that option.
    :param option_type: (str) Type of the option.
    :param option_value: (str) The value of the option.

    """
    super(sppasOption, self).__init__(option_type, option_value)
    self._key = option_key

Public functions

get_key

Return the key of that option.

View Source
def get_key(self):
    """Return the key of that option."""
    return self._key