projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring orienté objet.
[minwii.git]
/
src
/
minwii
/
logfilereader.py
diff --git
a/src/minwii/logfilereader.py
b/src/minwii/logfilereader.py
index
50da29c
..
57cdc60
100755
(executable)
--- a/
src/minwii/logfilereader.py
+++ b/
src/minwii/logfilereader.py
@@
-99,6
+99,16
@@
class LogFileReader(object) :
mode = l.split(':', 1)[1].strip()
return mode
mode = l.split(':', 1)[1].strip()
return mode
+ @inplaceread
+ def getHID(self) :
+ "retourne l'interface homme-machine utilisée"
+ for l in self :
+ if l.startswith('APP HID :') :
+ break
+
+ mode = l.split(':', 1)[1].strip()
+ return mode
+
@inplaceread
def getFirstEventTicks(self) :
"retourne le timecode du premier événement (entier)"
@inplaceread
def getFirstEventTicks(self) :
"retourne le timecode du premier événement (entier)"
@@
-177,7
+187,10
@@
class LogFileReader(object) :
f = self.logfile
f.seek(0)
before = f.readline()
f = self.logfile
f.seek(0)
before = f.readline()
- after = f.read()
+ line = f.readline()
+ while line.startswith('METADATA ') :
+ line = f.readline()
+ after = line + f.read()
lines = []
for name, value in metadata :
lines = []
for name, value in metadata :