2018-08-12 14:07:22 -04:00
|
|
|
#ifndef QPDF_NAME_HH
|
|
|
|
#define QPDF_NAME_HH
|
2008-04-29 12:55:25 +00:00
|
|
|
|
|
|
|
#include <qpdf/QPDFObject.hh>
|
|
|
|
|
|
|
|
class QPDF_Name: public QPDFObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
QPDF_Name(std::string const& name);
|
|
|
|
virtual ~QPDF_Name();
|
|
|
|
virtual std::string unparse();
|
2018-12-17 17:40:29 -05:00
|
|
|
virtual JSON getJSON();
|
2013-01-22 09:57:07 -05:00
|
|
|
virtual QPDFObject::object_type_e getTypeCode() const;
|
|
|
|
virtual char const* getTypeName() const;
|
2008-04-29 12:55:25 +00:00
|
|
|
std::string getName() const;
|
|
|
|
|
|
|
|
// Put # into strings with characters unsuitable for name token
|
|
|
|
static std::string normalizeName(std::string const& name);
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::string name;
|
|
|
|
};
|
|
|
|
|
2018-08-12 14:07:22 -04:00
|
|
|
#endif // QPDF_NAME_HH
|