1 #ifndef _library__emustatus__hpp__included__
2 #define _library__emustatus__hpp__included__
4 #include "threadtypes.hpp"
16 * Throws std::bad_alloc: Not enough memory.
18 emulator_status() throw(std::bad_alloc
);
22 ~emulator_status() throw();
26 * Parameter key: Key to insert/replace.
27 * Parameter value: The value to assign.
28 * Throws std::bad_alloc: Not enough memory.
30 void set(const std::string
& key
, const std::string
& value
) throw(std::bad_alloc
);
34 * Parameter key: Key to insert/replace.
35 * Parameter value: The value to assign.
36 * Throws std::bad_alloc: Not enough memory.
38 void set(const std::string
& key
, const std::u32string
& value
) throw(std::bad_alloc
);
42 * Parameter key: Key to check.
43 * Returns: True if key exists, false if not.
45 bool haskey(const std::string
& key
) throw();
49 * Parameter key: Key to erase.
51 void erase(const std::string
& key
) throw();
55 * Parameter key: The key to read.
56 * Returns: The value of key ("" if not found).
58 std::u32string
get(const std::string
& key
) throw(std::bad_alloc
);
80 * Returns: Before-the-start iterator.
81 * Throws std::bad_alloc: Not enough memory.
83 iterator
first() throw(std::bad_alloc
);
87 * Parameter itr: Iterator to advance.
88 * Returns: True if next value was found, false if not.
89 * Throws std::bad_alloc: Not enough memory.
91 bool next(iterator
& itr
) throw(std::bad_alloc
);
93 emulator_status(const emulator_status
&);
94 emulator_status
& operator=(const emulator_status
&);
96 std::map
<std::string
, std::u32string
> content
;