| 4077 | } |
| 4078 | |
| 4079 | void Path::addPathInArg(const JSONCPP_STRING& /*path*/, |
| 4080 | const InArgs& in, |
| 4081 | InArgs::const_iterator& itInArg, |
| 4082 | PathArgument::Kind kind) { |
| 4083 | if (itInArg == in.end()) { |
| 4084 | // Error: missing argument %d |
| 4085 | } else if ((*itInArg)->kind_ != kind) { |
| 4086 | // Error: bad argument type |
| 4087 | } else { |
| 4088 | args_.push_back(**itInArg++); |
| 4089 | } |
| 4090 | } |
| 4091 | |
| 4092 | void Path::invalidPath(const JSONCPP_STRING& /*path*/, int /*location*/) { |
| 4093 | // Error: invalid path. |