mirror of
https://github.com/isledecomp/isle-portable.git
synced 2024-11-26 17:36:12 -05:00
bc5ca621a4
* Add ncc tool * Add symlink * Fixes * Try this * Try this * Try this * Try this * Add include path * Update style * Update style * Add more rules * Fix style * Update styles * Fix name parameter * Fix MxParam p * Fix m_unk0x pattern * Allow 4 digits for relative hex * Add missing offset * Fix some parameters * Fix some vtables * Fix more vtables * Update rules, fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * More fixes * Fix last issue * Update readme * Update readme * Update CONTRIBUTING.md * Fix annotations * Rename * Update CONTRIBUTING.md * Update README.md
35 lines
761 B
C++
35 lines
761 B
C++
#ifndef MXATOMID_H
|
|
#define MXATOMID_H
|
|
|
|
#include "mxatomidcounter.h"
|
|
#include "mxtypes.h"
|
|
|
|
enum LookupMode {
|
|
LookupMode_Exact = 0,
|
|
LookupMode_LowerCase = 1,
|
|
LookupMode_UpperCase = 2,
|
|
LookupMode_LowerCase2 = 3
|
|
};
|
|
|
|
class MxAtomId {
|
|
public:
|
|
__declspec(dllexport) MxAtomId(const char*, LookupMode);
|
|
__declspec(dllexport) MxAtomId& operator=(const MxAtomId& p_atomId);
|
|
__declspec(dllexport) ~MxAtomId();
|
|
|
|
MxAtomId() { this->m_internal = 0; }
|
|
|
|
inline MxBool operator==(const MxAtomId& p_atomId) const { return this->m_internal == p_atomId.m_internal; }
|
|
|
|
void Clear();
|
|
|
|
const char* GetInternal() const { return m_internal; }
|
|
|
|
private:
|
|
MxAtomIdCounter* GetCounter(const char*, LookupMode);
|
|
void Destroy();
|
|
|
|
const char* m_internal;
|
|
};
|
|
|
|
#endif // MXATOMID_H
|