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
.person:
31
address_book
= addressbook_pb2.AddressBook()
variable
35
address_book
.ParseFromString(f.read())
38
ListPeople(
address_book
)
add_person.py
42
address_book
= addressbook_pb2.AddressBook()
variable
47
address_book
.ParseFromString(f.read())
53
PromptForAddress(
address_book
.person.add())
57
f.write(
address_book
.SerializeToString())
list_people.cc
10
void ListPeople(const tutorial::AddressBook&
address_book
) {
11
for (int i = 0; i <
address_book
.person_size(); i++) {
12
const tutorial::Person& person =
address_book
.person(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_person());
85
if (!
address_book
.SerializeToOstream(&output)) {
Completed in 83 milliseconds