aboutsummaryrefslogtreecommitdiff
path: root/pyvimba/vimbasystem.py
diff options
context:
space:
mode:
authorJohn Sun <jsun@sightmachine.com>2014-04-02 16:22:14 -0700
committerJohn Sun <jsun@sightmachine.com>2014-04-02 16:22:14 -0700
commit01e24424971ffa9faa5dabf2e6724cea997a2afb (patch)
tree8882d0e2c93e2a1f74178c21b6bffa02a2edee16 /pyvimba/vimbasystem.py
parent54bec3f39dc7915593a29c22ed1aac0e29ab53b6 (diff)
downloadpymba-01e24424971ffa9faa5dabf2e6724cea997a2afb.tar.gz
pymba-01e24424971ffa9faa5dabf2e6724cea997a2afb.zip
First pass at making pymba a pip installable module.
1) Moved all the source-code under a new folder "pyvimba". Yes I changed the name. Feel free to change it back 2) Added initial CHANGES.txt, MANIFEST.in, LICENSE, README.txt 3) Move opencv_example.py to "tests" directory
Diffstat (limited to 'pyvimba/vimbasystem.py')
-rw-r--r--pyvimba/vimbasystem.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/pyvimba/vimbasystem.py b/pyvimba/vimbasystem.py
new file mode 100644
index 0000000..1e04755
--- /dev/null
+++ b/pyvimba/vimbasystem.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from vimbaobject import VimbaObject
+from ctypes import *
+
+# system features are automatically readable as attributes.
+class VimbaSystem(VimbaObject):
+ """
+ A Vimba system object. This class provides the minimal access
+ to Vimba functions required to control the system.
+ """
+
+ # own handle is inherited as self._handle
+ def __init__(self):
+
+ # call super constructor
+ super(VimbaSystem, self).__init__()
+
+ # set own handle manually
+ self._handle = c_void_p(1)