* indentations + whitespace cleanup
This commit is contained in:
parent
8457e39efe
commit
56c6edab04
285 changed files with 6068 additions and 6223 deletions
|
|
@ -3,7 +3,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// eoSeconsElapsedContinue.h
|
||||
// (c) Maarten Keijzer, 2007
|
||||
/*
|
||||
/*
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
#include <eoContinue.h>
|
||||
|
||||
/**
|
||||
/**
|
||||
Timed continuator: continues until a number of seconds is used
|
||||
|
||||
@ingroup Continuators
|
||||
|
|
@ -44,29 +44,29 @@ public:
|
|||
virtual bool operator() ( const eoPop<EOT>& _vEO ) {
|
||||
time_t now = time(0);
|
||||
time_t diff = now - start;
|
||||
|
||||
|
||||
if (diff >= seconds) return false; // stop
|
||||
return true;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
virtual std::string className(void) const { return "eoSecondsElapsedContinue"; }
|
||||
|
||||
/** REad from a stream
|
||||
* @param __is the ostream to read from
|
||||
*/
|
||||
void readFrom (std :: istream & __is) {
|
||||
|
||||
__is >> start >> seconds;
|
||||
|
||||
__is >> start >> seconds;
|
||||
}
|
||||
|
||||
|
||||
/** Print on a stream
|
||||
* @param __os the ostream to print on
|
||||
*/
|
||||
void printOn (std :: ostream & __os) const {
|
||||
|
||||
__os << start << ' ' << seconds << std :: endl;
|
||||
|
||||
__os << start << ' ' << seconds << std :: endl;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
@ -74,4 +74,3 @@ public:
|
|||
*/
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Reference in a new issue