Exemplo n.º 1
0
bookmarks::op_string bookmarks::get(const std::string key) {
	boost::unique_lock<boost::timed_mutex> lock(mutex_, boost::get_system_time() + boost::posix_time::seconds(5));
	if (!lock.owns_lock()) {
		return op_string();
	}
	map_type::const_iterator cit = bookmarks_.find(key);
	if (cit == bookmarks_.end()) {
		return op_string();
	}
	return cit->second;
}
Exemplo n.º 2
0
		//////////////////////////////////////////////////////////////////////////
		/// Get a string value if it does not exist exception will be thrown
		///
		/// @param path the path to look up
		/// @param key the key to lookup
		/// @return the string value
		///
		/// @author mickem
		virtual op_string get_real_string(settings_core::key_path_type key) {
			return op_string();
		}