mirror of
https://github.com/libretro/Play-.git
synced 2024-11-27 18:50:28 +00:00
33 lines
694 B
C++
33 lines
694 B
C++
#ifndef _STRUCTFILE_H_
|
|
#define _STRUCTFILE_H_
|
|
|
|
#include <map>
|
|
#include "xml/Node.h"
|
|
#include "uint128.h"
|
|
|
|
class CStructFile
|
|
{
|
|
public:
|
|
CStructFile();
|
|
virtual ~CStructFile();
|
|
|
|
void Read(Framework::Xml::CNode*);
|
|
void Write(Framework::Xml::CNode*) const;
|
|
|
|
void SetRegister32(const char*, uint32);
|
|
void SetRegister64(const char*, uint64);
|
|
void SetRegister128(const char*, uint128);
|
|
|
|
uint32 GetRegister32(const char*) const;
|
|
uint64 GetRegister64(const char*) const;
|
|
uint128 GetRegister128(const char*) const;
|
|
|
|
private:
|
|
typedef std::pair<uint8, uint128> Register;
|
|
typedef std::map<std::string, Register> RegisterList;
|
|
|
|
RegisterList m_registers;
|
|
};
|
|
|
|
#endif
|