1 #ifndef _library__emustatus__hpp__included__
2 #define _library__emustatus__hpp__included__
4 #include "library/workthread.hpp"
15 * Throws std::bad_alloc: Not enough memory.
17 emulator_status() throw(std::bad_alloc
);
21 ~emulator_status() throw();
25 * Parameter key: Key to insert/replace.
26 * Parameter value: The value to assign.
27 * Throws std::bad_alloc: Not enough memory.
29 void set(const std::string
& key
, const std::string
& value
) throw(std::bad_alloc
);
33 * Parameter key: Key to check.
34 * Returns: True if key exists, false if not.
36 bool haskey(const std::string
& key
) throw();
40 * Parameter key: Key to erase.
42 void erase(const std::string
& key
) throw();
46 * Parameter key: The key to read.
47 * Returns: The value of key ("" if not found).
49 std::string
get(const std::string
& key
) throw(std::bad_alloc
);
71 * Returns: Before-the-start iterator.
72 * Throws std::bad_alloc: Not enough memory.
74 iterator
first() throw(std::bad_alloc
);
78 * Parameter itr: Iterator to advance.
79 * Returns: True if next value was found, false if not.
80 * Throws std::bad_alloc: Not enough memory.
82 bool next(iterator
& itr
) throw(std::bad_alloc
);
84 emulator_status(const emulator_status
&);
85 emulator_status
& operator=(const emulator_status
&);
87 std::map
<std::string
, std::string
> content
;