2008-04-29 12:55:25 +00:00
|
|
|
#include <qpdf/QPDF_Integer.hh>
|
|
|
|
|
|
|
|
#include <qpdf/QUtil.hh>
|
|
|
|
|
2012-06-23 19:08:21 +00:00
|
|
|
QPDF_Integer::QPDF_Integer(long long val) :
|
2008-04-29 12:55:25 +00:00
|
|
|
val(val)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
QPDF_Integer::~QPDF_Integer()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::string
|
|
|
|
QPDF_Integer::unparse()
|
|
|
|
{
|
|
|
|
return QUtil::int_to_string(this->val);
|
|
|
|
}
|
|
|
|
|
2013-01-22 14:57:07 +00:00
|
|
|
QPDFObject::object_type_e
|
|
|
|
QPDF_Integer::getTypeCode() const
|
|
|
|
{
|
|
|
|
return QPDFObject::ot_integer;
|
|
|
|
}
|
|
|
|
|
|
|
|
char const*
|
|
|
|
QPDF_Integer::getTypeName() const
|
|
|
|
{
|
|
|
|
return "integer";
|
|
|
|
}
|
|
|
|
|
2012-06-23 19:08:21 +00:00
|
|
|
long long
|
2008-04-29 12:55:25 +00:00
|
|
|
QPDF_Integer::getVal() const
|
|
|
|
{
|
|
|
|
return this->val;
|
|
|
|
}
|