mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 20:00:22 +08:00
21 lines
463 B
C++
21 lines
463 B
C++
#include "config.h"
|
|
namespace ray {
|
|
namespace streaming {
|
|
|
|
boost::any &Config::Get(ConfigEnum key) const {
|
|
auto item = config_map_.find(key);
|
|
STREAMING_CHECK(item != config_map_.end());
|
|
return item->second;
|
|
}
|
|
|
|
boost::any Config::Get(ConfigEnum key, boost::any default_value) const {
|
|
auto item = config_map_.find(key);
|
|
if (item == config_map_.end()) {
|
|
return default_value;
|
|
}
|
|
return item->second;
|
|
}
|
|
|
|
} // namespace streaming
|
|
} // namespace ray
|