27 namespace jsonconfig {
30 : parent_(it.parent_),
36 const jubatus::util::text::json::json::const_iterator& it)
46 return config(it_->second, parent_.path() +
"." + key());
51 if (index <
json_.size()) {
52 std::ostringstream os;
53 os <<
path_ <<
"[" << index <<
"]";
58 }
catch (
const std::bad_cast& e) {
66 std::ostringstream os;
67 os <<
path_ <<
"." << key;
69 }
catch (
const std::out_of_range& e) {
71 }
catch (
const std::bad_cast& e) {
78 if (
type() != jubatus::util::text::json::json::Object) {
82 return json_.count(key) > 0;
88 }
catch (
const std::bad_cast& e) {
jubatus::util::text::json::json json_
bool contain(const std::string &key) const
config operator[](size_t index) const
jubatus::util::text::json::json::json_type_t type() const
#define JUBATUS_EXCEPTION(e)
iterator(const iterator &)
const std::string & key() const