Add no-deprecated to warnings due to dynamic exceptions.
[anna.git] / source / dbms / Data.cpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #include <anna/core/functions.hpp>
10
11 #include <anna/dbms/Data.hpp>
12
13 using namespace anna;
14
15 std::string dbms::Data::asString() const
16 throw() {
17   static const char* typeName [] = { "Integer", "String", "Float", "ShortBlock", "LongBlock", "Date", "TimeStamp" };
18   std::string result("dbms::Data { Type: ");
19   result += typeName [a_type];
20   result += " | Buffer: ";
21   result += functions::asHexString(anna_ptrnumber_cast(a_buffer));
22   result += " | MaxSize: ";
23   result += functions::asString(a_maxSize);
24   result += " | Null: ";
25   result += functions::asString(a_isNull);
26   return result += " }";
27 }
28