Go to the documentation of this file.
36 for (
int i = 0; i < n; i++)
53 Failure(
"Expected tagged value");
65 return pTag->m_Args.Size();
73 Failure(
"Expected tagged value");
84 if (n < 0 || n >= pTag->m_Args.Size())
89 return pTag->m_Args.GetAt(n);
95 if (n < 0 || n >= pSeq->Size())
100 return pSeq->GetAt(n);
103 Failure(
"Expected tagged value");
124 Failure(
"Expected tagged value or sequence");
127 for (
int i = 0; i < pArgs->
Size(); i++)
161 if (n < 0 || n >= pSeq->Size())
166 return pSeq->GetAt(n);
177 return ((
MHPInt *)
this)->m_Value;
185 Failure(
"Expected enumerated type");
188 return ((
MHPEnum *)
this)->m_Value;
199 return ((
MHPBool *)
this)->m_Value;
217 if (i) fprintf(f,
", ");
222 fprintf(f,
"tagged { "); pn->
PrintMe(f); fprintf(f,
"}");
225 fprintf(f,
"bool %s", pn->
GetBoolValue() ?
"true" :
"false");
236 fprintf(f,
"string '%s'", str.
Bytes());
243 fprintf(f,
"seq { "); pn->
PrintMe(f); fprintf(f,
"}");
enum NodeType m_nNodeType
MHParseNode * GetSeqN(int n)
const unsigned char * Bytes() const
void PrintTabs(FILE *fd, int n)
MHParseNode * GetArgN(int n)
MHParseNode * GetNamedArg(int nTag)
static void Failure(const char *p)
void AddArg(MHParseNode *pArg)
void GetStringValue(MHOctetString &str)
void Copy(const MHOctetString &str)