MCPcopy Create free account
hub / github.com/EasyIME/PIME / initBackendServers

Method initBackendServers

PIMELauncher/PipeServer.cpp:137–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void 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
152void PipeServer::initInputMethods(const std::wstring& topDirPath) {
153 // maps language profiles to backend names

Callers

nothing calls this directly

Calls 1

loadJsonFileFunction · 0.85

Tested by

no test coverage detected