mame/src/emu/parameters.h
Vas Crabb 8179a84458 Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h"
* Get rid of import of cstdint types to global namespace (C99 does this anyway)
* Remove the cstdint types from everything in emu
* Get rid of U64/S64 macros
* Fix a bug in dps16 caused by incorrect use of macro
* Fix debugcon not checking for "do " prefix case-insensitively
* Fix a lot of messed up tabulation
* More constexpr
* Fix up many __names
2016-11-19 05:38:48 +11:00

49 lines
1.2 KiB
C++

// license:BSD-3-Clause
// copyright-holders:Olivier Galibert,Aaron Giles
/***************************************************************************
parameters.h
Per-game parameters handling.
***************************************************************************/
#pragma once
#ifndef __EMU_H__
#error Dont include this file directly; include emu.h instead.
#endif
#ifndef MAME_EMU_PARAMETERS_H
#define MAME_EMU_PARAMETERS_H
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> parameters_manager
class parameters_manager
{
DISABLE_COPYING(parameters_manager);
public:
// construction/destruction
parameters_manager(running_machine &machine);
// getters
running_machine &machine() const { return m_machine; }
std::string lookup(std::string tag) const;
// setters
void add(std::string tag, std::string value);
private:
// internal state
running_machine & m_machine; // reference to owning machine
std::unordered_map<std::string,std::string> m_parameters;
};
#endif // MAME_EMU_PARAMETERS_H