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/LongBlock.hpp>
15 dbms::LongBlock& dbms::LongBlock::operator = (const dbms::LongBlock & other)
16 throw(RuntimeException) {
20 if(other.isNull() == true) {
25 return operator= (other.a_value);
28 dbms::LongBlock& dbms::LongBlock::operator = (const anna::DataBlock & value)
29 throw(RuntimeException) {
31 setNull(a_value.isEmpty());
35 std::string dbms::LongBlock::asString() const
37 std::string result("dbms::LongBlock { ");
38 result += dbms::Data::asString();
39 result += " | Size: ";
44 result += functions::asString(a_value.getSize());
46 return result += " }";