Home
last modified time | relevance | path

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

/external/protobuf/examples/
Dlist_people.cc10 void ListPeople(const tutorial::AddressBook& address_book) { in ListPeople() argument
11 for (int i = 0; i < address_book.person_size(); i++) { in ListPeople()
12 const tutorial::Person& person = address_book.person(i); in ListPeople()
51 tutorial::AddressBook address_book; in main() local
56 if (!address_book.ParseFromIstream(&input)) { in main()
62 ListPeople(address_book); in main()
Dlist_people.py9 def ListPeople(address_book): argument
10 for person in address_book.person:
31 address_book = addressbook_pb2.AddressBook() variable
35 address_book.ParseFromString(f.read())
38 ListPeople(address_book)
Dadd_person.py42 address_book = addressbook_pb2.AddressBook() variable
47 address_book.ParseFromString(f.read())
53 PromptForAddress(address_book.person.add())
57 f.write(address_book.SerializeToString())
Dadd_person.cc66 tutorial::AddressBook address_book; in main() local
73 } else if (!address_book.ParseFromIstream(&input)) { in main()
80 PromptForAddress(address_book.add_person()); in main()
85 if (!address_book.SerializeToOstream(&output)) { in main()