Type.py (10472:399f35ed5cca) Type.py (10895:287285860dd6)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 47 unchanged lines hidden (view full) ---

56 # Append with machine name
57 self.c_ident = "%s_%s" % (machine, ident)
58
59 self.pairs.setdefault("desc", "No description avaliable")
60
61 # check for interface that this Type implements
62 if "interface" in self:
63 interface = self["interface"]
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 47 unchanged lines hidden (view full) ---

56 # Append with machine name
57 self.c_ident = "%s_%s" % (machine, ident)
58
59 self.pairs.setdefault("desc", "No description avaliable")
60
61 # check for interface that this Type implements
62 if "interface" in self:
63 interface = self["interface"]
64 if interface in ("Message", "NetworkMessage"):
64 if interface in ("Message"):
65 self["message"] = "yes"
65 self["message"] = "yes"
66 if interface == "NetworkMessage":
67 self["networkmessage"] = "yes"
68
69 # FIXME - all of the following id comparisons are fragile hacks
70 if self.ident in ("CacheMemory"):
71 self["cache"] = "yes"
72
73 if self.ident in ("TBETable"):
74 self["tbe"] = "yes"
75

--- 16 unchanged lines hidden (view full) ---

92
93 self.data_members = orderdict()
94 self.methods = {}
95 self.enums = orderdict()
96
97 @property
98 def isPrimitive(self):
99 return "primitive" in self
66
67 # FIXME - all of the following id comparisons are fragile hacks
68 if self.ident in ("CacheMemory"):
69 self["cache"] = "yes"
70
71 if self.ident in ("TBETable"):
72 self["tbe"] = "yes"
73

--- 16 unchanged lines hidden (view full) ---

90
91 self.data_members = orderdict()
92 self.methods = {}
93 self.enums = orderdict()
94
95 @property
96 def isPrimitive(self):
97 return "primitive" in self
98
100 @property
99 @property
101 def isNetworkMessage(self):
102 return "networkmessage" in self
103 @property
104 def isMessage(self):
105 return "message" in self
106 @property
107 def isBuffer(self):
108 return "buffer" in self
109 @property
110 def isInPort(self):
111 return "inport" in self

--- 669 unchanged lines hidden ---
100 def isMessage(self):
101 return "message" in self
102 @property
103 def isBuffer(self):
104 return "buffer" in self
105 @property
106 def isInPort(self):
107 return "inport" in self

--- 669 unchanged lines hidden ---