Function get_qualified
Synopsis
#include <include/cpptoml.h>
std::shared_ptr< base > get_qualified(const std::string &key) const
Description
Obtains the base for a given key. Will resolve "qualified keys". Qualified keys are the full access path separated with dots like "grandparent.parent.child".
- Exceptions
std::out_of_range
- if the key does not exist
Source
Lines 1366-1371 in include/cpptoml.h.
std::shared_ptr<base> get_qualified(const std::string& key) const
{
std::shared_ptr<base> p;
resolve_qualified(key, &p);
return p;
}