Ejemplo n.º 1
0
    def _getBoolFeature(self):
        """
		Get the value of a bool feature.
		
		:returns: bool -- value of the specified feature.
		"""

        # create args
        valueToGet = c_bool()

        errorCode = VimbaDLL.featureBoolGet(self._handle, self._name, byref(valueToGet))
        if errorCode != 0:
            raise VimbaException(errorCode)

        return valueToGet.value
Ejemplo n.º 2
0
    def _getBoolFeature(self):
        """
        Get the value of a bool feature.

        :returns: bool -- value of the specified feature.
        """

        # create args
        valueToGet = c_bool()

        errorCode = VimbaDLL.featureBoolGet(self._handle,
                                            self._name,
                                            byref(valueToGet))
        if errorCode != 0:
            raise VimbaException(errorCode)

        return valueToGet.value