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

Method ParseMessage

phxqueue_phxrpc/comm/ini2pb.cpp:185–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185bool INI2Pb::ParseMessage(google::protobuf::Message *message, const string &section_name) {
186 const google::protobuf::Descriptor* descriptor = message->GetDescriptor();
187
188 int nvalid(0);
189 for (int i(0); descriptor->field_count() > i; ++i) {
190 const google::protobuf::FieldDescriptor* field_descriptor = descriptor->field(i);
191 if (ParseField(message, section_name, field_descriptor)) ++nvalid;
192 }
193 if (nvalid) return true;
194 return false;
195}
196
197
198bool INI2Pb::Parse(google::protobuf::Message *message, int idx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected