2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-05-31 17:30:54 +00:00
qpdf/libqpdf/qpdf/QPDF_String.hh
Jay Berkenbilt 913eb5ac35 Add getTypeCode() and getTypeName()
Add virtual methods to QPDFObject, wrappers to QPDFObjectHandle, and
implementations to all the QPDF_Object types.
2013-01-22 10:01:45 -05:00

25 lines
577 B
C++

#ifndef __QPDF_STRING_HH__
#define __QPDF_STRING_HH__
#include <qpdf/QPDFObject.hh>
// QPDF_Strings may included embedded null characters.
class QPDF_String: public QPDFObject
{
public:
QPDF_String(std::string const& val);
virtual ~QPDF_String();
virtual std::string unparse();
virtual QPDFObject::object_type_e getTypeCode() const;
virtual char const* getTypeName() const;
std::string unparse(bool force_binary);
std::string getVal() const;
std::string getUTF8Val() const;
private:
std::string val;
};
#endif // __QPDF_STRING_HH__