Go to the documentation of this file.
30 static char THIS_FILE[] = __FILE__;
56 m_pChars = (
unsigned char *)malloc(nLen + 1);
60 throw "Out of memory";
77 m_pChars = (
unsigned char *)malloc(nLen + 1);
81 throw "Out of memory";
93 nLen = str.
Size() - nOffset;
101 if (nLen > str.
Size())
114 m_pChars = (
unsigned char *)malloc(nLen + 1);
118 throw "Out of memory";
144 throw "Out of memory";
163 if (ch ==
'=' || ch ==
'\'' || ch < ' ' || ch >= 127)
165 fprintf(fd,
"=%02X", ch);
222 auto *
p = (
unsigned char *)realloc(
m_pChars, newLen);
226 throw "Out of memory";
362 fprintf(fd,
"%s ",
m_fDirect ?
"true" :
"false");
366 fprintf(fd,
":IndirectRef ");
391 MHERROR(
"Expected indirect reference");
420 fprintf(fd,
":IndirectRef ");
445 bool fNegative =
false;
457 if (ch < '0' || ch >
'9')
462 v = v * 10 + ch -
'0';
499 fprintf(fd,
":IndirectRef ");
556 fprintf(fd,
":IndirectRef ");
595 MHERROR(
"Expected direct or indirect content reference");
607 fprintf(fd,
":IndirectRef ");
632 switch (value.m_Type)
685 MHERROR(QString(
"Type mismatch - expected %1 found %2")
707 switch (
p->GetTagNo())
742 fprintf(fd,
":GInteger ");
746 fprintf(fd,
":GBoolean ");
750 fprintf(fd,
":GOctetString ");
754 fprintf(fd,
":GObjectRef ");
758 fprintf(fd,
":GObjectRef ");
static const char * GetAsString(enum UnionTypes t)
enum NodeType m_nNodeType
void Copy(const MHObjectRef &objr)
void Initialise(MHParseNode *p, MHEngine *engine)
MHGenericContentRef m_contentRefVal
MHGenericObjectRef m_objRefVal
MHObjectRef * GetReference()
void CheckType(enum UnionTypes t) const
void PrintMe(FILE *fd, int nTabs) const
@ C_NEW_GENERIC_OCTETSTRING
unsigned char GetAt(int i) const
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
int Compare(const MHOctetString &str) const
@ C_NEW_GENERIC_OBJECT_REF
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const
void PrintMe(FILE *fd, int nTabs) const
QString GetPathName(const MHOctetString &str)
bool Equal(const MHObjectRef &objr, MHEngine *engine) const
MHOctetString & GetGroupId()
void Initialise(MHParseNode *p, MHEngine *engine)
void Initialise(MHParseNode *p, MHEngine *engine)
void SetFromString(const char *str, int nLen)
void Initialise(MHParseNode *p, MHEngine *engine)
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintTabs(FILE *fd, int n)
void GetValue(MHOctetString &str, MHEngine *engine) const
MHParseNode * GetArgN(int n)
MHRoot * FindObject(const MHObjectRef &oRef, bool failOnNotFound=true)
QString Printable() const
void PrintMe(FILE *fd, int nTabs) const
enum MHUnion::UnionTypes U_None
void Initialise(MHParseNode *p, MHEngine *engine)
void PrintMe(FILE *fd, int nTabs) const
void Initialise(MHParseNode *p, MHEngine *engine)
MHGenericBoolean m_boolVal
MHGenericInteger m_intVal
void GetValueFrom(const MHParameter &value, MHEngine *engine)
void Initialise(MHParseNode *p, MHEngine *engine)
MHContentRef m_contentRefVal
QString Printable() const
void PrintMe(FILE *fd, int nTabs) const
void Copy(const MHFontBody &fb)
MHGenericOctetString m_strVal
@ C_NEW_GENERIC_CONTENT_REF
static void Failure(const char *p)
MHOctetString m_contentRef
void Initialise(MHParseNode *p, MHEngine *engine)
void Copy(const MHColour &col)
QString Printable() const
int GetValue(MHEngine *engine) const
enum MHParameter::ParamTypes P_Null
void GetStringValue(MHOctetString &str)
void PrintMe(FILE *fd, int nTabs) const
MHObjectRef * GetReference()
void GetValue(MHObjectRef &ref, MHEngine *engine) const
void GetValue(MHContentRef &ref, MHEngine *engine) const
bool Equal(const MHContentRef &cr, MHEngine *engine) const
void PrintMe(FILE *fd, int nTabs) const
void PrintMe(FILE *fd, int nTabs) const
void Copy(const MHContentRef &cr)
void Append(const MHOctetString &str)
void PrintMe(FILE *fd, int nTabs) const
void PrintMe(FILE *fd, int nTabs) const
void Copy(const MHOctetString &str)
virtual void GetVariableValue(MHUnion &, MHEngine *)
QString Printable() const
bool GetValue(MHEngine *engine) const