Lines Matching full:definition
26 """Class for port definition in ini file.
31 definition: a string for the content after "=" in port definition line.
32 parameter: a Parameter namedtuple which is parsed from definition.
36 """Parses a port definition line in ini file and init a Port object.
39 line: A string possibly containing port definition line like
43 A Port object if input is a valid port definition line. Returns
44 None if input is not a valid port definition line.
51 definition = parse_values[2]
52 return Port(io, index, definition)
56 def __init__(self, io, index, definition):
59 Initializes a port with io, index and definition. The definition will be
66 definition: a string for the content after "=" in port definition line.
70 self.definition = definition
71 result = re.match(r'(\S+)\s+; (.+)', definition)
78 """Returns a port definition line which is used in ini file."""
83 line += self.definition
96 """Class for non-port definition in ini file.
100 definition: A string representing the non-port definition.
104 """Parses a non-port definition line in ini file and init a NonPort object.
107 line: A string possibly containing non-port definition line like
111 A NonPort object if input is a valid non-port definition line. Returns
112 None if input is not a valid non-port definition line.
118 definition = parse_values[1]
119 return NonPort(name, definition)
123 def __init__(self, name, definition):
124 """Initializes a NonPort <name>=<definition>.
128 definition: A string representing the non-port definition.
131 self.definition = definition
137 A string "<name>=<definition>".
139 line = '%s=%s' % (self.name, self.definition)
148 """Class for section definition in ini file.
240 Inserts a line containing port or non-port definition to this section.
266 Currently there is no ordering for non-port definition. This method just
318 """Prints the section definition to output.