| 151 | Json::Value Nodes = Json::arrayValue; |
| 152 | |
| 153 | Json::ArrayIndex AddCommand(std::string const& command) |
| 154 | { |
| 155 | auto i = this->CommandMap.find(command); |
| 156 | if (i == this->CommandMap.end()) { |
| 157 | auto cmdIndex = static_cast<Json::ArrayIndex>(this->Commands.size()); |
| 158 | i = this->CommandMap.emplace(command, cmdIndex).first; |
| 159 | this->Commands.append(command); |
| 160 | } |
| 161 | return i->second; |
| 162 | } |
| 163 | |
| 164 | Json::ArrayIndex AddFile(std::string const& file) |
| 165 | { |