| 135 | } |
| 136 | |
| 137 | void PipeServer::initBackendServers(const std::wstring & topDirPath) { |
| 138 | // load known backend implementations |
| 139 | Json::Value backends; |
| 140 | if (loadJsonFile(topDirPath + L"\\backends.json", backends) && backends.isArray()) { |
| 141 | for(auto& backendInfo: backends) { |
| 142 | backends_.emplace_back( |
| 143 | std::make_unique<BackendServer>(this, backendInfo) |
| 144 | ); |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | // maps language profiles to backend names |
| 149 | initInputMethods(topDirPath); |
| 150 | } |
| 151 | |
| 152 | void PipeServer::initInputMethods(const std::wstring& topDirPath) { |
| 153 | // maps language profiles to backend names |
nothing calls this directly
no test coverage detected