OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:address_book
(Results
1 - 4
of
4
) sorted by null
/external/protobuf/examples/
list_people.py
9
def ListPeople(
address_book
):
10
for person in
address_book
.people:
31
address_book
= addressbook_pb2.AddressBook()
variable
35
address_book
.ParseFromString(f.read())
37
ListPeople(
address_book
)
add_person.py
42
address_book
= addressbook_pb2.AddressBook()
variable
47
address_book
.ParseFromString(f.read())
52
PromptForAddress(
address_book
.people.add())
56
f.write(
address_book
.SerializeToString())
list_people.cc
10
void ListPeople(const tutorial::AddressBook&
address_book
) {
11
for (int i = 0; i <
address_book
.people_size(); i++) {
12
const tutorial::Person& person =
address_book
.people(i);
51
tutorial::AddressBook
address_book
;
local
56
if (!
address_book
.ParseFromIstream(&input)) {
62
ListPeople(
address_book
);
add_person.cc
66
tutorial::AddressBook
address_book
;
local
73
} else if (!
address_book
.ParseFromIstream(&input)) {
80
PromptForAddress(
address_book
.add_people());
85
if (!
address_book
.SerializeToOstream(&output)) {
Completed in 161 milliseconds