diff options
Diffstat (limited to 'libqpdf/QPDF_Integer.cc')
-rw-r--r-- | libqpdf/QPDF_Integer.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Integer.cc b/libqpdf/QPDF_Integer.cc new file mode 100644 index 00000000..988519d0 --- /dev/null +++ b/libqpdf/QPDF_Integer.cc @@ -0,0 +1,25 @@ + +#include <qpdf/QPDF_Integer.hh> + +#include <qpdf/QUtil.hh> + +QPDF_Integer::QPDF_Integer(int val) : + val(val) +{ +} + +QPDF_Integer::~QPDF_Integer() +{ +} + +std::string +QPDF_Integer::unparse() +{ + return QUtil::int_to_string(this->val); +} + +int +QPDF_Integer::getVal() const +{ + return this->val; +} |