3 #include <samchon/library/XML.hpp> 4 #include <samchon/protocol/Invoke.hpp> 13 # pragma comment(lib, "x64/Debug/SamchonFramework.lib") 15 # pragma comment(lib, "x64/Release/SamchonFramework.lib") 19 # pragma comment(lib, "Debug/SamchonFramework.lib") 21 # pragma comment(lib, "Release/SamchonFramework.lib") 27 string str = string(
"") +
29 " <member id='jhnam88' pass='1231' />\n" +
30 " <member id='samchon' pass='1231'>Administrator</member>\n" +
31 " <group>3</group>\n" +
34 shared_ptr<XML> xml(
new XML(str));
35 shared_ptr<Invoke> invoke(
new Invoke(
"login",
"jhnam88",
"1231", 4, xml));
37 cout <<
"Invoke to XML: " << endl;
38 cout << invoke->toXML()->toString() << endl << endl;
40 cout <<
"-------------------------------------------------------------" << endl;
41 cout <<
" Parameters" << endl;
42 cout <<
"-------------------------------------------------------------" << endl;
43 cout <<
"1st param: " << invoke->at(0)->getValue<
string>() << endl;
44 cout <<
"2nd param: " << invoke->at(1)->getValue<
string>() << endl;
45 cout <<
"3rd param: " << invoke->at(2)->getValue<
string>() << endl;
46 cout <<
"4th param: " << endl << invoke->at(3)->getValue<shared_ptr<XML>>()->toString() << endl;
Package of network protocol and libraries.
Standard message of network I/O.
XML is a class representing xml object.
Top level namespace of products built from samchon.