MythTV  master
BaseClasses.h
Go to the documentation of this file.
1 /* BaseClasses.h
2 
3  Copyright (C) David C. J. Matthews 2004 dm at prolingua.co.uk
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License
7  as published by the Free Software Foundation; either version 2
8  of the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18  Or, point your browser to http://www.gnu.org/copyleft/gpl.html
19 
20 */
21 
22 #if !defined(BASECLASSES_H)
23 #define BASECLASSES_H
24 
25 #include "config.h"
26 #if HAVE_MALLOC_H
27 #include <malloc.h>
28 #endif
29 
30 #include <QString>
31 
32 #include "Logging.h" // For MHASSERT
33 
34 class MHEngine;
35 
36 // These templates should really be obtained from a library. They are defined here to
37 // allow easy porting to a variety of libraries.
38 
39 // Simple sequence class.
40 template <class BASE> class MHSequence {
41  public:
42  MHSequence() = default;
43  // The destructor frees the vector but not the elements.
44  ~MHSequence() { free(m_values); }
45  // Get the current size.
46  int Size() const { return m_vecSize; }
47  // Get an element at a particular index.
48  BASE GetAt(int i) const { MHASSERT(i >= 0 && i < m_vecSize); return m_values[i]; }
49  BASE operator[](int i) const { return GetAt(i); }
50  // Add a new element at position n and move the existing element at that position
51  // and anything above it up one place.
52  void InsertAt(BASE b, int n) {
53  MHASSERT(n >= 0 && n <= m_vecSize);
54  // NOLINTNEXTLINE(bugprone-sizeof-expression)
55  BASE *ptr = (BASE*)realloc(m_values, (m_vecSize+1) * sizeof(BASE));
56  if (ptr == nullptr) throw "Out of Memory";
57  m_values = ptr;
58  for (int i = m_vecSize; i > n; i--) m_values[i] = m_values[i-1];
59  m_values[n] = b;
60  m_vecSize++;
61  }
62  // Add an element to the end of the sequence.
63  void Append(BASE b) { InsertAt(b, m_vecSize); }
64  // Remove an element and shift all the others down.
65  void RemoveAt(int i) {
66  MHASSERT(i >= 0 && i < m_vecSize);
67  for (int j = i+1; j < m_vecSize; j++) m_values[j-1] = m_values[j];
68  m_vecSize--;
69  }
70  protected:
71  int m_vecSize {0};
72  BASE *m_values {nullptr};
73 };
74 
75 // As above, but it deletes the pointers when the sequence is destroyed.
76 template <class BASE> class MHOwnPtrSequence: public MHSequence<BASE*> {
77  public:
78  ~MHOwnPtrSequence() { for(int i = 0; i < MHSequence<BASE*>::m_vecSize; i++) delete(MHSequence<BASE*>::GetAt(i)); }
79 };
80 
81 
82 // Simple stack.
83 template <class BASE> class MHStack: protected MHSequence<BASE> {
84  public:
85  // Test for empty
86  bool Empty() const { return Size() == 0; }
87  // Pop an item from the stack.
88  BASE Pop() {
91  }
92  // Push an element on the stack.
93  void Push(BASE b) { this->Append(b); }
94  // Return the top of the stack.
95  BASE Top() {
98  }
99  int Size() const { return MHSequence<BASE>::Size(); }
100 };
101 
102 class MHParseNode;
103 
104 // An MHEG octet string is a sequence of bytes which can include nulls. MHEG, or at least UK MHEG, indexes
105 // strings from 1. We use 0 indexing in calls to these functions.
107 {
108  public:
109  MHOctetString();
110  MHOctetString(const char *str, int nLen = -1); // From character string
111  MHOctetString(const unsigned char *str, int nLen); // From byte vector
112  MHOctetString(const MHOctetString &str, int nOffset=0, int nLen=-1); // Substring
113  MHOctetString(const MHOctetString& o) { Copy(o); }
114  virtual ~MHOctetString();
115 
116  void Copy(const MHOctetString &str);
118  { if (this==&o) return *this; Copy(o); return *this; }
119  int Size() const { return m_nLength; }
120  // Comparison - returns <0, =0, >0 depending on the ordering.
121  int Compare(const MHOctetString &str) const;
122  bool Equal(const MHOctetString &str) const { return Compare(str) == 0; }
123  unsigned char GetAt(int i) const { MHASSERT(i >= 0 && i < Size()); return m_pChars[i]; }
124  const unsigned char *Bytes() const { return m_pChars; } // Read-only pointer to the buffer.
125  void Append(const MHOctetString &str); // Add text to the end of the string.
126 
127  QString Printable() const { return QString::fromLatin1((const char*)m_pChars, m_nLength); }
128 
129  void PrintMe(FILE *fd, int nTabs) const;
130 
131 protected:
132  int m_nLength {0};
133  unsigned char *m_pChars {nullptr};
134 };
135 
136 // A colour is encoded as a string or the index into a palette.
137 // Palettes aren't defined in UK MHEG so the palette index isn't really relevant.
138 class MHColour {
139  public:
140  MHColour() = default;
141  void Initialise(MHParseNode *p, MHEngine *engine);
142  void PrintMe(FILE *fd, int nTabs) const;
143  bool IsSet() const { return m_nColIndex >= 0 || m_colStr.Size() != 0; }
144  void SetFromString(const char *str, int nLen);
145  void Copy(const MHColour &col);
147  int m_nColIndex {-1};
148 };
149 
150 // An object reference is used to identify and refer to an object.
151 // Internal objects have the m_pGroupId field empty.
153 {
154  public:
155  MHObjectRef() = default;
156  void Initialise(MHParseNode *p, MHEngine *engine);
157  void Copy(const MHObjectRef &objr);
159 
160  MHObjectRef& operator=(const MHObjectRef&) = default;
161 
162  // Sometimes the object reference is optional. This tests if it has been set
163  bool IsSet() const { return (m_nObjectNo != 0 || m_groupId.Size() != 0); }
164  void PrintMe(FILE *fd, int nTabs) const;
165  bool Equal(const MHObjectRef &objr, MHEngine *engine) const;
166  QString Printable() const;
167 
168  int m_nObjectNo {0};
170 };
171 
172 // A content reference gives the location (e.g. file name) to find the content.
174 {
175  public:
176  MHContentRef() = default;
177 
178  MHContentRef& operator=(const MHContentRef&) = default;
179 
180  void Initialise(MHParseNode *p, MHEngine *engine);
181  void PrintMe(FILE *fd, int nTabs) const { m_contentRef.PrintMe(fd, nTabs); }
182  void Copy(const MHContentRef &cr) { m_contentRef.Copy(cr.m_contentRef); }
183  bool IsSet() const { return m_contentRef.Size() != 0; }
184  bool Equal(const MHContentRef &cr, MHEngine *engine) const;
186  QString Printable() const { return m_contentRef.Printable(); }
187 
189 };
190 
191 // "Generic" versions of int, bool etc can be either the value or an indirect reference.
193 {
194  public:
195  MHObjectRef *GetReference(); // Return the indirect reference or fail if it's direct
196  bool m_fIsDirect {false};
197 protected:
199 };
200 
202 {
203  public:
204  MHGenericBoolean() = default;
205  void Initialise(MHParseNode *p, MHEngine *engine);
206  void PrintMe(FILE *fd, int nTabs) const;
207  bool GetValue(MHEngine *engine) const; // Return the value, looking up any indirect ref.
208 protected:
209  bool m_fDirect {false};
210 };
211 
213 {
214  public:
215  MHGenericInteger() = default;
216  void Initialise(MHParseNode *p, MHEngine *engine);
217  void PrintMe(FILE *fd, int nTabs) const;
218  int GetValue(MHEngine *engine) const; // Return the value, looking up any indirect ref.
219 protected:
220  int m_nDirect {-1};
221 };
222 
224 {
225  public:
226  MHGenericOctetString() = default;
227  void Initialise(MHParseNode *p, MHEngine *engine);
228  void PrintMe(FILE *fd, int nTabs) const;
229  void GetValue(MHOctetString &str, MHEngine *engine) const; // Return the value, looking up any indirect ref.
230 protected:
232 };
233 
235 {
236  public:
237  MHGenericObjectRef() = default;
238  void Initialise(MHParseNode *p, MHEngine *engine);
239  void PrintMe(FILE *fd, int nTabs) const;
240  void GetValue(MHObjectRef &ref, MHEngine *engine) const; // Return the value, looking up any indirect ref.
241 protected:
243 };
244 
246 {
247  public:
248  MHGenericContentRef() = default;
249  void Initialise(MHParseNode *p, MHEngine *engine);
250  void PrintMe(FILE *fd, int nTabs) const;
251  void GetValue(MHContentRef &ref, MHEngine *engine) const; // Return the value, looking up any indirect ref.
252 protected:
254 };
255 
256 // In certain cases (e.g. parameters to Call) we have values which are the union of the base types.
258 {
259  public:
260  MHParameter() = default;
261  void Initialise(MHParseNode *p, MHEngine *engine);
262  void PrintMe(FILE *fd, int nTabs) const;
263  MHObjectRef *GetReference(); // Get an indirect reference.
264 
265  enum ParamTypes {
271  P_Null
272  } m_Type { P_Null }; // Null is used when this is optional
273 
279 };
280 
281 // A union type. Returned when a parameter is evaluated.
282 class MHUnion
283 {
284  public:
285  MHUnion() = default;
286  MHUnion(int nVal) : m_Type(U_Int), m_nIntVal(nVal) {}
287  MHUnion(bool fVal) : m_Type(U_Bool), m_fBoolVal(fVal) {}
288  MHUnion(const MHOctetString &strVal) : m_Type(U_String) { m_strVal.Copy(strVal); }
289  MHUnion(const MHObjectRef &objVal) : m_Type(U_ObjRef) { m_objRefVal.Copy(objVal); };
290  MHUnion(const MHContentRef &cnVal) : m_Type(U_ContentRef) { m_contentRefVal.Copy(cnVal); }
291 
292  MHUnion& operator=(const MHUnion&) = default;
293 
294  void GetValueFrom(const MHParameter &value, MHEngine *engine); // Copies the argument, getting the value of an indirect args.
295  QString Printable() const;
296 
298  void CheckType (enum UnionTypes t) const; // Check a type and fail if it doesn't match.
299  static const char *GetAsString(enum UnionTypes t);
300 
301  int m_nIntVal {0};
302  bool m_fBoolVal {false};
306 };
307 
308 class MHFontBody {
309  // A font body can either be a string or an object reference
310  public:
311  MHFontBody() = default;
312  void Initialise(MHParseNode *p, MHEngine *engine);
313  void PrintMe(FILE *fd, int nTabs) const;
314  bool IsSet() const { return m_dirFont.Size() != 0 || m_indirFont.IsSet(); }
315  void Copy(const MHFontBody &fb);
316 protected:
319 };
320 
321 // This is used only in DynamicLineArt
322 class MHPointArg {
323  public:
324  MHPointArg() = default;
325  void Initialise(MHParseNode *p, MHEngine *engine);
326  void PrintMe(FILE *fd, int nTabs) const;
328 };
329 
330 #endif
MHGenericObjectRef::m_objRef
MHObjectRef m_objRef
Definition: BaseClasses.h:242
MHPointArg::m_x
MHGenericInteger m_x
Definition: BaseClasses.h:327
MHGenericBase::m_indirect
MHObjectRef m_indirect
Definition: BaseClasses.h:198
MHObjectRef
Definition: BaseClasses.h:153
MHObjectRef::operator=
MHObjectRef & operator=(const MHObjectRef &)=default
MHUnion::GetAsString
static const char * GetAsString(enum UnionTypes t)
Definition: BaseClasses.cpp:666
MHSequence::operator[]
BASE operator[](int i) const
Definition: BaseClasses.h:49
MHObjectRef::Copy
void Copy(const MHObjectRef &objr)
Definition: BaseClasses.cpp:323
MHGenericOctetString
Definition: BaseClasses.h:224
MHGenericContentRef
Definition: BaseClasses.h:246
MHGenericBoolean::MHGenericBoolean
MHGenericBoolean()=default
MHContentRef::operator=
MHContentRef & operator=(const MHContentRef &)=default
MHObjectRef::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:278
MHStack::Push
void Push(BASE b)
Definition: BaseClasses.h:93
MHParameter::P_ObjRef
@ P_ObjRef
Definition: BaseClasses.h:269
MHParameter
Definition: BaseClasses.h:258
MHParameter::m_contentRefVal
MHGenericContentRef m_contentRefVal
Definition: BaseClasses.h:278
MHParameter::m_objRefVal
MHGenericObjectRef m_objRefVal
Definition: BaseClasses.h:277
MHUnion::MHUnion
MHUnion(const MHObjectRef &objVal)
Definition: BaseClasses.h:289
MHColour::m_nColIndex
int m_nColIndex
Definition: BaseClasses.h:147
MHGenericBoolean
Definition: BaseClasses.h:202
MHGenericOctetString::MHGenericOctetString
MHGenericOctetString()=default
MHParameter::GetReference
MHObjectRef * GetReference()
Definition: BaseClasses.cpp:774
MHUnion::CheckType
void CheckType(enum UnionTypes t) const
Definition: BaseClasses.cpp:687
MHParameter::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:739
MHEngine
Definition: Engine.h:72
MHObjectRef::m_groupId
MHOctetString m_groupId
Definition: BaseClasses.h:169
MHParameter::P_ContentRef
@ P_ContentRef
Definition: BaseClasses.h:270
MHObjectRef::m_nObjectNo
int m_nObjectNo
Definition: BaseClasses.h:168
MHUnion::m_nIntVal
int m_nIntVal
Definition: BaseClasses.h:301
MHOctetString::GetAt
unsigned char GetAt(int i) const
Definition: BaseClasses.h:123
MHOctetString::Bytes
const unsigned char * Bytes() const
Definition: BaseClasses.h:124
MHGenericContentRef::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:605
MHGenericInteger::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:397
MHOctetString::operator=
MHOctetString & operator=(const MHOctetString &o)
Definition: BaseClasses.h:117
MHParameter::P_String
@ P_String
Definition: BaseClasses.h:268
MHGenericInteger
Definition: BaseClasses.h:213
MHUnion::U_ObjRef
@ U_ObjRef
Definition: BaseClasses.h:297
MHObjectRef::Null
static MHObjectRef Null
Definition: BaseClasses.h:158
MHOctetString::Compare
int Compare(const MHOctetString &str) const
Definition: BaseClasses.cpp:177
MHUnion::U_Int
@ U_Int
Definition: BaseClasses.h:297
MHParameter::P_Int
@ P_Int
Definition: BaseClasses.h:266
MHStack::Size
int Size() const
Definition: BaseClasses.h:99
MHStack::Top
BASE Top()
Definition: BaseClasses.h:95
MHStack
Definition: BaseClasses.h:83
MHPointArg::MHPointArg
MHPointArg()=default
MHSequence
Definition: BaseClasses.h:40
MHGenericBoolean::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:343
MHGenericContentRef::m_direct
MHContentRef m_direct
Definition: BaseClasses.h:253
MHUnion::UnionTypes
UnionTypes
Definition: BaseClasses.h:297
MHOctetString
Definition: BaseClasses.h:107
MHParameter::P_Bool
@ P_Bool
Definition: BaseClasses.h:267
MHFontBody::IsSet
bool IsSet() const
Definition: BaseClasses.h:314
MHFontBody::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:815
mythburn.FILE
int FILE
Definition: mythburn.py:139
MHOctetString::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:154
MHSequence::m_vecSize
int m_vecSize
Definition: BaseClasses.h:71
MHUnion::m_fBoolVal
bool m_fBoolVal
Definition: BaseClasses.h:302
MHContentRef::MHContentRef
MHContentRef()=default
MHUnion::MHUnion
MHUnion(int nVal)
Definition: BaseClasses.h:286
MHObjectRef::IsSet
bool IsSet() const
Definition: BaseClasses.h:163
MHSequence::~MHSequence
~MHSequence()
Definition: BaseClasses.h:44
MHObjectRef::Equal
bool Equal(const MHObjectRef &objr, MHEngine *engine) const
Definition: BaseClasses.cpp:331
MHGenericObjectRef::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:539
MHContentRef::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:798
MHASSERT
#define MHASSERT(f)
Definition: Logging.h:30
MHColour::SetFromString
void SetFromString(const char *str, int nLen)
Definition: BaseClasses.cpp:260
MHFontBody::m_dirFont
MHOctetString m_dirFont
Definition: BaseClasses.h:317
MHParameter::ParamTypes
ParamTypes
Definition: BaseClasses.h:265
MHGenericBase::m_fIsDirect
bool m_fIsDirect
Definition: BaseClasses.h:196
MHGenericBase
Definition: BaseClasses.h:193
MHUnion::U_ContentRef
@ U_ContentRef
Definition: BaseClasses.h:297
MHGenericObjectRef::MHGenericObjectRef
MHGenericObjectRef()=default
MHColour::m_colStr
MHOctetString m_colStr
Definition: BaseClasses.h:146
MHContentRef::IsSet
bool IsSet() const
Definition: BaseClasses.h:183
MHUnion
Definition: BaseClasses.h:283
MHSequence::MHSequence
MHSequence()=default
MHColour::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:236
MHOctetString::MHOctetString
MHOctetString()
Definition: BaseClasses.cpp:34
hardwareprofile.config.p
p
Definition: config.py:33
hardwareprofile.i18n.t
t
Definition: i18n.py:36
MHUnion::MHUnion
MHUnion()=default
MHFontBody::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:803
MHUnion::m_objRefVal
MHObjectRef m_objRefVal
Definition: BaseClasses.h:304
MHGenericInteger::MHGenericInteger
MHGenericInteger()=default
MHGenericOctetString::GetValue
void GetValue(MHOctetString &str, MHEngine *engine) const
Definition: BaseClasses.cpp:505
MHGenericObjectRef
Definition: BaseClasses.h:235
MHParameter::MHParameter
MHParameter()=default
MHUnion::MHUnion
MHUnion(bool fVal)
Definition: BaseClasses.h:287
MHOwnPtrSequence::~MHOwnPtrSequence
~MHOwnPtrSequence()
Definition: BaseClasses.h:78
MHGenericOctetString::m_direct
MHOctetString m_direct
Definition: BaseClasses.h:231
MHColour
Definition: BaseClasses.h:138
MHUnion::operator=
MHUnion & operator=(const MHUnion &)=default
MHStack::Empty
bool Empty() const
Definition: BaseClasses.h:86
MHFontBody::m_indirFont
MHObjectRef m_indirFont
Definition: BaseClasses.h:318
MHContentRef::Printable
QString Printable() const
Definition: BaseClasses.h:186
MHGenericOctetString::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:491
MHGenericContentRef::MHGenericContentRef
MHGenericContentRef()=default
MHUnion::U_None
enum MHUnion::UnionTypes U_None
MHSequence::RemoveAt
void RemoveAt(int i)
Definition: BaseClasses.h:65
MHGenericContentRef::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:586
MHGenericBoolean::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:358
MHPointArg::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:833
MHParameter::m_boolVal
MHGenericBoolean m_boolVal
Definition: BaseClasses.h:275
MHParameter::m_intVal
MHGenericInteger m_intVal
Definition: BaseClasses.h:274
MHUnion::GetValueFrom
void GetValueFrom(const MHParameter &value, MHEngine *engine)
Definition: BaseClasses.cpp:636
MHGenericOctetString::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:476
MHUnion::m_contentRefVal
MHContentRef m_contentRefVal
Definition: BaseClasses.h:305
MHOctetString::Printable
QString Printable() const
Definition: BaseClasses.h:127
MHSequence::InsertAt
void InsertAt(BASE b, int n)
Definition: BaseClasses.h:52
MHPointArg::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:839
MHFontBody
Definition: BaseClasses.h:308
MHFontBody::Copy
void Copy(const MHFontBody &fb)
Definition: BaseClasses.cpp:827
MHOctetString::Size
int Size() const
Definition: BaseClasses.h:119
MHFontBody::MHFontBody
MHFontBody()=default
MHParameter::m_strVal
MHGenericOctetString m_strVal
Definition: BaseClasses.h:276
MHContentRef
Definition: BaseClasses.h:174
MHContentRef::Null
static MHContentRef Null
Definition: BaseClasses.h:185
MHOctetString::MHOctetString
MHOctetString(const MHOctetString &o)
Definition: BaseClasses.h:113
MHColour::MHColour
MHColour()=default
MHContentRef::m_contentRef
MHOctetString m_contentRef
Definition: BaseClasses.h:188
MHUnion::MHUnion
MHUnion(const MHOctetString &strVal)
Definition: BaseClasses.h:288
MHColour::IsSet
bool IsSet() const
Definition: BaseClasses.h:143
MHParameter::Initialise
void Initialise(MHParseNode *p, MHEngine *engine)
Definition: BaseClasses.cpp:710
MHColour::Copy
void Copy(const MHColour &col)
Definition: BaseClasses.cpp:266
MHPointArg
Definition: BaseClasses.h:322
MHSequence::Size
int Size() const
Definition: BaseClasses.h:46
MHUnion::Printable
QString Printable() const
Definition: BaseClasses.cpp:695
MHParseNode
Definition: ParseNode.h:39
MHUnion::U_String
@ U_String
Definition: BaseClasses.h:297
MHGenericInteger::GetValue
int GetValue(MHEngine *engine) const
Definition: BaseClasses.cpp:426
MHStack::Pop
BASE Pop()
Definition: BaseClasses.h:88
MHOctetString::m_pChars
unsigned char * m_pChars
Definition: BaseClasses.h:133
MHSequence::GetAt
BASE GetAt(int i) const
Definition: BaseClasses.h:48
MHParameter::P_Null
enum MHParameter::ParamTypes P_Null
MHOctetString::m_nLength
int m_nLength
Definition: BaseClasses.h:132
MHSequence::Append
void Append(BASE b)
Definition: BaseClasses.h:63
MHGenericInteger::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:412
MHOctetString::Equal
bool Equal(const MHOctetString &str) const
Definition: BaseClasses.h:122
MHGenericBase::GetReference
MHObjectRef * GetReference()
Definition: BaseClasses.cpp:387
Logging.h
MHSequence::m_values
BASE * m_values
Definition: BaseClasses.h:72
MHGenericObjectRef::GetValue
void GetValue(MHObjectRef &ref, MHEngine *engine) const
Definition: BaseClasses.cpp:568
MHGenericContentRef::GetValue
void GetValue(MHContentRef &ref, MHEngine *engine) const
Definition: BaseClasses.cpp:619
MHOctetString::~MHOctetString
virtual ~MHOctetString()
Definition: BaseClasses.cpp:125
MHContentRef::Equal
bool Equal(const MHContentRef &cr, MHEngine *engine) const
Definition: BaseClasses.cpp:336
MHGenericInteger::m_nDirect
int m_nDirect
Definition: BaseClasses.h:220
MHUnion::m_strVal
MHOctetString m_strVal
Definition: BaseClasses.h:303
MHContentRef::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.h:181
MHColour::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:248
MHContentRef::Copy
void Copy(const MHContentRef &cr)
Definition: BaseClasses.h:182
MHOctetString::Append
void Append(const MHOctetString &str)
Definition: BaseClasses.cpp:213
MHPointArg::m_y
MHGenericInteger m_y
Definition: BaseClasses.h:327
MHUnion::MHUnion
MHUnion(const MHContentRef &cnVal)
Definition: BaseClasses.h:290
MHGenericObjectRef::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:554
MHObjectRef::PrintMe
void PrintMe(FILE *fd, int nTabs) const
Definition: BaseClasses.cpp:299
MHOwnPtrSequence
Definition: BaseClasses.h:76
MHGenericBoolean::m_fDirect
bool m_fDirect
Definition: BaseClasses.h:209
MHObjectRef::MHObjectRef
MHObjectRef()=default
MHUnion::U_Bool
@ U_Bool
Definition: BaseClasses.h:297
MHOctetString::Copy
void Copy(const MHOctetString &str)
Definition: BaseClasses.cpp:131
MHObjectRef::Printable
QString Printable() const
Definition: BaseClasses.cpp:313
MHGenericBoolean::GetValue
bool GetValue(MHEngine *engine) const
Definition: BaseClasses.cpp:372