#include <zeitverlauf.h>
Öffentliche Methoden | |
MinSec (int mins=0, double secs=0, long milliseconds=0) | |
int | mins () const |
double | secs () const |
int | millisecs () const |
double | toSecs () const |
double | secsTo (const MinSec &rhs) const |
MinSec | addSecs (double s) const |
bool | liesVonTextStream (QTextStream &s) |
QString | toQString () const |
Öffentliche, statische Methoden | |
void | testFloorInt () |
void | testMinSec () |
Freundbeziehungen | |
bool | operator< (const MinSec &x, const MinSec &y) |
bool | operator== (const MinSec &x, const MinSec &y) |
MinSec | operator- (const MinSec &x, const MinSec &y) |
|
Definiert in Zeile 17 der Datei zeitverlauf.cpp. Benutzt nachkomma(). Wird benutzt von addSecs(), liesVonTextStream() und testMinSec().
00017 { 00018 double allesInSekunden= mins*60 + secs + (double) milliseconds/1000; 00019 Min=allesInSekunden / 60; 00020 00021 Sec=((int) allesInSekunden) % 60 ; 00022 Sec += nachkomma(allesInSekunden); 00023 }; |
|
Definiert in Zeile 33 der Datei zeitverlauf.cpp. Benutzt MinSec().
00033 { 00034 return MinSec(0, this->toSecs()+s); 00035 }; |
|
Definiert in Zeile 103 der Datei zeitverlauf.cpp. Benutzt MinSec(). Wird benutzt von RatingVerlauf::liesGesamtenRatingVerlauf() und testMinSec().
00103 { 00104 00105 QString in; 00106 s >> in; 00107 int minutes; double seconds; 00108 int Doppelpunkt; 00109 Doppelpunkt=in.find(":"); 00110 if (Doppelpunkt<=0) return false; 00111 00112 bool OK1,OK2; 00113 OK1=true;OK2=true; 00114 minutes=in.left(Doppelpunkt).toInt(&OK1); 00115 00116 // qDebug (in.right(in.length()-Doppelpunkt-1)); 00117 seconds=in.right(in.length()-Doppelpunkt-1).toDouble(&OK2); 00118 00119 *this=MinSec(minutes, seconds); 00120 return OK1 && OK2; 00121 } |
|
Definiert in Zeile 62 der Datei zeitverlauf.h. Benutzt nachkomma(), runden() und secs(). Wird benutzt von testMinSec() und toQString().
|
|
Definiert in Zeile 60 der Datei zeitverlauf.h. Wird benutzt von LFTVideoDialog::openKonfigDialog(), testMinSec(), toQString() und toSecs().
00060 {return Min;};
|
|
Definiert in Zeile 61 der Datei zeitverlauf.h. Wird benutzt von millisecs(), LFTVideoDialog::openKonfigDialog(), testMinSec(), toQString() und toSecs().
00061 {return Sec;};
|
|
Definiert in Zeile 29 der Datei zeitverlauf.cpp. Benutzt toSecs(). Wird benutzt von operator-() und testMinSec().
|
|
Definiert in Zeile 123 der Datei zeitverlauf.cpp. Benutzt nachkomma() und runden().
00123 { 00124 qDebug("\ntestFloorInt"); 00125 double a=123.456; 00126 double b=-123.456; 00127 qDebug("floor(...): %f", floor(a)); 00128 qDebug("(int)...: %d", (int)a); 00129 qDebug("floor(...): %f", floor(b)); 00130 qDebug("(int)...: %d", (int)b); 00131 qDebug("positiv: zahl - (int)zahl...: %f", a-(int)a); 00132 qDebug("negativ: zahl - (int)zahl...: %f", b-(int)b); 00133 qDebug("negativ: fmod(zahl,1)...: %f", fmod(b,1)); 00134 qDebug("positiv: nachkomma(zahl)...: %f", nachkomma(a)); 00135 qDebug("negativ: nachkomma(zahl)...: %f", nachkomma(b)); 00136 a=1.5; b=-1.5; 00137 qDebug("runden(%f) = %d", a, runden(a)); 00138 qDebug("runden(%f) = %d", b, runden(b)); 00139 a=1.4999; b=-1.4999; 00140 qDebug("runden(%f) = %d", a, runden(a)); 00141 qDebug("runden(%f) = %d", b, runden(b)); 00142 00143 qDebug("\n"); 00144 }; |
|
Definiert in Zeile 147 der Datei zeitverlauf.cpp. Benutzt liesVonTextStream(), millisecs(), mins(), MinSec(), MinSec(), secs(), secsTo(), toQString() und toSecs().
00147 { 00148 qDebug("\ntestMinSec"); 00149 MinSec ms(1,12); 00150 qDebug("%f", ms.toSecs()); 00151 qDebug(ms.toQString()); 00152 MinSec ms2(2,13.05); 00153 qDebug(ms2.toQString()); 00154 qDebug("%f\n", ms.secsTo(ms2)); 00155 00156 ms=MinSec (1,12,0); 00157 qDebug("%f", ms.toSecs()); 00158 qDebug(ms.toQString()); 00159 ms2=MinSec (2,13,50); 00160 qDebug(ms2.toQString()); 00161 qDebug("%f\n", ms.secsTo(ms2)); 00162 00163 QString testdata="12:34.567"; 00164 MinSec liesZeitEin; 00165 liesZeitEin.liesVonTextStream( QTextIStream(&testdata) ); 00166 qDebug(liesZeitEin.toQString() ); 00167 00168 QString testdata2="2:4.6"; 00169 liesZeitEin.liesVonTextStream( QTextIStream(&testdata2) ); 00170 qDebug(liesZeitEin.toQString() ); 00171 00172 qDebug("In mm, ss, ttt zerlegt: %d, %f, %d", 00173 liesZeitEin.mins(), liesZeitEin.secs(), liesZeitEin.millisecs()); 00174 00175 qDebug("\n"); 00176 } |
|
Definiert in Zeile 97 der Datei zeitverlauf.cpp. Benutzt leading2Zeros(), leadingZero(), millisecs(), mins() und secs(). Wird benutzt von InfoSpeichern::DatenSpeicherStream(), RatingVerlauf::printRating(), testMinSec() und LFTVideoDialog::~LFTVideoDialog().
00097 { 00098 QString temp=leadingZero(mins())+":"+leadingZero(secs()); 00099 temp+="."+leading2Zeros(millisecs()); 00100 return temp; 00101 }; |
|
Definiert in Zeile 25 der Datei zeitverlauf.cpp. Wird benutzt von VerlaufsAuswertung::GesamtDauer(), LFTVideoDialog::openKonfigDialog(), operator<(), operator==(), secsTo(), RatingVerlauf::speichereGesamtenRatingVerlauf() und testMinSec().
|
|
Definiert in Zeile 45 der Datei zeitverlauf.cpp.
|
|
Definiert in Zeile 41 der Datei zeitverlauf.cpp.
|
|
Definiert in Zeile 37 der Datei zeitverlauf.cpp.
|