1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
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 //
9 #include <anna/core/functions.hpp>
11 #include <anna/dbms/Data.hpp>
15 std::string dbms::Data::asString() const
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 += " }";