Generates a flag value based on the given set of values.

        :param values: <set>

        :return: <int>

def fromSet(self, values):
        """
        Generates a flag value based on the given set of values.

        :param values: <set>

        :return: <int>
        """
        value = 0
        for flag in values:
            value |= self(flag)
        return value