1 
2 /* Web Polygraph       http://www.web-polygraph.org/
3  * Copyright 2003-2011 The Measurement Factory
4  * Licensed under the Apache License, Version 2.0 */
5 
6 #ifndef POLYGRAPH__BASE_OBJTIMES_H
7 #define POLYGRAPH__BASE_OBJTIMES_H
8 
9 class ObjLifeCycle;
10 class OLog;
11 
12 // holds various object (entity) timestamps
13 class ObjTimes {
14 	friend class ObjLifeCycle;
15 
16 	public:
ObjTimes()17 		ObjTimes() { reset(); }
18 
19 		void reset();
20 
lmt()21 		Time lmt() const { return theLmt; }
exp()22 		Time exp() const { return theExp; }
showLmt()23 		bool showLmt() const { return doShowLmt; }
knownExp()24 		bool knownExp() const { return theExp >= 0; }
25 
26 		void store(OLog &log) const;
27 
28 	protected:
29 		Time theLmt;
30 		Time theExp;
31 		bool doShowLmt;
32 };
33 
34 #endif
35