Beispiel #1
0
 def __init__(self, wrapper, name, **props):
     if "direction" not in props:
         raise argtypes.ArgTypeConfigurationError(
             "cannot use double* parameter without direction")
     if props["direction"] not in ("out", ): # inout not yet implemented
         raise argtypes.ArgTypeConfigurationError(
             "cannot use double* parameter with direction '%s'"
             % (props["direction"],))
     Parameter.__init__(self, wrapper, name, **props)
Beispiel #2
0
 def __init__(self, wrapper, name, **props):
     if "direction" not in props:
         raise argtypes.ArgTypeConfigurationError(
             "cannot use int* parameter without direction")
     if props["direction"] not in ("out", "inout"):
         raise argtypes.ArgTypeConfigurationError(
             "cannot use int* parameter with direction '%s'"
             % (props["direction"],))
     Parameter.__init__(self, wrapper, name, **props)