mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 19:52:31 +00:00
* Added "working_directory" option that calls chdir.
* Added "session_on_completion" option which saves the session torrent when a download finishes. * Handle SIGTERM gracefully, saving session torrents etc. * Implemented session directory lockfile, use "session_lock" option to disable. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@629 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
// Consider taking char* start and finish instead of std::string to
|
||||
// avoid copying. Or make a view class.
|
||||
const mapped_type& get(const std::string& key);
|
||||
std::string get_string(const std::string& key);
|
||||
const std::string& get_string(const std::string& key) { return get(key).as_string(); }
|
||||
|
||||
void set(const std::string& key, const mapped_type& arg);
|
||||
void set_string(const std::string& key, const std::string& arg) { set(key, mapped_type(arg)); }
|
||||
@@ -74,16 +74,6 @@ private:
|
||||
void operator = (const VariableMap&);
|
||||
};
|
||||
|
||||
inline std::string
|
||||
VariableMap::get_string(const std::string& key) {
|
||||
const mapped_type& v = get(key);
|
||||
|
||||
if (v.get_type() == mapped_type::TYPE_NONE)
|
||||
return std::string();
|
||||
else
|
||||
return v.as_string();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user