#include <Duration.h>

TSP-enforcing: No
Definition at line 30 of file Duration.h.
Public Member Functions | |
| CPKIFDuration () | |
| CPKIFDuration (const CPKIFDuration &duration_) | |
| ~CPKIFDuration () | |
| double | asSeconds () const |
| double | asDays () const |
| void | setSeconds (double seconds_) |
| void | setDays (double days_) |
| CPKIFDuration & | operator= (const CPKIFDuration &duration_) |
| bool | operator== (const CPKIFDuration &duration_) const |
| bool | operator!= (const CPKIFDuration &duration_) const |
| bool | operator> (const CPKIFDuration &duration_) const |
| bool | operator>= (const CPKIFDuration &duration_) const |
| bool | operator< (const CPKIFDuration &duration_) const |
| bool | operator<= (const CPKIFDuration &duration_) const |
| CPKIFDuration & | operator+= (const CPKIFDuration &duration_) |
| CPKIFDuration & | operator-= (const CPKIFDuration &duration_) |
| CPKIFDuration | operator+ (const CPKIFDuration &duration_) const |
| CPKIFDuration | operator- (const CPKIFDuration &duration_) const |
| CPKIFTime | operator+ (const CPKIFTime &time_) |
| CPKIFDuration::CPKIFDuration | ( | ) |
| CPKIFDuration::CPKIFDuration | ( | const CPKIFDuration & | duration_ | ) |
Interface: External
Copy constructor
| duration_ | [in] Reference to a CPKIFDuration object containing values to use when creating and initializing a new instance of CPKIFDuration |
Definition at line 41 of file Duration.cpp.
References m_impl.
| CPKIFDuration::~CPKIFDuration | ( | ) |
Interface: External
The function destroys an instance of CPKIFDuration.
Definition at line 56 of file Duration.cpp.
| double CPKIFDuration::asSeconds | ( | ) | const |
Interface: External
This function returns a double containing the value of the duration as a number of seconds.
Definition at line 77 of file Duration.cpp.
Referenced by CPKIFTime::operator+(), CPKIFTime::operator+=(), CPKIFTime::operator-(), and CPKIFTime::operator-=().
| double CPKIFDuration::asDays | ( | ) | const |
Interface: External
This function returns a double containing the value of the duration as a number of days.
Definition at line 89 of file Duration.cpp.
| void CPKIFDuration::setSeconds | ( | double | seconds_ | ) |
Interface: External
This function is used to specify the value of the duration as a number of seconds.
| seconds_ | [in] Double containing the value of the duration expressed as a number of seconds |
Definition at line 122 of file Duration.cpp.
Referenced by PKIFHTTP::AddBlacklistedHttpServer(), PKIFLDAP::AddBlacklistedServer(), PKIFHTTP::GetHttpServerBlacklist(), PKIFLDAP::GetServerBlacklist(), PKIFLDAP::IsBlacklisted(), PKIFHTTP::IsHttpServerBlacklisted(), and CPKIFTime::operator-().
| void CPKIFDuration::setDays | ( | double | days_ | ) |
Interface: External
This function is used to specify the value of the duration as a number of days.
| days_ | [in] Double containing the value of the duration expressed as a number of days |
Definition at line 135 of file Duration.cpp.
| CPKIFDuration & CPKIFDuration::operator= | ( | const CPKIFDuration & | duration_ | ) |
Interface: External
This function assigns the value from the object passed via the duration parameter to object on which this function was invoked.
| duration_ | [in] Reference to a CPKIFDuration object containing the value to assign |
Definition at line 152 of file Duration.cpp.
References m_impl.
| bool CPKIFDuration::operator== | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns true if the duration object passed via the duration_ parameter is equal to the duration value held by the object on which this function was invoked.
| True | if the duration object passed via the duration_ parameter is equal to the duration value held by the object on which this function was invoked. | |
| False | if the duration object passed via the duration_ parameter is not equal to the duration value held by the object on which this function was invoked. |
| duration_ | [in] Reference to a CPKIFDuration object containing the value to compare |
Definition at line 168 of file Duration.cpp.
References m_impl.
| bool CPKIFDuration::operator!= | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns true if the value passed via the duration_ parameter is not equal to the value help by the object on which this function was invoked and false otherwise.
| True | if the duration object passed via the duration_ parameter is not equal to the duration value held by the object on which this function was invoked. | |
| False | if the duration object passed via the duration_ parameter is equal to the duration value held by the object on which this function was invoked. |
| duration_ | [in] Reference to a CPKIFDuration object containing the value to compare |
Definition at line 183 of file Duration.cpp.
References m_impl.
| bool CPKIFDuration::operator> | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns true if the duration object passed via the duration_ parameter is less than the duration value held by the object on which this function was invoked.
| True | if the duration object passed via the duration_ parameter is less to the duration value held by the object on which this function was invoked. | |
| False | if the duration object passed via the duration_ parameter is not less to the duration value held by the object on which this function was invoked. |
| duration_ | [in] Reference to a CPKIFDuration object containing the value to compare |
Definition at line 198 of file Duration.cpp.
References m_impl.
| bool CPKIFDuration::operator>= | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns true if the duration object passed via the duration_ parameter is greater than or equal to the duration value held by the object on which this function was invoked.
| True | if the duration object passed via the duration_ parameter is greater than or equal to the duration value held by the object on which this function was invoked. | |
| False | if the duration object passed via the duration_ parameter is not greater than or equal to the duration value held by the object on which this function was invoked. |
| duration_ | [in] Reference to a CPKIFDuration object containing the value to compare |
Definition at line 213 of file Duration.cpp.
References m_impl.
| bool CPKIFDuration::operator< | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns true if the CPKIFDuration object passed via the duration_ parameter is greater than the CPKIFDuration object on which this function was invoked.
| True | if the duration object passed via the duration_ parameter is greater then the duration value held by the object on which this function was invoked. | |
| False | if the duration object passed via the duration_ parameter is not greater then to the duration value held by the object on which this function was invoked. |
| duration_ | [in] Reference to a CPKIFDuration object containing the value to compare |
Definition at line 228 of file Duration.cpp.
References m_impl.
| bool CPKIFDuration::operator<= | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns true if the duration object passed via the duration_ parameter is greater or equal to the duration value held by the object on which this function was invoked
| True | if the duration object passed via the duration_ parameter is greater or equal to the duration value held by the object on which this function was invoked. | |
| False | if the duration object passed via the duration_ parameter is not greater or equal to the duration value held by the object on which this function was invoked. |
| duration_ | [in] Reference to a CPKIFDuration object containing the value to compare |
Definition at line 243 of file Duration.cpp.
References m_impl.
| CPKIFDuration & CPKIFDuration::operator+= | ( | const CPKIFDuration & | duration_ | ) |
Interface: External
This function adds the value from the object passed via the duration parameter to current duration value.
| duration_ | [in] Reference to a CPKIFDuration object containing the value to add |
Definition at line 256 of file Duration.cpp.
References m_impl.
| CPKIFDuration & CPKIFDuration::operator-= | ( | const CPKIFDuration & | duration_ | ) |
Interface: External
This function subtracts the value from the object passed via the duration parameter from the current duration value.
| duration_ | [in] Reference to a CPKIFDuration object containing the value to subtract |
Definition at line 271 of file Duration.cpp.
References m_impl.
| CPKIFDuration CPKIFDuration::operator+ | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function return an instance (either CPKIFDuration or CPKIFTime) containing the sum of the specified duration or time object and the current duration value.
| duration_ | [in] Reference to a CPKIFDuration object containing the value to add |
Definition at line 287 of file Duration.cpp.
References m_impl.
| CPKIFDuration CPKIFDuration::operator- | ( | const CPKIFDuration & | duration_ | ) | const |
Interface: External
This function returns an instance containing the difference of the specified duration object and the current duration value.
| duration_ | [in] Reference to a CPKIFDuration object containing the value to subtract |
Definition at line 302 of file Duration.cpp.
References m_impl.
Interface: External
This function return an instance (either CPKIFDuration or CPKIFTime) containing the sum of the specified duration or time object and the current duration value.
| time_ | [in] Reference to a CPKIFTime object to which the duration value should be added |
Definition at line 318 of file Duration.cpp.
1.5.6