summaryrefslogtreecommitdiffstats
path: root/fportlisthash.py
blob: 1fffd3cda7846d9d2f6dd73bdb6a930505d0cf80 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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"