[DEV] add write of class

This commit is contained in:
Edouard DUPIN 2016-02-09 21:55:43 +01:00
parent f069299a53
commit 77358efa48
3 changed files with 11 additions and 1 deletions

View File

@ -130,7 +130,9 @@ class HeritageList:
append_to_list(self.src['src'], element.src['src'])
append_to_list(self.src['dynamic'], element.src['dynamic'])
append_to_list(self.src['static'], element.src['static'])
def __repr__(self):
return "{HeritageList:" + str(self.list_heritage) + "}"
class heritage:
def __init__(self, module, target):
@ -224,5 +226,8 @@ class heritage:
if self.flags["c++-version"] > ver:
ver = self.flags["c++-version"]
self.flags["c++-version"] = ver
def __repr__(self):
return "{Heritage:" + str(self.name) + " ... }"

View File

@ -124,6 +124,9 @@ class Module:
}
self.sub_heritage_list = None
def __repr__(self):
return "{lutin.Module:" + str(self.name) + "}"
def get_type(self):
return self.type
##

View File

@ -47,6 +47,8 @@ class System:
else:
self.action_on_state[name_of_state].append([level, name, action])
def __repr__(self):
return "{lutin.System}"