| 183 | } |
| 184 | |
| 185 | bool INI2Pb::ParseMessage(google::protobuf::Message *message, const string §ion_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 | |
| 198 | bool INI2Pb::Parse(google::protobuf::Message *message, int idx) { |
nothing calls this directly
no outgoing calls
no test coverage detected