| 4047 | } |
| 4048 | |
| 4049 | void Path::addPathInArg(const JSONCPP_STRING& /*path*/, |
| 4050 | const InArgs& in, |
| 4051 | InArgs::const_iterator& itInArg, |
| 4052 | PathArgument::Kind kind) { |
| 4053 | if (itInArg == in.end()) { |
| 4054 | // Error: missing argument %d |
| 4055 | } else if ((*itInArg)->kind_ != kind) { |
| 4056 | // Error: bad argument type |
| 4057 | } else { |
| 4058 | args_.push_back(**itInArg++); |
| 4059 | } |
| 4060 | } |
| 4061 | |
| 4062 | void Path::invalidPath(const JSONCPP_STRING& /*path*/, int /*location*/) { |
| 4063 | // Error: invalid path. |