Home
last modified time | relevance | path

Searched refs:address_book (Results 1 – 4 of 4) sorted by relevance

/external/protobuf/examples/
Dlist_people.cc15 void ListPeople(const tutorial::AddressBook& address_book) { in ListPeople() argument
16 for (int i = 0; i < address_book.people_size(); i++) { in ListPeople()
17 const tutorial::Person& person = address_book.people(i); in ListPeople()
62 tutorial::AddressBook address_book; in main() local
67 if (!address_book.ParseFromIstream(&input)) { in main()
73 ListPeople(address_book); in main()
Dlist_people.py11 def ListPeople(address_book): argument
12 for person in address_book.people:
34 address_book = addressbook_pb2.AddressBook() variable
38 address_book.ParseFromString(f.read())
40 ListPeople(address_book)
Dadd_person.py49 address_book = addressbook_pb2.AddressBook() variable
54 address_book.ParseFromString(f.read())
59 PromptForAddress(address_book.people.add())
63 f.write(address_book.SerializeToString())
Dadd_person.cc73 tutorial::AddressBook address_book; in main() local
80 } else if (!address_book.ParseFromIstream(&input)) { in main()
87 PromptForAddress(address_book.add_people()); in main()
92 if (!address_book.SerializeToOstream(&output)) { in main()