projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add more utilities for ADML-HTTP image
[anna.git]
/
source
/
dbms
/
Date.cpp
diff --git
a/source/dbms/Date.cpp
b/source/dbms/Date.cpp
index
5c9afaf
..
f8811e4
100644
(file)
--- a/
source/dbms/Date.cpp
+++ b/
source/dbms/Date.cpp
@@
-47,7
+47,7
@@
Date::~Date() {
}
const char* dbms::Date::getCStringValue() const
}
const char* dbms::Date::getCStringValue() const
-
throw()
{
+{
const char* format;
if((format = a_format) == NULL)
const char* format;
if((format = a_format) == NULL)
@@
-57,7
+57,7
@@
throw() {
}
Date& Date::operator = (const Date & other)
}
Date& Date::operator = (const Date & other)
-
throw(RuntimeException
) {
+
noexcept(false
) {
if(this != &other) {
if(other.isNull() == true) {
setNull(true);
if(this != &other) {
if(other.isNull() == true) {
setNull(true);
@@
-72,7
+72,7
@@
throw(RuntimeException) {
}
void Date::setValue(const char* str)
}
void Date::setValue(const char* str)
-
throw(RuntimeException
) {
+
noexcept(false
) {
if(a_format == NULL) {
string msg(asString());
msg += " | anna::dbms::Data::setValue (const char*) requires format especification";
if(a_format == NULL) {
string msg(asString());
msg += " | anna::dbms::Data::setValue (const char*) requires format especification";
@@
-95,7
+95,7
@@
throw(RuntimeException) {
}
void Date::setValue(const Second &second)
}
void Date::setValue(const Second &second)
-
throw(RuntimeException
) {
+
noexcept(false
) {
tm* aux = localtime((time_t*) & second);
if(aux == NULL) {
tm* aux = localtime((time_t*) & second);
if(aux == NULL) {
@@
-110,7
+110,7
@@
throw(RuntimeException) {
}
void dbms::Date::set(const char* what, int& variable, const int value, const int min, const int max)
}
void dbms::Date::set(const char* what, int& variable, const int value, const int min, const int max)
-
throw(RuntimeException
) {
+
noexcept(false
) {
if(value < min) {
string msg(what);
msg += functions::asText(" must be greater than or equal to ", min);
if(value < min) {
string msg(what);
msg += functions::asText(" must be greater than or equal to ", min);
@@
-128,7
+128,7
@@
throw(RuntimeException) {
}
string dbms::Date::asString() const
}
string dbms::Date::asString() const
-
throw()
{
+{
const char* cstring;
string result("dbms::Date { ");
result += dbms::Data::asString();
const char* cstring;
string result("dbms::Date { ");
result += dbms::Data::asString();