diff options
author | imarom <imarom@cisco.com> | 2016-06-29 15:39:46 +0300 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-07-03 13:40:21 +0300 |
commit | 4242bc5ec3aa8816db9bdd57bd1f732da4305555 (patch) | |
tree | 333271e4c8977eae545a2d4652ec9ad392124a2a /src/utl_yaml.h | |
parent | 1dfd42ceb79677e171d5dedcac34900776574000 (diff) |
client configuration: refactoring
Diffstat (limited to 'src/utl_yaml.h')
-rwxr-xr-x | src/utl_yaml.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utl_yaml.h b/src/utl_yaml.h index 8088c497..2547b666 100755 --- a/src/utl_yaml.h +++ b/src/utl_yaml.h @@ -57,12 +57,15 @@ public: uint32_t parse_ip(const YAML::Node &node, const std::string &name); uint64_t parse_mac_addr(const YAML::Node &node, const std::string &name); + uint64_t parse_mac_addr(const YAML::Node &node, const std::string &name, uint64_t def); uint64_t parse_uint(const YAML::Node &node, const std::string &name, uint64_t low = 0, uint64_t high = UINT64_MAX); + uint64_t parse_uint(const YAML::Node &node, const std::string &name, uint64_t low, uint64_t high, uint64_t def); public: void parse_err(const std::string &err, const YAML::Node &node) const; + void parse_err(const std::string &err) const; private: |