mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-31 10:58:25 +00:00
913eb5ac35
Add virtual methods to QPDFObject, wrappers to QPDFObjectHandle, and implementations to all the QPDF_Object types.
23 lines
532 B
C++
23 lines
532 B
C++
#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();
|
|
virtual std::string unparse();
|
|
virtual QPDFObject::object_type_e getTypeCode() const;
|
|
virtual char const* getTypeName() const;
|
|
std::string getVal();
|
|
|
|
private:
|
|
// Store reals as strings to avoid roundoff errors.
|
|
std::string val;
|
|
};
|
|
|
|
#endif // __QPDF_REAL_HH__
|