summaryrefslogtreecommitdiffstats
path: root/fportlisthash.py
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-04-13 21:07:42 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-04-13 21:07:42 +0200
commita62cb4e37d008d47480cdd6c25d928044b8afe31 (patch)
treef16e0109caf00d8989d56e2e5392851117db8814 /fportlisthash.py
downloadpyevenja-a62cb4e37d008d47480cdd6c25d928044b8afe31.zip
pyevenja-a62cb4e37d008d47480cdd6c25d928044b8afe31.tar.gz
initial commit, old code from ~2007
Diffstat (limited to 'fportlisthash.py')
-rw-r--r--fportlisthash.py57
1 files changed, 57 insertions, 0 deletions
diff --git a/fportlisthash.py b/fportlisthash.py
new file mode 100644
index 0000000..1fffd3c
--- /dev/null
+++ b/fportlisthash.py
@@ -0,0 +1,57 @@
+#/***************************************************************************
+# fevendata.h
+# -----------
+# begin : sam nov 2 2002
+# copyright : (C) 1992-2004 by Fabian Padilla
+# email : fp@bridgethink.com
+# ***************************************************************************/
+# /***************************************************************************
+#
+# fportlisthash.py
+# -------------------
+# begin : tue mar 09 2004
+# copyright : (C) 2004 by Jeremy Zurcher
+# email : tzurtch@bluemail.ch
+#
+# ***************************************************************************/
+
+# /***************************************************************************
+# * *
+# * This program is free software; you can redistribute it and/or modify *
+# * it under the terms of the Foundation Public License as published by *
+# * bridgethink sarl; either version 2 of the License, or *
+# * (at your option) any later version. *
+# * *
+# ***************************************************************************/
+
+#
+# from C++ to python by Jeremy Zurcher <jeremy@asynk.ch>
+#
+
+"""/** Inherited from Fport to add a listHash.
+
+ function : maintain a list of single evenDatas ( single by the linkValue) in
+ FevenBoard : to merge and or maintain a list of evenDatas
+ Frouter : to send the evenDatas to the right destinations
+
+ description : work as Fport.
+
+ *@author Fabian Padilla
+ */"""
+
+__all__ = ["FportListHash"]
+
+from fport import Fport
+from flisthash import FlistHash
+
+
+class FportListHash(Fport):
+ """ This is a Fport with Flist attribute"""
+
+ def __init__(self):
+ Fport.__init__(self) # force constructor
+ self.listHash = FlistHash() #/** List of inherited class from FstringHash ( found them faster). */
+
+ def __str__(self):
+ return "\t"+Fport.__str__(self)+\
+ "FportListHash - list : "+str(self.listHash)+"\n"