//------------------------------------------------------------------------------
//---------------------------------------------------------- Time::updateBasic()
//------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Time::updateBasic() throw(anna::RuntimeException) {
+void anna::diameter::codec::basetypes::Time::updateBasic() noexcept(false) {
std::string result;
result += (char)(a_ntpTimestamp >> 24);
result += (char)(a_ntpTimestamp >> 16);
//------------------------------------------------------------------------------
//--------------------------------------------------- Time::setPrintableString()
//------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Time::setPrintableString(const char * printableString) throw(anna::RuntimeException) {
+void anna::diameter::codec::basetypes::Time::setPrintableString(const char * printableString) noexcept(false) {
setTimestamp(atoi(printableString));
}
//------------------------------------------------------------------------------
//------------------------------------------------------------- Time::asString()
//------------------------------------------------------------------------------
-std::string anna::diameter::codec::basetypes::Time::asString() throw(anna::RuntimeException) {
+std::string anna::diameter::codec::basetypes::Time::asString() noexcept(false) {
std::string result = asPrintableString();
anna::time::Date date;
date.storeNtp(a_ntpTimestamp);
//------------------------------------------------------------------------------
//--------------------------------------------------------------- Time::decode()
//------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Time::decode(const char* buffer, const int size) throw(anna::RuntimeException) {
+void anna::diameter::codec::basetypes::Time::decode(const char* buffer, const int size) noexcept(false) {
if(!buffer)
throw anna::RuntimeException("Time::decode | Null Buffer provided", ANNA_FILE_LOCATION);
//------------------------------------------------------------------------------
//--------------------------------------------------------- Time::getTimestamp()
//------------------------------------------------------------------------------
-anna::U32 anna::diameter::codec::basetypes::Time::getTimestamp(Timestamp::_v timestampType) const throw() {
+anna::U32 anna::diameter::codec::basetypes::Time::getTimestamp(Timestamp::_v timestampType) const {
return ((timestampType == Timestamp::NTP) ? a_ntpTimestamp : (a_ntpTimestamp - TIMESTAMP_OFFSET_NTP1900_OVER_UNIX1970));
}
//------------------------------------------------------------------------------
//--------------------------------------------------------- Time::setTimestamp()
//------------------------------------------------------------------------------
-void anna::diameter::codec::basetypes::Time::setTimestamp(const U32& timestamp, Timestamp::_v timestampType) throw() {
+void anna::diameter::codec::basetypes::Time::setTimestamp(const U32& timestamp, Timestamp::_v timestampType) {
a_ntpTimestamp = (timestampType == Timestamp::NTP) ? timestamp : (timestamp + TIMESTAMP_OFFSET_NTP1900_OVER_UNIX1970);
updateBasic();
}