Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # This file was created automatically by SWIG 1.3.26. |
2 | # Don't modify this file, modify the SWIG interface instead. | |
3 | ||
4 | import _SS_Ram | |
5 | ||
6 | # This file is compatible with both classic and new-style classes. | |
7 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): | |
8 | if (name == "this"): | |
9 | if isinstance(value, class_type): | |
10 | self.__dict__[name] = value.this | |
11 | if hasattr(value,"thisown"): self.__dict__["thisown"] = value.thisown | |
12 | del value.thisown | |
13 | return | |
14 | method = class_type.__swig_setmethods__.get(name,None) | |
15 | if method: return method(self,value) | |
16 | if (not static) or hasattr(self,name) or (name == "thisown"): | |
17 | self.__dict__[name] = value | |
18 | else: | |
19 | raise AttributeError("You cannot add attributes to %s" % self) | |
20 | ||
21 | def _swig_setattr(self,class_type,name,value): | |
22 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
23 | ||
24 | def _swig_getattr(self,class_type,name): | |
25 | method = class_type.__swig_getmethods__.get(name,None) | |
26 | if method: return method(self) | |
27 | raise AttributeError,name | |
28 | ||
29 | import types | |
30 | try: | |
31 | _object = types.ObjectType | |
32 | _newclass = 1 | |
33 | except AttributeError: | |
34 | class _object : pass | |
35 | _newclass = 0 | |
36 | del types | |
37 | ||
38 | ||
39 | ||
40 | get_memory = _SS_Ram.get_memory | |
41 | class SS_Memory(_object): | |
42 | __swig_setmethods__ = {} | |
43 | __setattr__ = lambda self, name, value: _swig_setattr(self, SS_Memory, name, value) | |
44 | __swig_getmethods__ = {} | |
45 | __getattr__ = lambda self, name: _swig_getattr(self, SS_Memory, name) | |
46 | def __init__(self): raise RuntimeError, "No constructor defined" | |
47 | def __repr__(self): | |
48 | return "<%s.%s; proxy of C++ SS_Memory instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
49 | def allocate(*args): return _SS_Ram.SS_Memory_allocate(*args) | |
50 | def load(*args): return _SS_Ram.SS_Memory_load(*args) | |
51 | def save(*args): return _SS_Ram.SS_Memory_save(*args) | |
52 | def poke8(*args): return _SS_Ram.SS_Memory_poke8(*args) | |
53 | def poke16(*args): return _SS_Ram.SS_Memory_poke16(*args) | |
54 | def poke32(*args): return _SS_Ram.SS_Memory_poke32(*args) | |
55 | def poke64(*args): return _SS_Ram.SS_Memory_poke64(*args) | |
56 | def peek8u(*args): return _SS_Ram.SS_Memory_peek8u(*args) | |
57 | def peek8s(*args): return _SS_Ram.SS_Memory_peek8s(*args) | |
58 | def peek16u(*args): return _SS_Ram.SS_Memory_peek16u(*args) | |
59 | def peek16s(*args): return _SS_Ram.SS_Memory_peek16s(*args) | |
60 | def peek32u(*args): return _SS_Ram.SS_Memory_peek32u(*args) | |
61 | def peek32s(*args): return _SS_Ram.SS_Memory_peek32s(*args) | |
62 | def peek64(*args): return _SS_Ram.SS_Memory_peek64(*args) | |
63 | ||
64 | class SS_MemoryPtr(SS_Memory): | |
65 | def __init__(self, this): | |
66 | _swig_setattr(self, SS_Memory, 'this', this) | |
67 | if not hasattr(self,"thisown"): _swig_setattr(self, SS_Memory, 'thisown', 0) | |
68 | self.__class__ = SS_Memory | |
69 | _SS_Ram.SS_Memory_swigregister(SS_MemoryPtr) | |
70 | ||
71 | class SS_Ram(_object): | |
72 | __swig_setmethods__ = {} | |
73 | __setattr__ = lambda self, name, value: _swig_setattr(self, SS_Ram, name, value) | |
74 | __swig_getmethods__ = {} | |
75 | __getattr__ = lambda self, name: _swig_getattr(self, SS_Ram, name) | |
76 | def __repr__(self): | |
77 | return "<%s.%s; proxy of C++ SS_Ram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,) | |
78 | def __init__(self, *args): | |
79 | _swig_setattr(self, SS_Ram, 'this', _SS_Ram.new_SS_Ram(*args)) | |
80 | _swig_setattr(self, SS_Ram, 'thisown', 1) | |
81 | ||
82 | class SS_RamPtr(SS_Ram): | |
83 | def __init__(self, this): | |
84 | _swig_setattr(self, SS_Ram, 'this', this) | |
85 | if not hasattr(self,"thisown"): _swig_setattr(self, SS_Ram, 'thisown', 0) | |
86 | self.__class__ = SS_Ram | |
87 | _SS_Ram.SS_Ram_swigregister(SS_RamPtr) | |
88 | ||
89 | ||
90 |