Home | Documentation |
address.cpp File Reference
updated Fri Aug 16 2024 by Robert van Engelen
|
#include <iostream>
#include <fstream>
#include "addressH.h"
#include "a.nsmap"
Go to the source code of this file.
Functions | |
int | main () |
Address book application: reads address.xml, displays its content, prompts the user for new contact, adds it, and saves the updated address.xml. More... | |
char * | user_input (const char *prompt) |
A quick-and-dirty user input function: reads string from stdin (up to 80 chars), trims leading and trailing blanks, and returns it. More... | |
int main | ( | ) |
Address book application: reads address.xml, displays its content, prompts the user for new contact, adds it, and saves the updated address.xml.
Address book example XML data binding application.
Illustrates the gSOAP XML data binding with wsdl2h and soappcp2.
Copyright (C) 2000-2015 Robert A. van Engelen. All Rights Reserved.
Project Source Files
Generated Files
Build:
wsdl2h -g -t addresstypemap.dat address.xsd soapcpp2 -2 -CS -I../../import -p address address.h c++ -I../.. address.cpp addressC.cpp -o address ../../stdsoap2.cpp
Run:
./address
Definition at line 81 of file address.cpp.
char * user_input | ( | const char * | prompt | ) |
A quick-and-dirty user input function: reads string from stdin (up to 80 chars), trims leading and trailing blanks, and returns it.
prompt | displays prompt to user |
Definition at line 206 of file address.cpp.