summaryrefslogtreecommitdiffstats
path: root/awldatablocks.py
blob: a5b1369b3f3dacf3b29abad71a6a5167055ad58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -*- coding: utf-8 -*-
#
# AWL simulator - datablocks
# Copyright 2012 Michael Buesch <m@bues.ch>
#
# Licensed under the terms of the GNU General Public License version 2.
#

from util import *


class DB(object):
	def __init__(self, index):
		self.index = index

	def fetch(self, operator):
		pass#TODO
		return 0

	def store(self, operator, value):
		pass#TODO

	def __repr__(self):
		return "DB %d" % self.index
bues.ch cgit interface