2023-08-03 20:13:41 -04:00
|
|
|
#ifndef MXVARIABLE_H
|
|
|
|
#define MXVARIABLE_H
|
|
|
|
|
|
|
|
#include "mxstring.h"
|
|
|
|
#include "mxcore.h"
|
|
|
|
|
2023-09-29 16:38:08 -04:00
|
|
|
// VTABLE 0x100d7498
|
|
|
|
// SIZE 0x24
|
2023-08-03 20:13:41 -04:00
|
|
|
class MxVariable
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MxVariable() {}
|
|
|
|
MxVariable(const char *p_key)
|
|
|
|
{
|
|
|
|
m_key = p_key;
|
|
|
|
m_key.ToUpperCase();
|
|
|
|
}
|
|
|
|
MxVariable(const char *p_key, const char *p_value)
|
|
|
|
{
|
|
|
|
m_key = p_key;
|
|
|
|
m_key.ToUpperCase();
|
|
|
|
m_value = p_value;
|
|
|
|
}
|
|
|
|
virtual MxString *GetValue();
|
|
|
|
virtual void SetValue(const char *);
|
|
|
|
virtual void Destroy();
|
|
|
|
|
|
|
|
inline const MxString *GetKey() const { return &m_key; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
MxString m_key;
|
|
|
|
MxString m_value;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MXVARIABLE_H
|