MCPcopy Create free account
hub / github.com/Tencent/phxqueue / Parse

Method Parse

phxqueue_phxrpc/comm/ini2pb.cpp:198–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196
197
198bool INI2Pb::Parse(google::protobuf::Message *message, int idx) {
199 if (!func_) return false;
200
201 const google::protobuf::Descriptor *descriptor(message->GetDescriptor());
202
203 std::string section_name(descriptor->name());
204 if (0 <= idx) {
205 ostringstream oss;
206 oss << idx;
207 section_name += oss.str();
208 }
209
210 return ParseMessage(message, section_name);
211}
212
213
214} // namespace comm

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected