| 1609 | |
| 1610 | |
| 1611 | void |
| 1612 | Path::addPathInArg( const std::string &path, |
| 1613 | const InArgs &in, |
| 1614 | InArgs::const_iterator &itInArg, |
| 1615 | PathArgument::Kind kind ) |
| 1616 | { |
| 1617 | if ( itInArg == in.end() ) |
| 1618 | { |
| 1619 | // Error: missing argument %d |
| 1620 | } |
| 1621 | else if ( (*itInArg)->kind_ != kind ) |
| 1622 | { |
| 1623 | // Error: bad argument type |
| 1624 | } |
| 1625 | else |
| 1626 | { |
| 1627 | args_.push_back( **itInArg ); |
| 1628 | } |
| 1629 | } |
| 1630 | |
| 1631 | |
| 1632 | void |