parameters: (self, param, label, dictionary)
return_statement: return value
docstring: Parse enums settings using an auxiliary dictionary of acceptable values.
  
          Keyword arguments:
          self -- It signifies an instance of a class.
          param -- The label to add to the postprocess file
          label -- The label used to get the string
          dictionary -- The dictionary containing the list of possible candidates
docstring_summary: Parse enums settings using an auxiliary dictionary of acceptable values.
docstring_tokens: Parse enums settings using an auxiliary dictionary of acceptable values .
function: def _get_enum_flag(self, param, label, dictionary):
          """ Parse enums settings using an auxiliary dictionary of acceptable values.
  
          Keyword arguments:
          self -- It signifies an instance of a class.
          param -- The label to add to the postprocess file
          label -- The label used to get the string
          dictionary -- The dictionary containing the list of possible candidates
          """
  
          keystring = param[label].GetString()
          try:
              value = dictionary[keystring]
          except KeyError:
              msg = "{0} Error: Unknown value \"{1}\" read for parameter \"{2}\"".format(self.__class__.__name__, value, label)
              raise Exception(msg)
  
          return value
function_tokens: def _get_enum_flag ( self , param , label , dictionary ) : keystring = param [ label ] . GetString ( ) try : value = dictionary [ keystring ] except KeyError : msg = "{0} Error: Unknown value \"{1}\" read for parameter \"{2}\"" . format ( self . __class__ . __name__ , value , label ) raise Exception ( msg ) return value