33static char THIS_FILE[] = __FILE__;
71 nLen = str.
Size() - nOffset;
79 str.
m_pChars.data() + nOffset + nLen);
101 for (
const uint8_t ch : as_const(
m_pChars))
104 if (ch ==
'=' || ch ==
'\'' || ch < ' ' || ch >= 127)
106 fprintf(fd,
"=%02X", ch);
120 int nLength = std::min(
Size(), str.
Size());
156#ifdef __cpp_lib_containers_ranges
290 fprintf(fd,
"%s ",
m_fDirect ?
"true" :
"false");
294 fprintf(fd,
":IndirectRef ");
319 MHERROR(
"Expected indirect reference");
348 fprintf(fd,
":IndirectRef ");
373 bool fNegative =
false;
385 if (ch < '0' || ch >
'9')
390 v = (v * 10) + ch -
'0';
427 fprintf(fd,
":IndirectRef ");
484 fprintf(fd,
":IndirectRef ");
523 MHERROR(
"Expected direct or indirect content reference");
535 fprintf(fd,
":IndirectRef ");
560 switch (value.m_Type)
613 MHERROR(QString(
"Type mismatch - expected %1 found %2")
635 switch (
p->GetTagNo())
670 fprintf(fd,
":GInteger ");
674 fprintf(fd,
":GBoolean ");
678 fprintf(fd,
":GOctetString ");
682 fprintf(fd,
":GObjectRef ");
686 fprintf(fd,
":GObjectRef ");
@ C_NEW_GENERIC_OCTETSTRING
@ C_NEW_GENERIC_CONTENT_REF
@ C_NEW_GENERIC_OBJECT_REF
void PrintTabs(FILE *fd, int n)
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const
void SetFromString(const char *str, int nLen)
void Copy(const MHColour &col)
void Initialise(MHParseNode *p, MHEngine *engine)
MHOctetString m_contentRef
void Copy(const MHContentRef &cr)
void PrintMe(FILE *fd, int nTabs) const
bool Equal(const MHContentRef &cr, MHEngine *engine) const
QString Printable() const
MHRoot * FindObject(const MHObjectRef &oRef, bool failOnNotFound=true)
QString GetPathName(const MHOctetString &str)
MHOctetString & GetGroupId()
void Copy(const MHFontBody &fb)
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
MHObjectRef * GetReference()
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
bool GetValue(MHEngine *engine) const
void GetValue(MHContentRef &ref, MHEngine *engine) const
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
int GetValue(MHEngine *engine) const
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const
void GetValue(MHObjectRef &ref, MHEngine *engine) const
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
void GetValue(MHOctetString &str, MHEngine *engine) const
bool Equal(const MHObjectRef &objr, MHEngine *engine) const
QString Printable() const
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
void Copy(const MHObjectRef &objr)
void Copy(const MHOctetString &str)
unsigned char GetAt(int i) const
void Append(const MHOctetString &str)
std::vector< uint8_t > m_pChars
void PrintMe(FILE *fd, int nTabs) const
QString Printable() const
int Compare(const MHOctetString &str) const
MHGenericContentRef m_contentRefVal
MHGenericOctetString m_strVal
MHGenericBoolean m_boolVal
MHGenericObjectRef m_objRefVal
MHGenericInteger m_intVal
MHObjectRef * GetReference()
enum MHParameter::ParamTypes P_Null
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const
MHParseNode * GetArgN(int n)
static void Failure(const char *p)
void GetStringValue(MHOctetString &str)
enum NodeType m_nNodeType
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
virtual void GetVariableValue(MHUnion &, MHEngine *)
QString Printable() const
MHContentRef m_contentRefVal
void GetValueFrom(const MHParameter &value, MHEngine *engine)
void CheckType(enum UnionTypes t) const
enum MHUnion::UnionTypes U_None
static const char * GetAsString(enum UnionTypes t)
static eu8 clamp(eu8 value, eu8 low, eu8 high)