aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Integer.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2008-04-29 14:55:25 +0200
committerJay Berkenbilt <ejb@ql.org>2008-04-29 14:55:25 +0200
commit9a0b88bf7777c153dc46ace22db74ef24d51583a (patch)
treef567ac1cf2bf5071a611eb49323a935b6ac938ff /libqpdf/QPDF_Integer.cc
downloadqpdf-9a0b88bf7777c153dc46ace22db74ef24d51583a.tar.zst
update release date to actual daterelease-qpdf-2.0
git-svn-id: svn+q:///qpdf/trunk@599 71b93d88-0707-0410-a8cf-f5a4172ac649
Diffstat (limited to 'libqpdf/QPDF_Integer.cc')
-rw-r--r--libqpdf/QPDF_Integer.cc25
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;
+}