blob: 7c4f3ce3cbff00727218a001a53e6528223e7159 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef __QPDF_REAL_HH__
#define __QPDF_REAL_HH__
#include <qpdf/QPDFObject.hh>
class QPDF_Real: public QPDFObject
{
public:
QPDF_Real(std::string const& val);
QPDF_Real(double value, int decimal_places = 0);
virtual ~QPDF_Real();
std::string unparse();
std::string getVal();
private:
// Store reals as strings to avoid roundoff errors.
std::string val;
};
#endif // __QPDF_REAL_HH__
|