diff options
author | HyungKyu Song <hk76.song@samsung.com> | 2013-02-16 00:53:53 +0900 |
---|---|---|
committer | HyungKyu Song <hk76.song@samsung.com> | 2013-02-16 00:53:53 +0900 |
commit | 630bf4ddf6be4761ce511907bad30a9d7cffb29a (patch) | |
tree | 3b7e9e6c8da998871d335586b9a8d475b8a4aa68 /libqpdf/QPDF_Real.cc | |
parent | 004ea5d29ad94c8310c81ea071c0176bfddc46f7 (diff) | |
download | qpdf-tizen_2.0.tar.gz qpdf-tizen_2.0.tar.bz2 qpdf-tizen_2.0.zip |
Diffstat (limited to 'libqpdf/QPDF_Real.cc')
-rw-r--r-- | libqpdf/QPDF_Real.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Real.cc b/libqpdf/QPDF_Real.cc new file mode 100644 index 0000000..466ddb7 --- /dev/null +++ b/libqpdf/QPDF_Real.cc @@ -0,0 +1,29 @@ +#include <qpdf/QPDF_Real.hh> + +#include <qpdf/QUtil.hh> + +QPDF_Real::QPDF_Real(std::string const& val) : + val(val) +{ +} + +QPDF_Real::QPDF_Real(double value, int decimal_places) : + val(QUtil::double_to_string(value, decimal_places)) +{ +} + +QPDF_Real::~QPDF_Real() +{ +} + +std::string +QPDF_Real::unparse() +{ + return this->val; +} + +std::string +QPDF_Real::getVal() +{ + return this->val; +} |