[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

@ -131,6 +131,8 @@ class HeritageList:
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):
@ -225,4 +227,7 @@ class heritage:
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}"