IlsTime
 
IlsTime
Category 
View server class
Inheritance Path 
IlsTime
Description 
This class is used to set a timeout that determines how long a view server will wait for a request.
Libraries 
<server> and <mvcomp>
Header File 
#include <ilserver/ttime.h>
Synopsis 
class IlsTime
{
public:
IlsTime(long sec,long msec);
IlsBoolean isNull();
long getSec();
long getUSec();
static IlsTime* Null;
static IlsTime* Infinite;
static IlsTime* Timeout;
 
IlsBoolean operator <(const IlsTime& t) const;
IlsBoolean operator >(const IlsTime& t) const;
friend IlsTime operator -(const IlsTime& t1, const IlsTime& t2);
friend IlsTime operator +(const IlsTime& t1, const IlsTime& t2);
};
Constructor 
IlsTime(long sec, long msec);
This constructor creates a time value of sec seconds and msec microseconds.
Member Functions 
IlsBoolean isNull();
This member function returns IlsTrue if the time value is null (that is, 0 seconds, 0 microseconds).
long getSec();
This member function returns the number of seconds contained in the time value.
long getUsec();
This member function returns the number of microseconds contained in the time value.
[static] IlsTime* Null;
This static data member represents a null time value.
[static] IlsTime* Infinite;
This static data member represents an infinite time value. Its value is a null pointer.
[static] IlsTime* Timeout;
This static data member represents a default timeout. The default value of the timeout is 20 seconds.
Operators 
IlsBoolean operator <(const IlsTime& t) const;
This operator returns IlsTrue if the time value is anterior to t.
IlsBoolean operator >(const IlsTime& t) const;
This operator returns IlsTrue if the time value is posterior to t.
friend IlsTime operator -(const IlsTime& t1, const IlsTime& t2);
This friend function subtracts t2 from t1 and returns the time value.
friend IlsTime operator +(const IlsTime& t1, const IlsTime& t2);
This friend function adds t1 to t2 and returns the time value.
See Also 
IlsMvServer

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.