You can subscribe to this list here.
2002 |
Jan
|
Feb
(44) |
Mar
(51) |
Apr
(11) |
May
(5) |
Jun
(1) |
Jul
(19) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(3) |
Feb
|
Mar
|
Apr
(24) |
May
(37) |
Jun
(23) |
Jul
(14) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(17) |
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2005 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(3) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(7) |
Dec
|
From: Asbjorn M. <ste...@us...> - 2002-03-08 12:23:18
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv6292 Modified Files: epp_PollResData.h Log Message: m_type needs to be "protected", not "private" (doh). Index: epp_PollResData.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollResData.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_PollResData.h 8 Mar 2002 11:41:27 -0000 1.6 --- epp_PollResData.h 8 Mar 2002 12:23:15 -0000 1.7 *************** *** 38,42 **** class epp_PollResData { ! private: epp_string m_type; --- 38,42 ---- class epp_PollResData { ! protected: epp_string m_type; |
From: Asbjorn M. <ste...@us...> - 2002-03-08 12:16:57
|
Update of /cvsroot/epp-rtk/epp-rtk/c++ In directory usw-pr-cvs1:/tmp/cvs-serv4971 Modified Files: Makefile.am configure.in Log Message: -Added CLEANFILES to Makefile.am -Added check for openssl in configure.in Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 19 Jun 2001 19:16:37 -0000 1.1 --- Makefile.am 8 Mar 2002 12:16:53 -0000 1.2 *************** *** 2,5 **** --- 2,6 ---- VERSION=1.00 SUBDIRS=src + CLEANFILES = *~ EXTRA_DIST=clean.sh final.sh debug.sh #docs/Makefile docs/docs.cfg Index: configure.in =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/configure.in,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** configure.in 21 Feb 2002 18:28:07 -0000 1.4 --- configure.in 8 Mar 2002 12:16:53 -0000 1.5 *************** *** 24,27 **** --- 24,28 ---- CXXFLAGS="--ansi -Wall -g -O2" #AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) + AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h openssl/x509.h,, AC_MSG_ERROR("Missing header - probably missing openssl")) AC_CHECK_HEADERS(parsers/DOMParser.hpp util/PlatformUtils.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) #Only here for deprecated functions: |
From: Asbjorn M. <ste...@us...> - 2002-03-08 12:14:47
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv4717 Modified Files: ltoa.h Log Message: Made attribute const. Index: ltoa.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/ltoa.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ltoa.h 20 Feb 2002 17:26:02 -0000 1.2 --- ltoa.h 8 Mar 2002 12:14:44 -0000 1.3 *************** *** 26,36 **** ************************************************************************/ ! #ifndef __ltoa__ ! #define __ltoa__ #include <string> #include <cstdio> ! inline string ltoa(long i) { char buf[20]; sprintf(buf,"%ld",i); --- 26,36 ---- ************************************************************************/ ! #ifndef __LTOA__ ! #define __LTOA__ #include <string> #include <cstdio> ! inline string ltoa(const long i) { char buf[20]; sprintf(buf,"%ld",i); |
From: Asbjorn M. <ste...@us...> - 2002-03-08 12:13:28
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/unspec In directory usw-pr-cvs1:/tmp/cvs-serv4527 Modified Files: epp_UnspecTest.h Log Message: From 05/03 using epp_Extension instead of epp_Unspec Index: epp_UnspecTest.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/unspec/epp_UnspecTest.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_UnspecTest.h 20 Feb 2002 17:26:02 -0000 1.3 --- epp_UnspecTest.h 8 Mar 2002 12:13:26 -0000 1.4 *************** *** 39,43 **** namespace eppobject { namespace epp { ! class epp_UnspecTest : public epp_Unspec { public: epp_Weather_ref m_weather; --- 39,43 ---- namespace eppobject { namespace epp { ! class epp_UnspecTest : public epp_Extension { public: epp_Weather_ref m_weather; |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv4133 Modified Files: testTools.h testTools.cc main_contactcheck.cc main_contactcreate.cc main_contactdelete.cc main_contactinfo.cc main_contacttransfer.cc main_contactupdate.cc main_domaincheck.cc main_domaincreate.cc main_domaindelete.cc main_domaininfo.cc main_domainrenew.cc main_domaintransfer.cc main_domainupdate.cc main_hello.cc main_hostcheck.cc main_hostcreate.cc main_hostdelete.cc main_hostinfo.cc main_hostupdate.cc main_login.cc main_loginunspec.cc main_logout.cc main_poll.cc Log Message: -Upgraded test files to 05/03 -Test-functions now writing m_response as XML to cerr -Changed ifdef identifier used for testing -Made elements in testTools-functions const when possible -Added more test-functions to testTools Index: testTools.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** testTools.h 20 Feb 2002 17:26:02 -0000 1.8 --- testTools.h 8 Mar 2002 12:11:51 -0000 1.9 *************** *** 37,47 **** ! void printResultsSeq(eppobject::epp::epp_result_seq_ref results); ! void printResponsePart(eppobject::epp::epp_Response_ref response); bool handleArgs(eppobject::epp::epp_Session & sess, ! int argc, ! char * argv[], string & username, string & password); --- 37,52 ---- ! void printResultsSeq(const eppobject::epp::epp_result_seq_ref results); ! void printTransID(const eppobject::epp::epp_TransID_ref transID); ! void printResponsePart(const eppobject::epp::epp_Response_ref response); ! void printResponsePart1(const eppobject::epp::epp_Response_ref response); ! void printResponsePart2(const eppobject::epp::epp_Response_ref response); ! ! void printResDataHeaders(const string & object, const string & returntype); ! void printResDataFooter(const string & object, const string & returntype); bool handleArgs(eppobject::epp::epp_Session & sess, ! int argc, char * argv[], string & username, string & password); Index: testTools.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.cc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** testTools.cc 20 Feb 2002 17:26:02 -0000 1.5 --- testTools.cc 8 Mar 2002 12:11:51 -0000 1.6 *************** *** 37,113 **** using namespace eppobject::epp; ! void printResultsSeq(epp_result_seq_ref results) { if(results != NULL) { ! int count = 0; for(epp_result_seq::iterator i = results->begin(); ! i != results->end(); i++) { ! count++; ! if(i->m_code != NULL) { ! cout << count << "_m_code: " << *i->m_code << endl; ! } ! ! if(i->m_msg != NULL) { ! cout << count << "_m_msg: " << *i->m_msg << endl; ! } ! ! if(i->m_lang != NULL) { ! cout << count << "_m_lang: " << *i->m_lang << endl; ! } ! ! if(i->m_id != NULL) { ! cout << count << "_m_id: " << *i->m_id << endl; ! } ! ! if(i->m_values != NULL) { ! int count2 = 0; ! for(epp_string_seq::iterator j = i->m_values->begin(); ! j != i->m_values->end(); j++) { ! count2++; ! cout << count << "_" << count2 << "_m_value: " << *j << endl; ! } ! } ! } ! } } // printResultsSeq ! void printResponsePart(epp_Response_ref response) { if(response != NULL) { printResultsSeq(response->m_results); ! if(response->m_unspec_string != NULL) { ! cout << "m_unspec_string: " << *response->m_unspec_string << endl; ! } if(response->m_message_queue != NULL) { if(response->m_message_queue->m_count != NULL) { ! cout << "m_count: " << *response->m_message_queue->m_count << endl; } if(response->m_message_queue->m_queue_date != NULL) { ! cout << "m_queue_date: " << *response->m_message_queue->m_queue_date << endl; } ! } if(response->m_trans_id != NULL) { if(response->m_trans_id->m_client_trid != NULL) { ! cout << "m_client_trid: " << *response->m_trans_id->m_client_trid << endl; } if(response->m_trans_id->m_server_trid != NULL) { ! cout << "m_server_trid: " << *response->m_trans_id->m_server_trid << endl; } ! } ! } ! ! } // printRsp ! bool handleArgs(epp_Session & sess, int argc, char * argv[], string & username, string & password) { username = "testlogin"; --- 37,198 ---- using namespace eppobject::epp; ! void printResultsSeq(const epp_result_seq_ref results) { if(results != NULL) { ! for(epp_result_seq::iterator i = results->begin(); ! i != results->end(); i++) ! { ! cerr << "<result"; ! ! if(i->m_code != NULL) { ! cerr << " code=\"" << *i->m_code << "\""; ! } // if "m_code" ! ! cerr << ">" << endl; ! ! if(i->m_msg != NULL) { ! ! cerr << "<msg"; ! ! if(i->m_lang != NULL) { ! cerr << " lang=\"" << *i->m_lang << "\""; ! } ! ! if(i->m_id != NULL) { ! cerr << " id=\"" << *i->m_id << "\""; ! } ! ! cerr << ">" << *i->m_msg << "</msg>" << endl; ! } // if "m_msg" ! ! ! if(i->m_values != NULL) { ! ! for(epp_string_seq::iterator j = i->m_values->begin(); ! j != i->m_values->end(); j++) ! { ! cerr << "<value>" << *j << "</value>" << endl; ! } ! } // if "m_values" ! if(i->m_data != NULL) { ! cerr << "<data>"; ! ! if(i->m_data->m_status != NULL && i->m_data->m_status->m_cltrid != NULL) { ! cerr << endl; ! } ! ! //<fixme>Error in draft/idl? Can max handle 1 element... ! if(i->m_data->m_status != NULL) { ! ! if(i->m_data->m_status->m_cltrid != NULL) { ! cerr << "<status>" << endl; ! cerr << "<clTRID"; ! ! if(i->m_data->m_status->m_ack != NULL) { ! if(*i->m_data->m_status->m_ack == true) { ! cerr << " ack=\"1\""; ! } else { ! cerr << " ack=\"0\""; ! } ! } ! ! cerr << ">" << *i->m_data->m_status->m_cltrid << "</clTRID>" << endl; ! cerr << "</status>" << endl; ! } ! else { ! cerr << "<status/>"; ! } ! ! } ! cerr << "</data>" << endl; ! } // if "m_data" ! cerr << "</result>" << endl; ! } // for ! } // if "results" } // printResultsSeq ! void printTransID(const eppobject::epp::epp_TransID_ref transID) ! { ! if(transID != NULL) { ! cerr << "<trID>" << endl; ! if(transID->m_client_trid != NULL) { ! cerr << "<clTRID>" << *transID->m_client_trid << "</clTRID>" << endl; ! } ! if(transID->m_server_trid != NULL) { ! cerr << "<svTRID>" << *transID->m_server_trid << "</svTRID>" << endl; ! } ! cerr << "</trID>" << endl; ! } ! } // printTransID ! ! ! void printResponsePart(const epp_Response_ref response) ! { ! printResponsePart1(response); ! printResponsePart2(response); ! } // printResponsePart ! ! void printResponsePart1(const epp_Response_ref response) { if(response != NULL) { + cerr << "<response>" << endl; + printResultsSeq(response->m_results); ! if(response->m_ext_string != NULL) { ! cerr << "<extension>" << endl; ! cerr << *response->m_ext_string << "</extension>" << endl; ! } // if "m_ext_string" if(response->m_message_queue != NULL) { + cerr << "<msgQ"; if(response->m_message_queue->m_count != NULL) { ! cerr << " count=\"" << *response->m_message_queue->m_count << "\""; } + if(response->m_message_queue->m_queue_date != NULL) { ! cerr << ">" << endl; ! cerr << "<qDate>" << *response->m_message_queue->m_queue_date << "</qDate>" << endl; ! cerr << "</msgQ>" << endl; } ! else { ! cerr << "/>" << endl; ! } ! ! } // if "m_message_queue" ! ! } // if "response" ! ! } // printResponsePart1 ! ! void printResponsePart2(const epp_Response_ref response) ! { ! if(response != NULL) { if(response->m_trans_id != NULL) { + cerr << "<trID>\n"; if(response->m_trans_id->m_client_trid != NULL) { ! cerr << "<clTRID>" << *response->m_trans_id->m_client_trid << "</clTRID>" << endl; } if(response->m_trans_id->m_server_trid != NULL) { ! cerr << "<svTRID>" << *response->m_trans_id->m_server_trid << "</svTRID>" << endl; } ! cerr << "</trID>\n"; } ! cerr << "</response>\n"; ! ! } // if "response" ! ! } // printResponsePart2 ! bool handleArgs(epp_Session & sess, int argc, char * argv[], ! string & username, string & password) { username = "testlogin"; *************** *** 118,129 **** { cout << argv[0]; ! #if MYTRANSPORT!=TRANSPORT_IOSTREAM // Only relevant for connection-transport cout << " -n=<servername> -p=<serverPort>"; #endif ! cout << " -l=<login> -s=<pass>"; ! #if MYTRANSPORT==TRANSPORT_SSL // Only relevant if the transport is using SSL... --- 203,214 ---- { cout << argv[0]; ! #if MYTRANSPORT!=TRANSPORT_IOSTREAM // Only relevant for connection-transport cout << " -n=<servername> -p=<serverPort>"; #endif ! cout << " -l=<login> -s=<pass>"; ! #if MYTRANSPORT==TRANSPORT_SSL // Only relevant if the transport is using SSL... *************** *** 134,138 **** cout << endl; return false; ! } for(int parm = 1; parm < argc; parm++) --- 219,223 ---- cout << endl; return false; ! } // if "-?" for(int parm = 1; parm < argc; parm++) *************** *** 148,157 **** { sess.setServerName(&argv[parm][3]); ! } // -n if (!strncmp(argv[parm], "-p=", 3)) { sess.setServerPort(atol(&argv[parm][3])); ! } // -p #endif --- 233,242 ---- { sess.setServerName(&argv[parm][3]); ! } // if "-n" if (!strncmp(argv[parm], "-p=", 3)) { sess.setServerPort(atol(&argv[parm][3])); ! } // if "-p" #endif *************** *** 161,175 **** { sess.setCertFile(&argv[parm][3]); ! } // -c if (!strncmp(argv[parm], "-cadir=", 7)) { sess.setCACertDir(&argv[parm][7]); ! } // -cadir if (!strncmp(argv[parm], "-ca=", 4)) { sess.setCACertFile(&argv[parm][4]); ! } // -ca #endif --- 246,260 ---- { sess.setCertFile(&argv[parm][3]); ! } // if "-c" if (!strncmp(argv[parm], "-cadir=", 7)) { sess.setCACertDir(&argv[parm][7]); ! } // if "-cadir" if (!strncmp(argv[parm], "-ca=", 4)) { sess.setCACertFile(&argv[parm][4]); ! } // if "-ca" #endif *************** *** 177,186 **** { username = &argv[parm][3]; ! } // -l if (!strncmp(argv[parm], "-s=", 3)) { password = &argv[parm][3]; ! } // -s --- 262,271 ---- { username = &argv[parm][3]; ! } // if "-l" if (!strncmp(argv[parm], "-s=", 3)) { password = &argv[parm][3]; ! } // if "-s" *************** *** 196,205 **** { ! #ifdef TEST_OUTPUTTOCERR return; #endif try { - // Filling Login-object: --- 281,294 ---- { ! #ifdef TEST_IO_REQUEST2CERR ! return; ! #endif ! ! #ifdef TEST_IO_RESULT2CERR return; #endif + try { // Filling Login-object: *************** *** 214,234 **** l_req->m_cmd->m_creds->m_password.ref(new epp_string(password)); ! l_req->m_cmd->m_unspec.ref(new epp_Unspec()); l_req->m_cmd->m_client_trid.ref(new epp_trid("LogIn-1")); ! epp_Service ser1(epp_string("contact"), ! epp_string("urn:iana:xml:ns:contact"), ! epp_string("urn:iana:xml:ns:contact contact.xsd")); ! epp_Service ser2(epp_string("domain"), ! epp_string("urn:iana:xml:ns:domain"), ! epp_string("urn:iana:xml:ns:domain domain.xsd")); ! epp_Service ser3(epp_string("host"), ! epp_string("urn:iana:xml:ns:host"), ! epp_string("urn:iana:xml:ns:host host.xsd")); ! ! l_req->m_services.ref(new epp_service_seq()); ! l_req->m_services->push_back(ser1); ! l_req->m_services->push_back(ser2); ! l_req->m_services->push_back(ser3); epp_Login_ref l_obj(new epp_Login()); --- 303,313 ---- l_req->m_cmd->m_creds->m_password.ref(new epp_string(password)); ! l_req->m_cmd->m_ext.ref(new epp_Extension()); l_req->m_cmd->m_client_trid.ref(new epp_trid("LogIn-1")); ! l_req->m_services.ref(new epp_objuri_seq()); ! l_req->m_services->push_back("urn:ietf:params:xml:ns:contact-1.0"); ! l_req->m_services->push_back("urn:ietf:params:xml:ns:domain-1.0"); ! l_req->m_services->push_back("urn:ietf:params:xml:ns:host-1.0"); epp_Login_ref l_obj(new epp_Login()); *************** *** 236,240 **** l_obj->setRequestData(*l_req); - // Process request and get response: --- 315,318 ---- *************** *** 244,248 **** epp_LoginRsp_ref l_rsp = l_obj->getResponseData(); - // Print response: --- 322,325 ---- *************** *** 256,257 **** --- 333,350 ---- } // testLogIn + + void printResDataHeaders(const string & object, const string & returntype) + { + cerr << "<resData>" << endl; + cerr << "<" << object << ":" << returntype << endl; + cerr << "xmlns:" << object << "=\"urn:ietf:params:xml:ns:" << object << "-1.0\"" << endl; + cerr << "xsi:schemaLocation=\"urn:ietf:params:xml:ns:" << object << "-1.0" << endl; + cerr << object << "-1.0.xsd\">" << endl; + } // printResDataHeaders + + + void printResDataFooter(const string & object, const string & returntype) + { + cerr << "</" << object << ":" << returntype << ">" << endl; + cerr << "</resData>" << endl; + } // printResDataFooter Index: main_contactcheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactcheck.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main_contactcheck.cc 20 Feb 2002 17:26:02 -0000 1.7 --- main_contactcheck.cc 8 Mar 2002 12:11:51 -0000 1.8 *************** *** 46,59 **** if(req != NULL) { ! printResponsePart(req->m_rsp); if(req->m_results != NULL) { for(epp_check_result_seq::iterator i =req->m_results->begin(); i != req->m_results->end(); i++) { ! string exists = *i->m_exists ? "Y" : "N"; ! cout << "m_exists: " << exists << endl; ! cout << "m_value: " << *i->m_value << endl; } } } --- 46,83 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! printResDataHeaders("contact", "chkData"); if(req->m_results != NULL) { + + for(epp_check_result_seq::iterator i =req->m_results->begin(); i != req->m_results->end(); i++) { ! cerr << "<contact:cd>" << endl; ! cerr << "<contact:id"; ! ! if(i->m_avail != NULL) { ! string avail = *i->m_avail ? "1" : "0"; ! cerr << " avail=\"" << avail << "\""; ! } ! cerr << ">"; ! ! if(i->m_value != NULL) ! cerr << *i->m_value; ! ! cerr << "</contact:id>" << endl; ! ! if(i->m_reason != NULL) ! cerr << "<contact:reason>" << *i->m_reason << "</contact:reason>" << endl; ! ! if(i->m_lang != NULL) ! cerr << "<lang>" << *i->m_lang << "</lang>" << endl; ! ! cerr << "</contact:cd>" << endl; } } + + printResDataFooter("contact", "chkData"); + printResponsePart2(req->m_rsp); } *************** *** 78,83 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); epp_string_seq_ref names(new epp_string_seq); --- 102,107 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); epp_string_seq_ref names(new epp_string_seq); *************** *** 97,102 **** epp_ContactCheckRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 121,127 ---- epp_ContactCheckRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 107,111 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 132,141 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_contactcreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactcreate.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** main_contactcreate.cc 20 Feb 2002 17:26:02 -0000 1.8 --- main_contactcreate.cc 8 Mar 2002 12:11:51 -0000 1.9 *************** *** 47,54 **** if(req != NULL) { ! printResponsePart(req->m_rsp); if(req->m_id != NULL) ! cout << "m_id: " << *req-> m_id << endl; } --- 47,62 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! ! printResDataHeaders("contact", "creData"); if(req->m_id != NULL) ! cerr << "<contact:id>" << *req-> m_id << "</contact:id>" << endl; ! ! if(req->m_creation_date != NULL) ! cerr << "<contact:crDate>" << *req-> m_creation_date << "</contact:crDate>" << endl; ! ! printResDataFooter("contact", "creData"); ! printResponsePart2(req->m_rsp); } *************** *** 74,78 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), epp_trid("ABC-12345"))); --- 82,86 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, epp_trid("ABC-12345"))); *************** *** 110,116 **** epp_ContactCreateRsp_ref l_rsp = l_obj->getResponseData(); ! printRsp(l_rsp); ! return 0; --- 118,125 ---- epp_ContactCreateRsp_ref l_rsp = l_obj->getResponseData(); ! ! #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 121,125 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 130,139 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_contactdelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactdelete.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main_contactdelete.cc 20 Feb 2002 17:26:02 -0000 1.7 --- main_contactdelete.cc 8 Mar 2002 12:11:51 -0000 1.8 *************** *** 62,66 **** testLogIn(test, username, password); ! try { --- 62,66 ---- testLogIn(test, username, password); ! try { *************** *** 68,73 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); --- 68,73 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); *************** *** 82,87 **** epp_ContactDeleteRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 82,88 ---- epp_ContactDeleteRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 92,96 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 93,102 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_contactinfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactinfo.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** main_contactinfo.cc 20 Feb 2002 17:26:02 -0000 1.9 --- main_contactinfo.cc 8 Mar 2002 12:11:51 -0000 1.10 *************** *** 32,35 **** --- 32,36 ---- #include "data/epp_ContactInfoReq.h" #include "data/epp_ContactInfoRsp.h" + #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" #include "data/epp_Exception.h" *************** *** 49,201 **** if(req != NULL) { ! printResponsePart(req->m_rsp); - if(req->m_roid != NULL) - cout << "m_roid: " << *req-> m_roid << endl; - if(req->m_id != NULL) ! cout << "m_id: " << *req-> m_id << endl; if(req->m_ascii_address != NULL) { ! cout << "m_ascii_address:\n"; if(req->m_ascii_address->m_name != NULL) ! cout << " m_name: " << *req->m_ascii_address->m_name << endl; if(req->m_ascii_address->m_org != NULL) ! cout << " m_org: " << *req->m_ascii_address->m_org << endl; if(req->m_ascii_address->m_address != NULL) { if(req->m_ascii_address->m_address->m_street1 != NULL) ! cout << " m_street1: " << *req->m_ascii_address->m_address->m_street1 << endl; if(req->m_ascii_address->m_address->m_street2 != NULL) ! cout << " m_street2: " << *req->m_ascii_address->m_address->m_street2 << endl; if(req->m_ascii_address->m_address->m_street3 != NULL) ! cout << " m_street3: " << *req->m_ascii_address->m_address->m_street3 << endl; if(req->m_ascii_address->m_address->m_city != NULL) ! cout << " m_city: " << *req->m_ascii_address->m_address->m_city << endl; if(req->m_ascii_address->m_address->m_state_province != NULL) ! cout << " m_state_province: " << *req->m_ascii_address->m_address->m_state_province << endl; if(req->m_ascii_address->m_address->m_postal_code != NULL) ! cout << " m_postal_code: " << *req->m_ascii_address->m_address->m_postal_code << endl; if(req->m_ascii_address->m_address->m_country_code != NULL) ! cout << " m_country_code: " << *req->m_ascii_address->m_address->m_country_code << endl; ! } ! } if(req->m_i15d_address != NULL) { ! cout << "m_i15d_address:\n"; if(req->m_i15d_address->m_name != NULL) ! cout << " m_name: " << *req->m_i15d_address->m_name << endl; if(req->m_i15d_address->m_org != NULL) ! cout << " m_org: " << *req->m_i15d_address->m_org << endl; if(req->m_i15d_address->m_address != NULL) { if(req->m_i15d_address->m_address->m_street1 != NULL) ! cout << " m_street1: " << *req->m_i15d_address->m_address->m_street1 << endl; if(req->m_i15d_address->m_address->m_street2 != NULL) ! cout << " m_street2: " << *req->m_i15d_address->m_address->m_street2 << endl; if(req->m_i15d_address->m_address->m_street3 != NULL) ! cout << " m_street3: " << *req->m_i15d_address->m_address->m_street3 << endl; if(req->m_i15d_address->m_address->m_city != NULL) ! cout << " m_city: " << *req->m_i15d_address->m_address->m_city << endl; if(req->m_i15d_address->m_address->m_state_province != NULL) ! cout << " m_state_province: " << *req->m_i15d_address->m_address->m_state_province << endl; if(req->m_i15d_address->m_address->m_postal_code != NULL) ! cout << " m_postal_code: " << *req->m_i15d_address->m_address->m_postal_code << endl; if(req->m_i15d_address->m_address->m_country_code != NULL) ! cout << " m_country_code: " << *req->m_i15d_address->m_address->m_country_code << endl; ! } ! } if(req->m_voice != NULL) { ! cout << "m_voice:\n"; if(req->m_voice->m_extension != NULL) ! cout << " m_extension: " << *req->m_voice->m_extension << endl; if(req->m_voice->m_value != NULL) ! cout << " m_value: " << *req->m_voice->m_value << endl; } if(req->m_fax != NULL) { ! cout << "m_fax:\n"; if(req->m_fax->m_extension != NULL) ! cout << " m_extension: " << *req->m_fax->m_extension << endl; if(req->m_fax->m_value != NULL) ! cout << " m_value: " << *req->m_fax->m_value << endl; } if(req->m_email != NULL) ! cout << "m_email: " << *req-> m_email << endl; - if(req->m_status != NULL) - { - cout << "m_status:\n"; - for(epp_contact_status_seq::iterator i = req->m_status->begin(); - i != req->m_status->end(); i++) - { - if(i->m_type != NULL) { - string status; - switch(*i->m_type) { - case CLIENT_DELETE_PROHIBITED: status = "CLIENT_DELETE_PROHIBITED"; break; - case SERVER_DELETE_PROHIBITED: status = "SERVER_DELETE_PROHIBITED"; break; - case CLIENT_TRANSFER_PROHIBITED: status = "CLIENT_TRANSFER_PROHIBITED"; break; - case SERVER_TRANSFER_PROHIBITED: status = "SERVER_TRANSFER_PROHIBITED"; break; - case CLIENT_UPDATE_PROHIBITED: status = "CLIENT_UPDATE_PROHIBITED"; break; - case SERVER_UPDATE_PROHIBITED: status = "SERVER_UPDATE_PROHIBITED"; break; - case LINKED: status = "LINKED"; break; - case OK: status = "OK"; break; - case PENDING_DELETE: status = "PENDING_DELETE"; break; - case PENDING_TRANSFER: status = "PENDING_TRANSFER"; break; - default: status = "**UNKNOWN**"; - } - cout << " m_type: " << status << endl; - - } - if(i->m_lang != NULL) - cout << " m_lang :" << *i->m_lang << endl; - if(i->m_value != NULL) - cout << " m_value: " << *i->m_value << endl; - - } - } if(req->m_client_id != NULL) ! cout << "m_client_id: " << *req->m_client_id << endl; if(req->m_created_by != NULL) ! cout << "m_created_by: " << *req->m_created_by << endl; if(req->m_created_date != NULL) ! cout << "m_created_date: " << *req->m_created_date << endl; if(req->m_updated_by != NULL) ! cout << "m_updated_by: " << *req->m_updated_by << endl; if(req->m_updated_date != NULL) ! cout << "m_updated_date: " << *req->m_updated_date << endl; if(req->m_transfer_date != NULL) ! cout << "m_transfer_date: " << *req->m_transfer_date << endl; if(req->m_auth_info != NULL) { ! cout << "m_auth_info: " << endl; if(req->m_auth_info->m_type != NULL) { string type; switch(*req->m_auth_info->m_type) { ! case PW: type = "PW"; break; default: type = "**UNKNOWN**"; } ! cout << " m_type: " << type << endl; ! } if(req->m_auth_info->m_roid != NULL) ! cout << " m_roid: " << *req->m_auth_info->m_roid << endl; if(req->m_auth_info->m_value != NULL) ! cout << " m_value: " << *req->m_auth_info->m_value << endl; } ! } --- 50,214 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! printResDataHeaders("contact", "infData"); if(req->m_id != NULL) ! cerr << "<contact:id>" << *req-> m_id << "</contact:id>" << endl; ! ! if(req->m_roid != NULL) ! cerr << "<contact:roid>" << *req->m_roid << "</contact:roid>" << endl; ! ! if(req->m_status != NULL) ! { ! for(epp_contact_status_seq::iterator i = req->m_status->begin(); ! i != req->m_status->end(); i++) ! { ! cerr << "<contact:status"; ! if(i->m_type != NULL) { ! string status = returnStatusType(*i->m_type); ! cerr << " s=\"" << status << "\""; ! } ! if(i->m_lang != NULL) ! cerr << " m_lang :" << *i->m_lang << endl; ! if(i->m_value != NULL) ! cerr << " m_value: " << *i->m_value << endl; ! ! cerr << "/>" << endl; ! } ! } if(req->m_ascii_address != NULL) { ! cerr << "<contact:ascii>" << endl; if(req->m_ascii_address->m_name != NULL) ! cerr << "<contact:name>" << *req->m_ascii_address->m_name << "</contact:name>" << endl; if(req->m_ascii_address->m_org != NULL) ! cerr << "<contact:org>" << *req->m_ascii_address->m_org << "</contact:org>" << endl; if(req->m_ascii_address->m_address != NULL) { + cerr << "<contact:addr>" << endl; if(req->m_ascii_address->m_address->m_street1 != NULL) ! cerr << "<contact:street>" << *req->m_ascii_address->m_address->m_street1 << "</contact:street>" << endl; if(req->m_ascii_address->m_address->m_street2 != NULL) ! cerr << "<contact:street>" << *req->m_ascii_address->m_address->m_street2 << "</contact:street>" << endl; if(req->m_ascii_address->m_address->m_street3 != NULL) ! cerr << "<contact:street>" << *req->m_ascii_address->m_address->m_street3 << "</contact:street>" << endl; if(req->m_ascii_address->m_address->m_city != NULL) ! cerr << "<contact:city>" << *req->m_ascii_address->m_address->m_city << "</contact:city>" << endl; if(req->m_ascii_address->m_address->m_state_province != NULL) ! cerr << "<contact:sp>" << *req->m_ascii_address->m_address->m_state_province << "</contact:sp>" << endl; if(req->m_ascii_address->m_address->m_postal_code != NULL) ! cerr << "<contact:pc>" << *req->m_ascii_address->m_address->m_postal_code << "</contact:pc>" << endl; if(req->m_ascii_address->m_address->m_country_code != NULL) ! cerr << "<contact:cc>" << *req->m_ascii_address->m_address->m_country_code << "</contact:cc>" << endl; ! ! cerr << "</contact:addr>" << endl; } ! ! cerr << "</contact:ascii>" << endl; } if(req->m_i15d_address != NULL) { ! cerr << "<contact:ascii>" << endl; if(req->m_i15d_address->m_name != NULL) ! cerr << "<contact:name>" << *req->m_i15d_address->m_name << "</contact:name>" << endl; if(req->m_i15d_address->m_org != NULL) ! cerr << "<contact:org>" << *req->m_i15d_address->m_org << "</contact:org>" << endl; if(req->m_i15d_address->m_address != NULL) { + cerr << "<contact:addr>" << endl; if(req->m_i15d_address->m_address->m_street1 != NULL) ! cerr << "<contact:street>" << *req->m_i15d_address->m_address->m_street1 << "</contact:street>" << endl; if(req->m_i15d_address->m_address->m_street2 != NULL) ! cerr << "<contact:street>" << *req->m_i15d_address->m_address->m_street2 << "</contact:street>" << endl; if(req->m_i15d_address->m_address->m_street3 != NULL) ! cerr << "<contact:street>" << *req->m_i15d_address->m_address->m_street3 << "</contact:street>" << endl; if(req->m_i15d_address->m_address->m_city != NULL) ! cerr << "<contact:city>" << *req->m_i15d_address->m_address->m_city << "</contact:city>" << endl; if(req->m_i15d_address->m_address->m_state_province != NULL) ! cerr << "<contact:sp>" << *req->m_i15d_address->m_address->m_state_province << "</contact:sp>" << endl; if(req->m_i15d_address->m_address->m_postal_code != NULL) ! cerr << "<contact:pc>" << *req->m_i15d_address->m_address->m_postal_code << "</contact:pc>" << endl; if(req->m_i15d_address->m_address->m_country_code != NULL) ! cerr << "<contact:cc>" << *req->m_i15d_address->m_address->m_country_code << "</contact:cc>" << endl; ! ! cerr << "</contact:addr>" << endl; } ! ! cerr << "</contact:ascii>" << endl; } + if(req->m_voice != NULL) { ! cerr << "<contact:voice"; if(req->m_voice->m_extension != NULL) ! cerr << " x=\"" << *req->m_voice->m_extension << "\""; ! cerr << ">"; ! if(req->m_voice->m_value != NULL) ! cerr << *req->m_voice->m_value; ! ! cerr << "</contact:voice>" << endl; } if(req->m_fax != NULL) { ! cerr << "<contact:fax"; if(req->m_fax->m_extension != NULL) ! cerr << " x=\"" << *req->m_fax->m_extension << "\""; ! cerr << ">"; ! if(req->m_fax->m_value != NULL) ! cerr << *req->m_fax->m_value; ! ! cerr << "</contact:fax>" << endl; ! } if(req->m_email != NULL) ! cerr << "<contact:email>" << *req-> m_email << "</contact:email>" << endl; if(req->m_client_id != NULL) ! cerr << "<contact:clID>" << *req->m_client_id << "</contact:clID>" << endl; if(req->m_created_by != NULL) ! cerr << "<contact:crID>" << *req->m_created_by << "</contact:crID>" << endl; if(req->m_created_date != NULL) ! cerr << "<contact:crDate>" << *req->m_created_date << "</contact:crDate>" << endl; if(req->m_updated_by != NULL) ! cerr << "<contact:upID>" << *req->m_updated_by << "</contact:upID>" << endl; if(req->m_updated_date != NULL) ! cerr << "<contact:upDate>" << *req->m_updated_date << "</contact:upDate>" << endl; if(req->m_transfer_date != NULL) ! cerr << "<contact:trDate>" << *req->m_transfer_date << "</contact:trDate>" << endl; if(req->m_auth_info != NULL) { ! cerr << "<contact:authInfo"; if(req->m_auth_info->m_type != NULL) { string type; switch(*req->m_auth_info->m_type) { ! case PW: type = "pw"; break; default: type = "**UNKNOWN**"; } ! cerr << " type=\"" << type << "\""; ! } if(req->m_auth_info->m_roid != NULL) ! cerr << " roid=\"" << *req->m_auth_info->m_roid << "\""; ! ! cerr << ">"; if(req->m_auth_info->m_value != NULL) ! cerr << *req->m_auth_info->m_value; ! ! cerr << "</contact:authInfo>" << endl; ! } ! ! printResDataFooter("contact", "infData"); ! printResponsePart2(req->m_rsp); } *************** *** 219,224 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); l_req->m_id.ref(new epp_string("sh8013")); --- 232,237 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); l_req->m_id.ref(new epp_string("sh8013")); *************** *** 232,237 **** epp_ContactInfoRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 245,251 ---- epp_ContactInfoRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 242,246 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 256,265 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_contacttransfer.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contacttransfer.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main_contacttransfer.cc 20 Feb 2002 17:26:02 -0000 1.7 --- main_contacttransfer.cc 8 Mar 2002 12:11:51 -0000 1.8 *************** *** 49,86 **** if(req != NULL) { ! printResponsePart(req->m_rsp); ! ! if(req->m_id != NULL) ! cout << "m_id: " << *req->m_id << endl; ! ! if(req->m_transfer_status != NULL) { ! string trStatus; ! switch(*req->m_transfer_status) { ! case CLIENT_APPROVED: trStatus = "CLIENT_APPROVED"; break; ! case CLIENT_CANCELLED: trStatus = "CLIENT_CANCELLED"; break; ! case CLIENT_REJECTED: trStatus = "CLIENT_REJECTED"; break; ! case PENDING: trStatus = "PENDING"; break; ! case SERVER_APPROVED: trStatus = "SERVER_APPROVED"; break; ! case SERVER_CANCELLED: trStatus = "SERVER_CANCELLED"; break; ! default: trStatus = "**UNKNOWN***"; ! } ! ! cout << "m_transfer_status: " << trStatus << endl; } - - - if(req->m_request_client_id != NULL) - cout << "m_request_client_id: " << *req->m_request_client_id << endl; - - if(req->m_request_date != NULL) - cout << "m_request_date: " << *req->m_request_date << endl; ! if(req->m_action_client_id != NULL) ! cout << "m_action_client_id: " << *req->m_action_client_id << endl; ! ! if(req->m_action_date != NULL) ! cout << "m_action_date: " << *req->m_action_date << endl; ! } --- 49,79 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! printResDataHeaders("contact", "trnData"); ! ! if(req->m_trn_data != NULL) { ! if(req->m_trn_data->m_id != NULL) ! cerr << "<contact:id>" << *req->m_trn_data->m_id << "</contact:id>" << endl; ! if(req->m_trn_data->m_transfer_status != NULL) { ! string trStatus = returnTransferStatusType(*req->m_trn_data->m_transfer_status); ! cerr << "<contact:trStatus>" << trStatus << "</contact:trStatus>" << endl; ! } ! ! if(req->m_trn_data->m_request_client_id != NULL) ! cerr << "<contact:reID>" << *req->m_trn_data->m_request_client_id << "</contact:reID>" << endl; ! ! if(req->m_trn_data->m_request_date != NULL) ! cerr << "<contact:reDate>" << *req->m_trn_data->m_request_date << "</contact:reDate>" << endl; ! ! if(req->m_trn_data->m_action_client_id != NULL) ! cerr << "<contact:acID>" << *req->m_trn_data->m_action_client_id << "</contact:acID>" << endl; ! ! if(req->m_trn_data->m_action_date != NULL) ! cerr << "<contact:acDate>" << *req->m_trn_data->m_action_date << "</contact:acDate>" << endl; } ! printResDataFooter("contact", "trnData"); ! printResponsePart2(req->m_rsp); } *************** *** 106,111 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); l_req->m_id.ref(new epp_string("sh8013")); --- 99,104 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); l_req->m_id.ref(new epp_string("sh8013")); *************** *** 124,129 **** epp_ContactTransferRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! cout << "\n----------------------------------\n"; --- 117,123 ---- epp_ContactTransferRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif cout << "\n----------------------------------\n"; *************** *** 140,145 **** l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 134,140 ---- l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 150,154 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 145,154 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_contactupdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactupdate.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** main_contactupdate.cc 20 Feb 2002 17:26:02 -0000 1.8 --- main_contactupdate.cc 8 Mar 2002 12:11:51 -0000 1.9 *************** *** 69,74 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); epp_ContactNameAddress_ref addr(new epp_ContactNameAddress()); --- 69,74 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); epp_ContactNameAddress_ref addr(new epp_ContactNameAddress()); *************** *** 112,117 **** printRsp(l_rsp); ! return 0; --- 112,118 ---- + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 122,126 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 123,132 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_domaincheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaincheck.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** main_domaincheck.cc 20 Feb 2002 17:26:02 -0000 1.6 --- main_domaincheck.cc 8 Mar 2002 12:11:51 -0000 1.7 *************** *** 46,59 **** if(req != NULL) { ! printResponsePart(req->m_rsp); if(req->m_results != NULL) { for(epp_check_result_seq::iterator i =req->m_results->begin(); i != req->m_results->end(); i++) { ! string exists = *i->m_exists ? "Y" : "N"; ! cout << "m_exists: " << exists << endl; ! cout << "m_value: " << *i->m_value << endl; } } } --- 46,80 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! printResDataHeaders("domain", "chkData"); if(req->m_results != NULL) { for(epp_check_result_seq::iterator i =req->m_results->begin(); i != req->m_results->end(); i++) { ! cerr << "<domain:cd>" << endl; ! cerr << "<domain:name"; ! ! if(i->m_avail != NULL) { ! string avail = *i->m_avail ? "1" : "0"; ! cerr << " avail=\"" << avail << "\""; ! } ! cerr << ">"; ! ! if(i->m_value != NULL) ! cerr << *i->m_value; ! cerr << "</domain:name>" << endl; ! ! if(i->m_reason != NULL) ! cerr << "<domain:reason>" << *i->m_reason << "</domain:reason>" << endl; ! ! if(i->m_lang != NULL) ! cerr << "<lang>" << *i->m_lang << "</lang>" << endl; ! ! cerr << "</domain:cd>" << endl; } } + + printResDataFooter("domain", "chkData"); + printResponsePart2(req->m_rsp); } *************** *** 78,83 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); epp_string_seq_ref names(new epp_string_seq()); --- 99,104 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); epp_string_seq_ref names(new epp_string_seq()); *************** *** 97,102 **** epp_DomainCheckRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 118,124 ---- epp_DomainCheckRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 107,111 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 129,138 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_domaincreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaincreate.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main_domaincreate.cc 20 Feb 2002 17:26:02 -0000 1.7 --- main_domaincreate.cc 8 Mar 2002 12:11:51 -0000 1.8 *************** *** 47,56 **** if(req != NULL) { ! printResponsePart(req->m_rsp); if(req->m_name != NULL) ! cout << "m_name: " << *req-> m_name << endl; if(req->m_expiration_date != NULL) ! cout << "m_expiration_date: " << *req-> m_expiration_date << endl; } --- 47,64 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! printResDataHeaders("domain", "creData"); if(req->m_name != NULL) ! cerr << "<domain:name>" << *req-> m_name << "</domain:name>" << endl; ! ! if(req->m_creation_date != NULL) ! cerr << "<domain:crDate>" << *req-> m_creation_date << "</domain:crDate>" << endl; ! if(req->m_expiration_date != NULL) ! cerr << "<domain:exDate>" << *req-> m_expiration_date << "</domain:exDate>" << endl; ! ! printResDataFooter("domain", "creData"); ! printResponsePart2(req->m_rsp); } *************** *** 76,80 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), epp_trid("ABC-12345"))); --- 84,88 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, epp_trid("ABC-12345"))); *************** *** 105,110 **** epp_DomainCreateRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 113,119 ---- epp_DomainCreateRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 115,119 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 124,133 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_domaindelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaindelete.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** main_domaindelete.cc 20 Feb 2002 17:26:02 -0000 1.6 --- main_domaindelete.cc 8 Mar 2002 12:11:51 -0000 1.7 *************** *** 68,73 **** l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); l_req->m_name.ref(new epp_string("example.com")); --- 68,73 ---- l_req->m_cmd.ref(new epp_Command(NULL, ! NULL, ! epp_trid("ABC-12345"))); l_req->m_name.ref(new epp_string("example.com")); *************** *** 81,86 **** epp_DomainDeleteRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; --- 81,87 ---- epp_DomainDeleteRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; *************** *** 91,95 **** catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 92,101 ---- catch(epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_trans_id); ! cerr << "</response>" << endl; ! #endif } catch(...) { Index: main_domaininfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaininfo.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** main_domaininfo.cc 20 Feb 2002 17:26:02 -0000 1.8 --- main_domaininfo.cc 8 Mar 2002 12:11:51 -0000 1.9 *************** *** 31,34 **** --- 31,35 ---- #include "data/epp_DomainInfoReq.h" #include "data/epp_DomainInfoRsp.h" + #include "data/epp_domainXMLbase.h" #include "data/epp_XMLException.h" #include "data/epp_Exception.h" *************** *** 39,43 **** using namespace eppobject::domain; ! using namespace eppobject::epp; --- 40,44 ---- using namespace eppobject::domain; ! //using namespace eppobject::epp; //<fixme>to solve "ALL" conflict...</fixme> *************** *** 48,117 **** if(req != NULL) { ! printResponsePart(req->m_rsp); if(req->m_name != NULL) ! cout << "m_name: " << *req->m_name << endl; if(req->m_roid != NULL) ! cout << "m_roid: " << *req->m_roid << endl; ! if(req->m_status != NULL) { - cout << "m_status:\n"; for(epp_domain_status_seq::iterator i = req->m_status->begin(); i != req->m_status->end(); i++) { if(i->m_type != NULL) { ! string status; ! switch(*i->m_type) { ! case CLIENT_DELETE_PROHIBITED: status = "CLIENT_DELETE_PROHIBITED"; break; ! case CLIENT_HOLD: status = "CLIENT_HOLD"; break; ! case CLIENT_RENEW_PROHIBITED: status = "CLIENT_RENEW_PROHIBITED"; break; ! case CLIENT_TRANSFER_PROHIBITED: status = "CLIENT_TRANSFER_PROHIBITED"; break; ! case CLIENT_UPDATE_PROHIBITED: status = "CLIENT_UPDATE_PROHIBITED"; break; ! case INACTIVE: status = "INACTIVE"; break; ! case OK: status = "OK"; break; ! case PENDING_DELETE: status = "PENDING_DELETE"; break; ! case PENDING_TRANSFER: status = "PENDING_TRANSFER"; break; ! case PENDING_VERIFICATION: status = "PENDING_VERIFICATION"; break; ! case SERVER_DELETE_PROHIBITED: status = "SERVER_DELETE_PROHIBITED"; break; ! case SERVER_HOLD: status = "SERVER_HOLD"; break; ! case SERVER_RENEW_PROHIBITED: status = "SERVER_RENEW_PROHIBITED"; break; ! case SERVER_TRANSFER_PROHIBITED: status = "SERVER_TRANSFER_PROHIBITED"; break; ! case SERVER_UPDATE_PROHIBITED: status = "SERVER_UPDATE_PROHIBITED"; break; ! default: status = "**UNKNOWN**"; ! } ! cout << " m_type: " << status << endl; } if(i->m_lang != NULL) ! cout << " m_lang :" << *i->m_lang << endl; if(i->m_value != NULL) ! cout << " m_value: " << *i->m_value << endl; } } ! if(req->m_registrant != NULL) ! cout << "m_registrant: " << *req->m_registrant << endl; if(req->m_contacts != NULL) { - cout << "m_contacts:\n"; for(epp_domain_contact_seq::iterator i = req->m_contacts->begin(); i != req->m_contacts->end(); i++) { if(i->m_type != NULL) { ! string type; ! switch(*i->m_type) { ! case ADMIN: type = "ADMIN"; break; ! case BILLING: type = "BILLING"; break; ! case TECH: type = "TECH"; break; ! default: type = "**UNKNOWN**"; ! } ! cout << " m_type: " << type << endl; } if(i->m_id != NULL) ! cout << " m_id: " << *i->m_id << endl; } } --- 49,102 ---- if(req != NULL) { ! printResponsePart1(req->m_rsp); ! printResDataHeaders("domain", "infData"); if(req->m_name != NULL) ! cerr << "<domain:name>" << *req-> m_name << "</domain:name>" << endl; if(req->m_roid != NULL) ! cerr << "<domain:roid>" << *req->m_roid << "</domain:roid>" << endl; ! if(req->m_status != NULL) { for(epp_domain_status_seq::iterator i = req->m_status->begin(); i != req->m_status->end(); i++) { + cerr << "<domain:status"; if(i->m_type != NULL) { ! string status = returnStatusType(*i->m_type); ! cerr << " s=\"" << status << "\""; } if(i->m_lang != NULL) ! cerr << " m_lang :" << *i->m_lang << endl; if(i->m_value != NULL) ! cerr << " m_value: " << *i->m_value << endl; ! ! cerr << "/>" << endl; } } ! if(req->m_registrant != NULL) ! cerr << "<domain:registrant>" << *req->m_registrant << "</domain:registrant>" << endl; + if(req->m_contacts != NULL) { for(epp_domain_contact_seq::iterator i = req->m_contacts->begin(); i != req->m_contacts->end(); i++) { + cerr << "<domain:contact"; if(i->m_type != NULL) { ! string type = returnContactType(*i->m_type); ! cerr << " type=\"" << type << "\""; } + cerr << ">"; + if(i->m_id != NULL) ! cerr << *i->m_id; ! ! cerr << "</domain:contact>" << endl; } } *************** *** 119,128 **** if(req->m_name_servers != NULL) { ! cout << "m_name_servers:\n"; ! for(epp_string_seq::iterator i = req->m_name_servers->begin(); i != req->m_name_servers->end(); i++) { if(i != NULL) ! cout << " ns: " << *i << endl; } } --- 104,112 ---- if(req->m_name_servers != NULL) { ! for(eppobject::epp::epp_string_seq::iterator i = req->m_name_servers->begin(); i != req->m_name_servers->end(); i++) { if(i != NULL) ! cerr << "<domain:ns>" << *i << "</domain:ns>" << endl; } } *************** *** 130,182 **** if(req->m_hosts != NULL) { ! cout << "m_hosts:\n"; ! for(epp_string_seq::iterator i = req->m_hosts->begin(); i != req->m_hosts->end(); i++) { if(i != NULL) ! cout << " host: " << *i << endl; } } if(req->m_client_id != NULL) ! cout << "m_client_id: " << *req->m_client_id << endl; if(req->m_created_by != NULL) ! cout << "m_created_by: " << *req->m_created_by << endl; if(req->m_created_date != NULL) ! cout << "m_created_date: " << *req->m_created_date << endl; if(req->m_updated_by != NULL) ! cout << "m_updated_by: " << *req->m_updated_by << endl; if(req->m_updated_date != NULL) ! cout << "m_updated_date: " << *req->m_updated_date << endl; if(req->m_expiration_date != NULL) ! cout << "m_expiration_date: " << *req-> m_expiration_date << endl; if(req->m_transfer_date != NULL) ! cout << "m_transfer_date: " << *req->m_transfer_date << endl; if(req->m_auth_info != NULL) { ! cout << "m_auth_info: " << endl; if(req->m_auth_info->m_type != NULL) { string type; switch(*req->m_auth_info->m_type) { ! case PW: type = "PW"; break; default: type = "**UNKNOWN**"; } ! cout << " m_type: " << type << endl; } if(req->m_auth_info->m_roid != NULL) ! cout << " m_roid: " << *req->m_auth_info->m_roid << endl; if(req->m_auth_info->m_value != NULL) ! cout << " m_value: " << *req->m_auth_info->m_value << endl; } } // if(req != NULL) --- 114,172 ---- if(req->m_hosts != NULL) { ! for(eppobject::epp::epp_string_seq::iterator i = req->m_hosts->begin(); i != req->m_hosts->end(); i++) { if(i != NULL) ! cerr << "<domain:host>" << *i << "</domain:host>" << endl; } } if(req->m_client_id != NULL) ! cerr << "<domain:clID>" << *req->m_client_id << "</domain:clID>" << endl; if(req->m_created_by != NULL) ! cerr << "<domain:crID>" << *req->m_created_by << "</domain:crID>" << endl; if(req->m_created_date != NULL) ! cerr << "<domain:crDate>" << *req->m_created_date << "</domain:crDate>" << endl; if(req->m_updated_by != NULL) ! cerr << "<domain:upID>" << *req->m_updated_by << "</domain:upID>" << endl; if(req->m_updated_date != NULL) ! cerr << "<domain:upDate>" << *req->m_updated_date << "</domain:upDate>" << endl; if(req->m_expiration_date != NULL) ! cerr << "<domain:exDate>" << *req->m_expiration_date << "</domain:exDate>" << endl; if(req->m_transfer_date != NULL) ! cerr << "<domain:trDate>" << *req->m_transfer_date << "</domain:trDate>" << endl; if(req->m_auth_info != NULL) { ! cerr << "<domain:authInfo"; if(req->m_auth_info->m_type != NULL) { string type; switch(*req->m_auth_info->m_type) { ! case eppobject::epp::PW: type = "pw"; break; default: type = "**UNKNOWN**"; } ! cerr << " type=\"" << type << "\""; } if(req->m_auth_info->m_roid != NULL) ! cerr << " roid=\"" << *req->m_auth_info->m_roid << "\""; ! ! cerr << ">"; if(req->m_auth_info->m_value != NULL) ! cerr << *req->m_auth_info->m_value; ! ! cerr << "</domain:authInfo>" << endl; ! } + printResDataFooter("domain", "infData"); + printResponsePart2(req->m_rsp); } // if(req != NULL) *************** *** 187,191 **** int main(int argc, char * argv[]) { ! epp_Session test; string username, password; --- 177,181 ---- int main(int argc, char * argv[]) { ! eppobject::epp::epp_Session test; string username, password; *************** *** 200,208 **** epp_DomainInfoReq_ref l_req(new epp_DomainInfoReq()); ! l_req->m_cmd.ref(new epp_Command(NULL, ! epp_Unspec_ref(new epp_Unspec()), ! epp_trid("ABC-12346"))); ! l_req->m_name.ref(new epp_string("example.com")); epp_DomainInfo_ref l_obj(new epp_DomainInfo()); --- 190,200 ---- epp_DomainInfoReq_ref l_req(new epp_DomainInfoReq()); ! l_req->m_cmd.ref(new eppobject::epp::epp_Command(NULL, ! NULL, ! eppobject::epp::epp_trid("ABC-12345"))); ! l_req->m_name.ref(new eppobject::epp::epp_string("example.com")); ! ! l_req->m_hosts_type.ref(new epp_DomainHostsType(ALL)); epp_DomainInfo_ref l_obj(new epp_DomainInfo()); *************** *** 214,228 **** epp_DomainInfoRsp_ref l_rsp = l_obj->getResponseData(); printRsp(l_rsp); ! return 0; } ! catch(epp_XMLException ex) { cout << "Exception: " << ex.getString() << endl; } ! catch(epp_Exception ex) { cout << "Exception: " << endl; ! printResultsSeq(ex.getDetails()); } catch(...) { --- 206,226 ---- epp_DomainInfoRsp_ref l_rsp = l_obj->getResponseData(); + #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; } ! catch(eppobject::epp::epp_XMLException ex) { cout << "Exception: " << ex.getString() << endl; } ! catch(eppobject::epp::epp_Exception ex) { cout << "Exception: " << endl; ! #ifndef TEST_IO_REQUEST2CERR ! cerr << "<response>" << endl; ! printResultsSeq(ex.m_details); ! printTransID(ex.m_tran... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv1257 Modified Files: epp_HostUpdate.h epp_Poll.h epp_Unspec.h epp_ContactCheck.cc epp_ContactCreate.cc epp_ContactDelete.cc epp_ContactInfo.cc epp_ContactTransfer.cc epp_ContactUpdate.cc epp_DomainCheck.cc epp_DomainCreate.cc epp_DomainDelete.cc epp_DomainInfo.cc epp_DomainRenew.cc epp_DomainTransfer.cc epp_DomainUpdate.cc epp_Hello.cc epp_HostCheck.cc epp_HostCreate.cc epp_HostDelete.cc epp_HostInfo.cc epp_HostUpdate.cc epp_Login.cc epp_Logout.cc epp_Poll.cc epp_Session.cc Added Files: epp_Extension.h Log Message: -Upgraded existing files to 05/03 and added some new files -Changed poll-handling to use a factory class (epp_PollResFactory) -XML-functions not as strict anymore in regards to mandatory fields -Changed formatting to be more consistent --- NEW FILE: epp_Extension.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_EXTENSION_H #define __EPP_EXTENSION_H #include "data/epp_eppdata.h" namespace eppobject { namespace epp { class epp_Extension { public: epp_Extension() {}; virtual ~epp_Extension() {}; virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; virtual void fromXML(const eppobject::epp::epp_string & xml) {}; }; typedef refcnt_ptr<epp_Extension> epp_Extension_ref; }} #endif Index: epp_HostUpdate.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_HostUpdate.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_HostUpdate.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_HostUpdate.h 8 Mar 2002 12:00:14 -0000 1.6 *************** *** 45,49 **** void addChangeElement(eppobject::epp::EPP_output & outputobject, const epp_HostUpdateChange_ref element); ! public: epp_HostUpdate() {}; --- 45,49 ---- void addChangeElement(eppobject::epp::EPP_output & outputobject, const epp_HostUpdateChange_ref element); ! public: epp_HostUpdate() {}; Index: epp_Poll.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Poll.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Poll.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_Poll.h 8 Mar 2002 12:00:14 -0000 1.7 *************** *** 34,37 **** --- 34,39 ---- #include "epp_Action.h" #include <domtools/dom_wrapper.h> + #include "data/epp_DomainTrnData.h" + #include "data/epp_ContactTrnData.h" *************** *** 42,53 **** epp_PollReq_ref m_request; epp_PollRsp_ref m_response; map<epp_PollOpType, string> pollReqTypeMap; void initReqMap(); - epp_PollDomainTransfer_ref createDomainTransferResData(const domtools::dom_ptr & DTNode); - epp_PollContactTransfer_ref createContactTransferResData(const domtools::dom_ptr & CTNode); public: epp_Poll() {}; ! virtual ~epp_Poll() {}; --- 44,54 ---- epp_PollReq_ref m_request; epp_PollRsp_ref m_response; + map<epp_PollOpType, string> pollReqTypeMap; void initReqMap(); public: epp_Poll() {}; ! virtual ~epp_Poll() {}; Index: epp_Unspec.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Unspec.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_Unspec.h 20 Feb 2002 17:26:02 -0000 1.4 --- epp_Unspec.h 8 Mar 2002 12:00:14 -0000 1.5 *************** *** 29,47 **** #define __EPP_UNSPEC_H #include "data/epp_eppdata.h" namespace eppobject { namespace epp { class epp_Unspec { ! public: epp_Unspec() {}; virtual ~epp_Unspec() {}; virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; virtual void fromXML(const eppobject::epp::epp_string & xml) {}; }; typedef refcnt_ptr<epp_Unspec> epp_Unspec_ref; --- 29,67 ---- #define __EPP_UNSPEC_H + /** @file epp_Unspec.h + * @brief Deprecated! Declaration of the server-specific "unspecified" element + * @author Asbjorn Steira Mikkelsen + * @deprecated Replaced by epp_Extension.h + */ + #include "data/epp_eppdata.h" namespace eppobject { namespace epp { + /// Deprecated! Replaced by epp_Extension class epp_Unspec { ! public: + + /// Constructor epp_Unspec() {}; + /// Deconstructor virtual ~epp_Unspec() {}; + /** Virtual function used to convert a DOM-tree to an epp_string. To + * be overloaded by sub-classes. + * @return An empty epp_string + */ virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; + + /** Virtual function used to convert an epp_string to a DOM-tree. To + * be overloaded by sub-classes. + * @param An XML epp_string + */ virtual void fromXML(const eppobject::epp::epp_string & xml) {}; }; + /// Typedef for the ref to the epp_Unspec class typedef refcnt_ptr<epp_Unspec> epp_Unspec_ref; Index: epp_ContactCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCheck.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactCheck.cc 21 Feb 2002 17:08:20 -0000 1.7 --- epp_ContactCheck.cc 8 Mar 2002 12:00:14 -0000 1.8 *************** *** 51,68 **** epp_string epp_ContactCheck::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_ids == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; xml_request.setWhitespace(Whitespace); ! epp::createStandardXMLHeader(xml_request); xml_request.beginTag("command"); ! epp::addCredsElement(xml_request,m_request->m_cmd->m_creds); xml_request.beginTag("check"); --- 51,66 ---- epp_string epp_ContactCheck::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_ids == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; xml_request.setWhitespace(Whitespace); ! createStandardXMLHeader(xml_request); xml_request.beginTag("command"); ! addCredsElement(xml_request,m_request->m_cmd->m_creds); xml_request.beginTag("check"); *************** *** 72,78 **** setCommandSchemaAttributes(xml_request); ! epp::epp_string_seq names = *m_request->m_ids; ! ! for(epp::epp_string_seq::iterator i = names.begin(); i != names.end(); i++) { xml_request.putTag("contact:id",*i); --- 70,75 ---- setCommandSchemaAttributes(xml_request); ! for(epp_string_seq::iterator i = m_request->m_ids->begin(); ! i != m_request->m_ids->end(); i++) { xml_request.putTag("contact:id",*i); *************** *** 83,95 **** xml_request.endTag("check"); ! epp::addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); ! epp::createStandardXMLFooter(xml_request); return xml_request.getString(); --- 80,92 ---- xml_request.endTag("check"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); ! createStandardXMLFooter(xml_request); return xml_request.getString(); *************** *** 103,110 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } epp_Response_ref res = createGenericResponse(responseNode); --- 100,106 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } epp_Response_ref res = createGenericResponse(responseNode); *************** *** 115,158 **** dom_ptr chkDataNode = dom_ptr(getresDataInfo(responseNode, "chkData")); ! if(chkDataNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); ! } dom_ptr chkChildNode = dom_ptr(chkDataNode->getFirstChildElement()); ! while (!chkChildNode->isNull()) ! { ! if(chkChildNode->getNodeName() == string(chkDataNode->getPrefix() + ":cd")) ! { ! if(m_response->m_results == NULL) ! m_response->m_results.ref(new epp_check_result_seq); ! ! epp_CheckResult chRes; ! ! string exists = chkChildNode->getAttribute("x"); ! // cout << "exists: " << exists << endl; ! if(exists == "+") ! chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") ! chRes.m_exists.ref(new epp_boolean(false)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); ! ! string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); ! // cout << "value: " << *chRes.m_value << endl; ! ! m_response->m_results->push_back(chRes); ! } // if "cd" ! ! chkChildNode = dom_ptr(chkChildNode->getNextSiblingElement()); ! } ! ! if(m_response->m_results == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find cd-element(s)"); } --- 111,166 ---- dom_ptr chkDataNode = dom_ptr(getresDataInfo(responseNode, "chkData")); ! if(chkDataNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); ! } dom_ptr chkChildNode = dom_ptr(chkDataNode->getFirstChildElement()); ! string elemPrefix = chkChildNode->getPrefix(); + while(!chkChildNode->isNull()) { + + if(chkChildNode->getNodeName() == string(elemPrefix + ":cd")) { + + if(m_response->m_results == NULL) { + m_response->m_results.ref(new epp_check_result_seq); + } + + epp_CheckResult chRes; + + dom_ptr chkResChildNode = dom_ptr(chkChildNode->getFirstChildElement()); + + while(!chkResChildNode->isNull()) { + + string nodeName = chkResChildNode->getNodeName(); + + if(nodeName == string(elemPrefix + ":id")) { + string avail = chkResChildNode->getAttribute("avail"); + // cout << "avail: " << avail << endl; + + if(avail == "1" || avail == "true") chRes.m_avail.ref(new epp_boolean(true)); + else if(avail == "0" || avail == "false") chRes.m_avail.ref(new epp_boolean(false)); + else throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown avail-attribute"); + + chRes.m_value.ref(new epp_string(chkResChildNode->getNodeData())); + // cout << "value: " << *chRes.m_value << endl; + } // if "id" + + else if(nodeName == string(elemPrefix + ":reason")) { + + string lang = chkResChildNode->getAttribute("lang"); + if(!lang.empty()) chRes.m_lang.ref(new epp_string(lang)); + + chRes.m_reason.ref(new epp_string(chkResChildNode->getNodeData())); + // cout << "reason: " << *chRes.m_reason << endl; + } // if "reason" + + chkResChildNode = dom_ptr(chkResChildNode->getNextSiblingElement()); + } // while "chkResChildNode" + + m_response->m_results->push_back(chRes); + } // if "cd" + + chkChildNode = dom_ptr(chkChildNode->getNextSiblingElement()); + } // while "chkChildNode" } Index: epp_ContactCreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCreate.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactCreate.cc 21 Feb 2002 15:21:40 -0000 1.8 --- epp_ContactCreate.cc 8 Mar 2002 12:00:14 -0000 1.9 *************** *** 52,62 **** epp_string epp_ContactCreate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_id == NULL ! || m_request->m_ascii_address == NULL || m_request->m_email == NULL ! || m_request->m_auth_info == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } ! EPP_output xml_request; --- 52,58 ---- epp_string epp_ContactCreate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_id == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; *************** *** 77,102 **** xml_request.putTag("contact:id",*m_request->m_id); ! addAddressElement(xml_request, m_request->m_ascii_address, "contact:ascii"); ! addAddressElement(xml_request, m_request->m_i15d_address, "contact:i15d"); if(m_request->m_voice != NULL) { ! if(m_request->m_voice->m_value == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in ContactPhone-element (voice)"); ! } xml_request.beginTag("contact:voice"); if(m_request->m_voice->m_extension != NULL) { xml_request.putAttribute("x", *m_request->m_voice->m_extension); ! } xml_request.putCDATA(*m_request->m_voice->m_value); xml_request.endTag("contact:voice"); ! } if(m_request->m_fax != NULL) { ! if(m_request->m_fax->m_value == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in ContactPhone-element (fax)"); ! } xml_request.beginTag("contact:fax"); --- 73,105 ---- xml_request.putTag("contact:id",*m_request->m_id); ! if(m_request->m_ascii_address != NULL) { ! addAddressElement(xml_request, m_request->m_ascii_address, "contact:ascii"); ! } // if "m_ascii_address" ! ! if(m_request->m_i15d_address != NULL) { ! addAddressElement(xml_request, m_request->m_i15d_address, "contact:i15d"); ! } // if "m_i15d_address" if(m_request->m_voice != NULL) { ! ! if(m_request->m_voice->m_value == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in ContactPhone-element (voice)"); ! } xml_request.beginTag("contact:voice"); + if(m_request->m_voice->m_extension != NULL) { xml_request.putAttribute("x", *m_request->m_voice->m_extension); ! } ! xml_request.putCDATA(*m_request->m_voice->m_value); xml_request.endTag("contact:voice"); ! } // if "m_voice" if(m_request->m_fax != NULL) { ! ! if(m_request->m_fax->m_value == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in ContactPhone-element (fax)"); ! } xml_request.beginTag("contact:fax"); *************** *** 106,114 **** xml_request.putCDATA(*m_request->m_fax->m_value); xml_request.endTag("contact:fax"); ! } ! xml_request.putTag("contact:email", *m_request->m_email); ! addAuthInfoElement(xml_request, m_request->m_auth_info, "contact:authInfo"); xml_request.endTag("contact:create"); --- 109,122 ---- xml_request.putCDATA(*m_request->m_fax->m_value); xml_request.endTag("contact:fax"); ! } // if "m_fax" ! ! if(m_request->m_email != NULL) { ! xml_request.putTag("contact:email", *m_request->m_email); ! } // if "m_email" ! if(m_request->m_auth_info != NULL) { ! addAuthInfoElement(xml_request, m_request->m_auth_info, "contact:authInfo"); ! } // if "m_auth_info" xml_request.endTag("contact:create"); *************** *** 116,124 **** xml_request.endTag("create"); ! addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); --- 124,132 ---- xml_request.endTag("create"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); *************** *** 136,143 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } m_response.ref(new epp_ContactCreateRsp()); --- 144,150 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } m_response.ref(new epp_ContactCreateRsp()); *************** *** 148,165 **** dom_ptr creDataNode = dom_ptr(getresDataInfo(responseNode, "creData")); ! if(creDataNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find creData-element"); ! } dom_ptr creChildNode = dom_ptr(creDataNode->getFirstChildElement()); ! if(!creChildNode->isNull() && creChildNode->getNodeName() == string(creDataNode->getPrefix() + ":id")) ! { ! m_response->m_id.ref(new epp_string(creChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } ! else ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find id-element"); ! } --- 155,181 ---- dom_ptr creDataNode = dom_ptr(getresDataInfo(responseNode, "creData")); ! if(creDataNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find creData-element"); ! } dom_ptr creChildNode = dom_ptr(creDataNode->getFirstChildElement()); ! string elemPrefix = creDataNode->getPrefix(); ! ! while(!creChildNode->isNull()) { ! string nodeName = creChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":id")) { ! m_response->m_id.ref(new epp_string(creChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":crDate")) { ! m_response->m_creation_date.ref(new epp_datetime(creChildNode->getNodeData())); ! // cout << "crDate: " << *m_response->m_creation_date << endl; ! } // if "crDate" ! ! creChildNode = dom_ptr(creChildNode->getNextSiblingElement()); ! } // while "creChildNode" ! } Index: epp_ContactDelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactDelete.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactDelete.cc 21 Feb 2002 17:09:29 -0000 1.8 --- epp_ContactDelete.cc 8 Mar 2002 12:00:14 -0000 1.9 *************** *** 52,60 **** epp_string epp_ContactDelete::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; --- 52,58 ---- epp_string epp_ContactDelete::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_id == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; *************** *** 77,85 **** xml_request.endTag("delete"); ! addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); --- 75,83 ---- xml_request.endTag("delete"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); *************** *** 96,104 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } ! epp_Response_ref res = createGenericResponse(responseNode); --- 94,101 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } ! epp_Response_ref res = createGenericResponse(responseNode); Index: epp_ContactInfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactInfo.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_ContactInfo.cc 21 Feb 2002 15:21:40 -0000 1.11 --- epp_ContactInfo.cc 8 Mar 2002 12:00:14 -0000 1.12 *************** *** 51,59 **** epp_string epp_ContactInfo::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; --- 51,57 ---- epp_string epp_ContactInfo::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_id == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; *************** *** 76,84 **** xml_request.endTag("info"); ! addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); --- 74,82 ---- xml_request.endTag("info"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); *************** *** 96,103 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } m_response.ref(new epp_ContactInfoRsp()); --- 94,100 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } m_response.ref(new epp_ContactInfoRsp()); *************** *** 106,261 **** m_response->m_rsp = res; - dom_ptr infDataNode = dom_ptr(getresDataInfo(responseNode, "infData")); ! if(infDataNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find infData-element"); ! } ! dom_ptr infChildNode = dom_ptr(infDataNode->getFirstChildElement()); ! ! if(infChildNode->isNull()) ! throw epp_XMLException(__FILE__, __LINE__, "Empty infData-element"); string elemPrefix = infDataNode->getPrefix(); ! while(!infChildNode->isNull()) ! { ! string nodeName = infChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":roid")) ! { ! m_response->m_roid.ref(new epp_roid(infChildNode->getNodeData())); ! // cout << "roid: " << *m_response->m_roid << endl; ! } // if "roid" ! ! else if(nodeName == string(elemPrefix + ":id")) ! { ! m_response->m_id.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":status")) ! { ! if(m_response->m_status == NULL) ! m_response->m_status.ref(new epp_contact_status_seq); ! ! epp_ContactStatus cStatus; ! string type = infChildNode->getAttribute("s"); ! if(!type.empty()) { ! try { ! cStatus.m_type.ref(new epp_ContactStatusType(returnStatusEnumType(type))); ! } ! catch(...) { ! throw epp_XMLException(__FILE__, __LINE__, "Unknown StatusType in response"); ! } ! } ! ! string lang = infChildNode->getAttribute("lang"); ! if(!lang.empty()) ! cStatus.m_lang.ref(new epp_string(lang)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! cStatus.m_value.ref(new epp_string(value)); ! ! m_response->m_status->push_back(cStatus); ! // cout << "status: " << type << ", " << lang << ", " << value << endl; ! } // if "status" ! ! else if(nodeName == string(elemPrefix + ":ascii")) ! { ! m_response->m_ascii_address.ref(new epp_ContactNameAddress(parseAddress(infChildNode))); ! } // if "ascii" ! ! else if(nodeName == string(elemPrefix + ":i15d")) ! { ! m_response->m_i15d_address.ref(new epp_ContactNameAddress(parseAddress(infChildNode))); ! } // if "i15d" ! ! else if(nodeName == string(elemPrefix + ":voice")) ! { ! m_response->m_voice.ref(new epp_ContactPhone()); ! ! string extension = infChildNode->getAttribute("x"); ! if(!extension.empty()) ! m_response->m_voice->m_extension.ref(new epp_string(extension)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! m_response->m_voice->m_value.ref(new epp_string(value)); ! ! // cout << "voice: " << extension << ", " << value << endl; ! } // if "voice" ! ! else if(nodeName == string(elemPrefix + ":fax")) ! { ! m_response->m_fax.ref(new epp_ContactPhone()); ! ! string extension = infChildNode->getAttribute("x"); ! if(!extension.empty()) ! m_response->m_fax->m_extension.ref(new epp_string(extension)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! m_response->m_fax->m_value.ref(new epp_string(value)); ! ! // cout << "fax: " << extension << ", " << value << endl; ! } // if "fax" ! ! else if(nodeName == string(elemPrefix + ":email")) ! { ! m_response->m_email.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "email: " << *m_response->m_email << endl; ! } // if "email" ! ! else if(nodeName == string(elemPrefix + ":clID")) ! { ! m_response->m_client_id.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "clID: " << *m_response->m_client_id << endl; ! } // if "clID" ! ! else if(nodeName == string(elemPrefix + ":crID")) ! { ! m_response->m_created_by.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "crID: " << *m_response->m_created_by << endl; ! } // if "crID" ! ! else if(nodeName == string(elemPrefix + ":crDate")) ! { ! m_response->m_created_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "crDate: " << *m_response->m_created_date << endl; ! } // if "crDate" ! ! else if(nodeName == string(elemPrefix + ":upID")) ! { ! m_response->m_updated_by.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "upID: " << *m_response->m_updated_by << endl; ! } // if "upID" ! else if(nodeName == string(elemPrefix + ":upDate")) ! { ! m_response->m_updated_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "upDate: " << *m_response->m_updated_date << endl; ! } // if "upDate" ! ! else if(nodeName == string(elemPrefix + ":trDate")) ! { ! m_response->m_transfer_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "trDate: " << *m_response->m_transfer_date << endl; ! } // if "trDate" ! else if(nodeName == string(elemPrefix + ":authInfo")) ! { ! m_response->m_auth_info = createAuthInfoObject(infChildNode); ! } // if "authInfo" ! ! infChildNode = dom_ptr(infChildNode->getNextSiblingElement()); ! } // while ! ! // <FIXME>Should we check that all mandatory fields present?</fixme> ! } --- 103,238 ---- m_response->m_rsp = res; dom_ptr infDataNode = dom_ptr(getresDataInfo(responseNode, "infData")); ! if(infDataNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find infData-element"); ! } dom_ptr infChildNode = dom_ptr(infDataNode->getFirstChildElement()); ! ! if(infChildNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Empty infData-element"); ! } string elemPrefix = infDataNode->getPrefix(); ! while(!infChildNode->isNull()) { ! ! string nodeName = infChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":roid")) { ! m_response->m_roid.ref(new epp_roid(infChildNode->getNodeData())); ! // cout << "roid: " << *m_response->m_roid << endl; ! } // if "roid" ! ! else if(nodeName == string(elemPrefix + ":id")) { ! m_response->m_id.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":status")) { ! ! if(m_response->m_status == NULL) { ! m_response->m_status.ref(new epp_contact_status_seq); ! } ! ! epp_ContactStatus cStatus; ! ! string type = infChildNode->getAttribute("s"); ! if(!type.empty()) { ! cStatus.m_type.ref(new epp_ContactStatusType(returnStatusEnumType(type))); ! } ! ! string lang = infChildNode->getAttribute("lang"); ! if(!lang.empty()) { ! cStatus.m_lang.ref(new epp_string(lang)); ! } ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) { ! cStatus.m_value.ref(new epp_string(value)); ! } ! ! m_response->m_status->push_back(cStatus); ! // cout << "status: " << type << ", " << lang << ", " << value << endl; ! } // if "status" ! ! else if(nodeName == string(elemPrefix + ":ascii")) { ! m_response->m_ascii_address.ref(new epp_ContactNameAddress(parseAddress(infChildNode))); ! } // if "ascii" ! else if(nodeName == string(elemPrefix + ":i15d")) { ! m_response->m_i15d_address.ref(new epp_ContactNameAddress(parseAddress(infChildNode))); ! } // if "i15d" ! else if(nodeName == string(elemPrefix + ":voice")) { ! m_response->m_voice.ref(new epp_ContactPhone()); ! ! string extension = infChildNode->getAttribute("x"); ! if(!extension.empty()) ! m_response->m_voice->m_extension.ref(new epp_string(extension)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! m_response->m_voice->m_value.ref(new epp_string(value)); ! ! // cout << "voice: " << extension << ", " << value << endl; ! } // if "voice" ! ! else if(nodeName == string(elemPrefix + ":fax")) { ! m_response->m_fax.ref(new epp_ContactPhone()); ! ! string extension = infChildNode->getAttribute("x"); ! if(!extension.empty()) ! m_response->m_fax->m_extension.ref(new epp_string(extension)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! m_response->m_fax->m_value.ref(new epp_string(value)); ! ! // cout << "fax: " << extension << ", " << value << endl; ! } // if "fax" ! else if(nodeName == string(elemPrefix + ":email")) { ! m_response->m_email.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "email: " << *m_response->m_email << endl; ! } // if "email" ! else if(nodeName == string(elemPrefix + ":clID")) { ! m_response->m_client_id.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "clID: " << *m_response->m_client_id << endl; ! } // if "clID" ! ! else if(nodeName == string(elemPrefix + ":crID")) { ! m_response->m_created_by.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "crID: " << *m_response->m_created_by << endl; ! } // if "crID" ! ! else if(nodeName == string(elemPrefix + ":crDate")) { ! m_response->m_created_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "crDate: " << *m_response->m_created_date << endl; ! } // if "crDate" ! ! else if(nodeName == string(elemPrefix + ":upID")) { ! m_response->m_updated_by.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "upID: " << *m_response->m_updated_by << endl; ! } // if "upID" ! ! else if(nodeName == string(elemPrefix + ":upDate")) { ! m_response->m_updated_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "upDate: " << *m_response->m_updated_date << endl; ! } // if "upDate" ! ! else if(nodeName == string(elemPrefix + ":trDate")) { ! m_response->m_transfer_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "trDate: " << *m_response->m_transfer_date << endl; ! } // if "trDate" ! ! else if(nodeName == string(elemPrefix + ":authInfo")) { ! m_response->m_auth_info = createAuthInfoObject(infChildNode); ! } // if "authInfo" ! ! ! infChildNode = dom_ptr(infChildNode->getNextSiblingElement()); ! } // while "infChildNode" + } Index: epp_ContactTransfer.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactTransfer.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactTransfer.cc 21 Feb 2002 15:21:40 -0000 1.8 --- epp_ContactTransfer.cc 8 Mar 2002 12:00:14 -0000 1.9 *************** *** 53,58 **** { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL || m_request->m_trans == NULL ! || m_request->m_trans->m_op == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); --- 53,57 ---- { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL || m_request->m_trans == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); *************** *** 69,89 **** xml_request.beginTag("transfer"); ! xml_request.putAttribute("op", returnTransferType(*m_request->m_trans->m_op)); xml_request.beginTag("contact:transfer"); ! setCommandSchemaAttributes(xml_request); xml_request.putTag("contact:id",*m_request->m_id); ! addAuthInfoElement(xml_request, m_request->m_trans->m_auth_info, "contact:authInfo"); ! xml_request.endTag("contact:transfer"); xml_request.endTag("transfer"); ! addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); --- 68,94 ---- xml_request.beginTag("transfer"); ! ! if(m_request->m_trans->m_op != NULL) { ! xml_request.putAttribute("op", returnTransferType(*m_request->m_trans->m_op)); ! } // if "m_trans->m_op" ! xml_request.beginTag("contact:transfer"); ! setCommandSchemaAttributes(xml_request); xml_request.putTag("contact:id",*m_request->m_id); ! ! if(m_request->m_trans->m_auth_info != NULL) { ! addAuthInfoElement(xml_request, m_request->m_trans->m_auth_info, "contact:authInfo"); ! } // if "m_trans->m_auth_info" xml_request.endTag("contact:transfer"); xml_request.endTag("transfer"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); *************** *** 100,107 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } m_response.ref(new epp_ContactTransferRsp()); --- 105,111 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } m_response.ref(new epp_ContactTransferRsp()); *************** *** 112,190 **** dom_ptr trnDataNode = dom_ptr(getresDataInfo(responseNode, "trnData")); ! if(trnDataNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find trnData-element"); ! } dom_ptr trnChildNode = dom_ptr(trnDataNode->getFirstChildElement()); ! string elemPrefix = trnDataNode->getPrefix(); ! while(!trnChildNode->isNull()) ! { ! string nodeName = trnChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":id")) ! { ! m_response->m_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":trStatus")) ! { ! string trStatus = trnChildNode->getNodeData(); ! try { ! m_response->m_transfer_status.ref(new epp_TransferStatusType(returnTransferStatusType(trStatus))); ! } ! catch(...) { ! throw epp_XMLException(__FILE__, __LINE__, "Unknown TransferStatusType in response"); ! } ! // cout << "trStatus: " << trStatus << endl; ! } // if "trStatus" ! ! else if(nodeName == string(elemPrefix + ":reID")) ! { ! m_response->m_request_client_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "reID: " << *m_response->m_request_client_id << endl; ! } // if "reID" ! ! else if(nodeName == string(elemPrefix + ":reDate")) ! { ! m_response->m_request_date.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "reDate: " << *m_response->m_request_date << endl; ! } // if "reDate" ! ! else if(nodeName == string(elemPrefix + ":acID")) ! { ! m_response->m_action_client_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "acID: " << *m_response->m_action_client_id << endl; ! } // if "acID" ! ! else if(nodeName == string(elemPrefix + ":acDate")) ! { ! m_response->m_action_date.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "acDate: " << *m_response->m_action_date << endl; ! } // if "acDate" ! ! trnChildNode = dom_ptr(trnChildNode->getNextSiblingElement()); ! } ! if(m_response->m_id == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find id-element"); ! ! if(m_response->m_transfer_status == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find trStatus-element"); ! ! if(m_response->m_request_client_id == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find reID-element"); ! ! if(m_response->m_request_date == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find reDate-element"); ! ! if(m_response->m_action_client_id == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find acID-element"); ! ! if(m_response->m_action_date == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find acDate-element"); } --- 116,170 ---- dom_ptr trnDataNode = dom_ptr(getresDataInfo(responseNode, "trnData")); ! if(trnDataNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find trnData-element"); ! } dom_ptr trnChildNode = dom_ptr(trnDataNode->getFirstChildElement()); ! if(trnChildNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Empty trnData-element"); ! } ! m_response->m_trn_data.ref(new epp_ContactTrnData()); ! string elemPrefix = trnDataNode->getPrefix(); ! ! while(!trnChildNode->isNull()) { ! ! string nodeName = trnChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":id")) { ! m_response->m_trn_data->m_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_trn_data->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":trStatus")) { ! string trStatus = trnChildNode->getNodeData(); ! m_response->m_trn_data->m_transfer_status.ref(new epp_TransferStatusType(returnTransferStatusType(trStatus))); ! // cout << "trStatus: " << trStatus << endl; ! } // if "trStatus" ! ! else if(nodeName == string(elemPrefix + ":reID")) { ! m_response->m_trn_data->m_request_client_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "reID: " << *m_response->m_trn_data->m_request_client_id << endl; ! } // if "reID" ! ! else if(nodeName == string(elemPrefix + ":reDate")) { ! m_response->m_trn_data->m_request_date.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "reDate: " << *m_response->m_trn_data->m_request_date << endl; ! } // if "reDate" ! ! else if(nodeName == string(elemPrefix + ":acID")) { ! m_response->m_trn_data->m_action_client_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "acID: " << *m_response->m_trn_data->m_action_client_id << endl; ! } // if "acID" ! ! else if(nodeName == string(elemPrefix + ":acDate")) { ! m_response->m_trn_data->m_action_date.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "acDate: " << *m_response->m_trn_data->m_action_date << endl; ! } // if "acDate" ! ! trnChildNode = dom_ptr(trnChildNode->getNextSiblingElement()); ! } // while "trnChildNode" } Index: epp_ContactUpdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactUpdate.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactUpdate.cc 21 Feb 2002 17:09:29 -0000 1.9 --- epp_ContactUpdate.cc 8 Mar 2002 12:00:14 -0000 1.10 *************** *** 52,61 **** epp_string epp_ContactUpdate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } ! EPP_output xml_request; --- 52,58 ---- epp_string epp_ContactUpdate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_id == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; *************** *** 70,78 **** xml_request.beginTag("update"); xml_request.beginTag("contact:update"); ! setCommandSchemaAttributes(xml_request); xml_request.putTag("contact:id",*m_request->m_id); ! addRemAddElement(xml_request, m_request->m_add, "add"); addRemAddElement(xml_request, m_request->m_remove, "rem"); --- 67,75 ---- xml_request.beginTag("update"); xml_request.beginTag("contact:update"); ! setCommandSchemaAttributes(xml_request); xml_request.putTag("contact:id",*m_request->m_id); ! addRemAddElement(xml_request, m_request->m_add, "add"); addRemAddElement(xml_request, m_request->m_remove, "rem"); *************** *** 82,90 **** xml_request.endTag("update"); ! addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); --- 79,87 ---- xml_request.endTag("update"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); *************** *** 101,108 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } epp_Response_ref res = createGenericResponse(responseNode); --- 98,104 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } epp_Response_ref res = createGenericResponse(responseNode); *************** *** 115,133 **** const eppobject::epp::epp_string & mode) { ! if(element == NULL) ! return; outputobject.beginTag("contact:" + mode); ! if(element->m_status != NULL) ! { ! for(epp_contact_status_seq::iterator i = element->m_status->begin(); i != element->m_status->end(); i++) { ! if(i->m_type == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in contactstatus-list"); ! } outputobject.beginTag("contact:status"); outputobject.putAttribute("s",returnStatusType(*i->m_type)); if(i->m_lang != NULL) { outputobject.putAttribute("lang",*i->m_lang); --- 111,132 ---- const eppobject::epp::epp_string & mode) { ! if(element == NULL) { ! return; ! } outputobject.beginTag("contact:" + mode); ! if(element->m_status != NULL) { ! ! for(epp_contact_status_seq::iterator i = element->m_status->begin(); ! i != element->m_status->end(); i++) ! { ! if(i->m_type == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in contactstatus-list"); ! } outputobject.beginTag("contact:status"); outputobject.putAttribute("s",returnStatusType(*i->m_type)); + if(i->m_lang != NULL) { outputobject.putAttribute("lang",*i->m_lang); *************** *** 136,144 **** outputobject.putCDATA(*i->m_value); } - outputobject.endTag("contact:status"); - } ! outputobject.endTag("contact:" + mode); ! } } --- 135,144 ---- outputobject.putCDATA(*i->m_value); } ! outputobject.endTag("contact:status"); ! } // for ! ! outputobject.endTag("contact:" + mode); ! } // if "m_status" } *************** *** 146,151 **** const epp_ContactUpdateChange_ref element) { ! if(element == NULL) ! return; outputobject.beginTag("contact:chg"); --- 146,152 ---- const epp_ContactUpdateChange_ref element) { ! if(element == NULL) { ! return; ! } outputobject.beginTag("contact:chg"); *************** *** 154,192 **** addAddressElement(outputobject, element->m_i15d_address, "contact:i15d", true); ! if(element->m_voice != NULL) ! { ! if(element->m_voice->m_value == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in ContactPhone-element (voice)"); ! } ! ! outputobject.beginTag("contact:voice"); ! if(element->m_voice->m_extension != NULL) { ! outputobject.putAttribute("x", *element->m_voice->m_extension); ! } ! outputobject.putCDATA(*element->m_voice->m_value); ! outputobject.endTag("contact:voice"); ! } ! if(element->m_fax != NULL) ! { ! if(element->m_fax->m_value == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in ContactPhone-element (fax)"); ! } ! ! outputobject.beginTag("contact:fax"); ! if(element->m_fax->m_extension != NULL) { ! outputobject.putAttribute("x", *element->m_fax->m_extension); ! } ! outputobject.putCDATA(*element->m_fax->m_value); ! outputobject.endTag("contact:fax"); ! } if(element->m_email != NULL) { outputobject.putTag("contact:email", *element->m_email); ! } ! addAuthInfoElement(outputobject, element->m_auth_info, "contact:authInfo"); outputobject.endTag("contact:chg"); --- 155,193 ---- addAddressElement(outputobject, element->m_i15d_address, "contact:i15d", true); ! if(element->m_voice != NULL) { ! ! outputobject.beginTag("contact:voice"); ! ! if(element->m_voice->m_extension != NULL) { ! outputobject.putAttribute("x", *element->m_voice->m_extension); ! } ! ! if(element->m_voice->m_value != NULL) { ! outputobject.putCDATA(*element->m_voice->m_value); ! } ! outputobject.endTag("contact:voice"); ! } // if "m_voice" ! if(element->m_fax != NULL) { ! ! outputobject.beginTag("contact:fax"); ! if(element->m_fax->m_extension != NULL) { ! outputobject.putAttribute("x", *element->m_fax->m_extension); ! } ! ! if(element->m_fax->m_value != NULL) { ! outputobject.putCDATA(*element->m_fax->m_value); ! } ! ! outputobject.endTag("contact:fax"); ! } // if "m_fax" if(element->m_email != NULL) { outputobject.putTag("contact:email", *element->m_email); ! } // if "m_email" ! if(element->m_auth_info != NULL) { ! addAuthInfoElement(outputobject, element->m_auth_info, "contact:authInfo"); ! } // if "m_auth_info" outputobject.endTag("contact:chg"); Index: epp_DomainCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCheck.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainCheck.cc 21 Feb 2002 17:08:20 -0000 1.7 --- epp_DomainCheck.cc 8 Mar 2002 12:00:14 -0000 1.8 *************** *** 51,59 **** epp_string epp_DomainCheck::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_names == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; --- 51,57 ---- epp_string epp_DomainCheck::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_names == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; *************** *** 67,79 **** xml_request.beginTag("check"); ! xml_request.beginTag("domain:check"); setCommandSchemaAttributes(xml_request); ! epp_string_seq names = *m_request->m_names; ! for(epp_string_seq::iterator i = names.begin(); i != names.end(); i++) { ! xml_request.putTag("domain:name",*i); ! } xml_request.endTag("domain:check"); --- 65,78 ---- xml_request.beginTag("check"); ! xml_request.beginTag("domain:check"); setCommandSchemaAttributes(xml_request); ! for(epp_string_seq::iterator i = m_request->m_names->begin(); ! i != m_request->m_names->end(); i++) ! { ! xml_request.putTag("domain:name",*i); ! } xml_request.endTag("domain:check"); *************** *** 81,89 **** xml_request.endTag("check"); ! addUnspecElement(xml_request, m_request->m_cmd->m_unspec); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } xml_request.endTag("command"); --- 80,88 ---- xml_request.endTag("check"); ! addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); ! } // if "m_cmd->m_client_trid" xml_request.endTag("command"); *************** *** 100,107 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } epp_Response_ref res = createGenericResponse(responseNode); --- 99,105 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); ! } epp_Response_ref res = createGenericResponse(responseNode); *************** *** 111,153 **** dom_ptr chkDataNode = dom_ptr(getresDataInfo(responseNode, "chkData")); ! if(chkDataNode->isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); ! } dom_ptr chkChildNode = dom_ptr(chkDataNode->getFirstChildElement()); ! while(!chkChildNode->isNull()) ! { ! if(chkChildNode->getNodeName() == string(chkDataNode->getPrefix() + ":cd")) ! { ! if(m_response->m_results == NULL) ! m_response->m_results.ref(new epp_check_result_seq); ! ! epp_CheckResult chRes; ! ! string exists = chkChildNode->getAttribute("x"); ! // cout << "exists: " << exists << endl; ! if(exists == "+") ! chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") ! chRes.m_exists.ref(new epp_boolean(false)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); ! ! string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); ! // cout << "value: " << *chRes.m_value << endl; ! ! m_response->m_results->push_back(chRes); ! } // if "cd" ! ! chkChildNode = dom_ptr(chkChildNode->getNextSiblingElement()); ! } - if(m_response->m_results == NULL) - throw epp_XMLException(__FILE__, __LINE__, "Unable to find cd-element(s)"); } --- 109,165 ---- dom_ptr chkDataNode = dom_ptr(getresDataInfo(responseNode, "chkData")); ! ! if(chkDataNode->isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); ! } dom_ptr chkChildNode = dom_ptr(chkDataNode->getFirstChildElement()); ! string elemPrefix = chkChildNode->getPrefix(); ! ! while(!chkChildNode->isNull()) { ! ! if(chkChildNode->getNodeName() == string(elemPrefix + ":cd")) { ! ! if(m_response->m_results == NULL) { ! m_response->m_results.ref(new epp_check_result_seq); ! } ! ! epp_CheckResult chRes; ! ! dom_ptr chkResChildNode = dom_ptr(chkChildNode->getFirstChildElement()); ! ! while(!chkResChildNode->isNull()) { ! string nodeName = chkResChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":name")) { ! string avail = chkResChildNode->getAttribute("avail"); ! // cout << "avail: " << avail << endl; ! ! if(avail == "1" || avail == "true") chRes.m_avail.ref(new epp_boolean(true)); ! else if(avail == "0" || avail == "false") chRes.m_avail.ref(new epp_boolean(false)); ! else throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown avail-attribute"); ! ! chRes.m_value.ref(new epp_string(chkResChildNode->getNodeData())); ! // cout << "value: " << *chRes.m_value << endl; ! } // if "name" ! ! else if(nodeName == string(elemPrefix + ":reason")) { ! ! string lang = chkResChildNode->getAttribute("lang"); ! if(!lang.empty()) chRes.m_lang.ref(new epp_string(lang)); ! ! chRes.m_reason.ref(new epp_string(chkResChildNode->getNodeData())); ! // cout << "reason: " << *chRes.m_reason << endl; ! } // if "reason" ! ! chkResChildNode = dom_ptr(chkResChildNode->getNextSiblingElement()); ! } // while "chkResChildNode" ! ! m_response->m_results->push_back(chRes); ! } // if "cd" ! ! chkChildNode = dom_ptr(chkChildNode->getNextSiblingElement()); ! } // while "chkChildNode" } Index: epp_DomainCreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCreate.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainCreate.cc 21 Feb 2002 15:21:40 -0000 1.8 --- epp_DomainCreate.cc 8 Mar 2002 12:00:14 -0000 1.9 *************** *** 52,60 **** epp_string epp_DomainCreate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_name == NULL || m_request->m_auth_info == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; --- 52,58 ---- epp_string epp_DomainCreate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_name == NULL) { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); ! } EPP_output xml_request; *************** *** 74,125 **** xml_request.putTag("domain:name",*m_request->m_name); ! if(m_request->m_period != NULL) ! { ! if(m_request->m_period->m_unit == NULL ! || m_request->m_period->m_value == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in DomainPeriod-element"); ! } ! ! xml_request.beginTag("domain:period"); ! xml_request.putAttribute("unit", returnPeriodUnitType(*m_request->m_period->m_unit)); ! xml_request.putCDATA(ltoa(*m_request->m_period->m_value)); ! xml_request.endTag("domain:period"); ! } if(m_request->m_name_servers != NULL) { ! for(epp_string_seq::iterator i = m_request->m_name_servers->begin(); i != m_request->m_name_servers->end(); i++) { xml_request.putTag("domain:ns", *i); } ! } ! ! if(m_request->m_registrant != NULL) ! { ! xml_request.putTag("domain:registrant", *m_request->m_registrant); ! } ! if(m_request->m_contacts != NULL) ! { ! for(epp_domain_contact_seq::iterator i = m_request->m_contacts->begin(); i != m_request->m_contacts->end(); i++) ! { ! if(i->m_type == NULL || i->m_id == NULL) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Missing data in contacts-list"); ! } ! ! xml_request.beginTag("domain:contact"); ! xml_request.putAttribute("type",returnContactType(*i->m_type)); ! xml_request.putCDATA(*i->m_id); ! xml_request.endTag("domain:contact"); ! ! } ! } ! ! addAuthInfoElement(xml_request, m_request->m_auth_info, "domain:authInfo"); --- 72,124 ---- xml_request.putTag("domain:name",*m_request->m_name); ! if(m_request->m_period != NULL) { ! ! xml_request.beginTag("domai... [truncated message content] |
From: Asbjorn M. <ste...@us...> - 2002-03-08 11:45:38
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv30223 Modified Files: Makefile.am Added Files: epp_Status.h epp_Status.cc main_status.cc Log Message: -Added <status> command -Changes in ifdef's used for testing --- NEW FILE: epp_Status.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_STATUS_H #define __EPP_STATUS_H #include "data/epp_StatusReq.h" #include "data/epp_StatusRsp.h" #include "epp_Action.h" namespace eppobject { namespace epp { class epp_Status : public epp_Action { private: epp_StatusReq_ref m_request; epp_StatusRsp_ref m_response; public: epp_Status() {}; virtual ~epp_Status() {}; void setRequestData(const epp_StatusReq & data); epp_StatusRsp_ref getResponseData(); virtual eppobject::epp::epp_string toXML(); virtual void fromXML(const eppobject::epp::epp_string & xml); }; typedef refcnt_ptr<epp_Status> epp_Status_ref; }} #endif --- NEW FILE: epp_Status.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #include "config.h" #include "epp_Status.h" #include <domtools/dom_output.h> #include <domtools/dom_wrapper.h> #include "data/epp_eppXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; using namespace eppobject::epp; void epp_Status::setRequestData(const epp_StatusReq & data) { m_request.ref(new epp_StatusReq(data)); } epp_StatusRsp_ref epp_Status::getResponseData() { return m_response; } epp_string epp_Status::toXML() { if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_client_trid == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); } EPP_output xml_request; xml_request.setWhitespace(Whitespace); createStandardXMLHeader(xml_request); xml_request.beginTag("command"); xml_request.beginTag("status"); if(m_request->m_command != NULL) { xml_request.putAttribute("command", returnStatusCommandType(*m_request->m_command)); } xml_request.beginTag("clTRID"); xml_request.putCDATA(*m_request->m_client_trid); xml_request.endTag("clTRID"); xml_request.endTag("status"); addExtensionElement(xml_request, m_request->m_cmd->m_ext); if(m_request->m_cmd->m_client_trid != NULL) { xml_request.putTag("clTRID",*m_request->m_cmd->m_client_trid); } // if "m_cmd->m_client_trid" xml_request.endTag("command"); createStandardXMLFooter(xml_request); return xml_request.getString(); } void epp_Status::fromXML(const eppobject::epp::epp_string & xml) { dom_ptr doc = createDOMDocument(xml); dom_ptr responseNode = dom_ptr(doc->getTag("response")); if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } epp_Response_ref res = createGenericResponse(responseNode); m_response.ref(new epp_StatusRsp(res)); } --- NEW FILE: main_status.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #include <string> #include <vector> #include <iostream.h> #include "data/epp_StatusReq.h" #include "data/epp_StatusRsp.h" #include "data/epp_XMLException.h" #include "data/epp_Exception.h" #include "epp_Action.h" #include "epp_Status.h" #include "epp_Session.h" #include "testTools.h" using namespace eppobject::epp; void printRsp(const epp_StatusRsp_ref req) { cout << "Printing Response:\n_______________________________\n"; if(req != NULL) printResponsePart(req->m_rsp); cout << "_______________________________\n"; } // printRsp int main(int argc, char * argv[]) { epp_Session test; string username, password; if(!handleArgs(test, argc, argv, username, password)) return 1; testLogIn(test, username, password); try { epp_StatusReq_ref l_req(new epp_StatusReq()); epp_Command_ref cmd(new epp_Command()); cmd->m_client_trid.ref(new epp_trid("ABC-12346")); l_req->m_cmd = cmd; l_req->m_client_trid.ref(new epp_trid("ABC-12345")); l_req->m_command.ref(new epp_StatusCommandType(CREATE)); epp_Status_ref l_obj(new epp_Status()); l_obj->setRequestData(*l_req); test.processAction(l_obj); epp_StatusRsp_ref l_rsp = l_obj->getResponseData(); #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); #endif return 0; } catch(epp_XMLException ex) { cout << "Exception: " << ex.getString() << endl; } catch(epp_Exception ex) { cout << "Exception: " << endl; #ifndef TEST_IO_REQUEST2CERR cerr << "<response>" << endl; printResultsSeq(ex.m_details); printTransID(ex.m_trans_id); cerr << "</response>" << endl; #endif } catch(...) { cout << "Something else went wrong...\n"; } } Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Makefile.am 8 Feb 2002 18:21:52 -0000 1.5 --- Makefile.am 8 Mar 2002 11:45:35 -0000 1.6 *************** *** 10,14 **** domaininfo domainrenew domaintransfer domainupdate \ hostcheck hostcreate hostdelete hostinfo hostupdate \ ! loginunspec noinst_LIBRARIES = libepprtk.a --- 10,14 ---- domaininfo domainrenew domaintransfer domainupdate \ hostcheck hostcreate hostdelete hostinfo hostupdate \ ! loginunspec status noinst_LIBRARIES = libepprtk.a *************** *** 34,37 **** --- 34,38 ---- epp_Logout.cc \ epp_Poll.cc \ + epp_Status.cc \ epp_ContactCheck.cc \ epp_ContactCreate.cc \ *************** *** 64,67 **** --- 65,71 ---- poll_SOURCES = \ main_poll.cc $(common) + + status_SOURCES = \ + main_status.cc $(common) contactcheck_SOURCES = \ |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv29118 Modified Files: Makefile.am epp_CheckResult.h epp_Command.h epp_ContactCreateRsp.h epp_ContactTransferRsp.h epp_ContactVoice.h epp_DomainCreateRsp.h epp_DomainInfoReq.h epp_DomainTransferRsp.h epp_DomainUpdateReq.h epp_Exception.h epp_Greeting.h epp_HostCreateRsp.h epp_LoginReq.h epp_LogoutReq.h epp_PollContactTransfer.h epp_PollDomainTransfer.h epp_PollResData.h epp_PollResDataUnion.h epp_Response.h epp_Result.h epp_Service.h epp_contactXMLbase.cc epp_contactXMLbase.h epp_domainXMLbase.cc epp_domainXMLbase.h epp_domaindata.h epp_eppXMLbase.cc epp_eppXMLbase.h epp_eppdata.h epp_hostXMLbase.cc Added Files: epp_ContactTrnData.cc epp_ContactTrnData.h epp_DataCollectionPolicy.h epp_DomainTrnData.cc epp_DomainTrnData.h epp_PollResFactory.cc epp_PollResFactory.h epp_ResultData.h epp_ServiceMenu.h epp_StatusReq.h epp_StatusResultData.h epp_StatusRsp.h epp_dcpStatement.h Log Message: -Upgraded existing files to 05/03 and added some new files -Added handling of new command status -Added handling of dataCollectionPolicy -Changed poll-handling to use a factory class (epp_PollResFactory) -Changed epp_Exception to also handle Transaction ID -Changed formatting to be more consistent -XML-functions not as strict anymore in regards to mandatory fields -Deleted deprecated function createGreetingResponse(DOM_Node & node) from epp_eppXMLbase as it would not compile easily anymore... --- NEW FILE: epp_ContactTrnData.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #include <domtools/dom_wrapper.h> #include "epp_ContactTrnData.h" #include "epp_contactXMLbase.h" using namespace eppobject::contact; using namespace eppobject::epp; using namespace domtools; eppobject::epp::epp_PollResData_ref epp_ContactTrnData::createTrnData(const domtools::dom_ptr & trnNode) { epp_ContactTrnData_ref cont(new epp_ContactTrnData()); if(!trnNode->isNull()) { dom_ptr CTChildNode = dom_ptr(trnNode->getFirstChildElement()); string elemPrefix = trnNode->getPrefix(); while(!CTChildNode->isNull()) { string nodeName = CTChildNode->getNodeName(); if(nodeName == string(elemPrefix + ":id")) { cont->m_id.ref(new epp_string(CTChildNode->getNodeData())); // cout << "id: " << *cont->m_id << endl; } // if "id" else if(nodeName == string(elemPrefix + ":trStatus")) { string trStatus = CTChildNode->getNodeData(); cont->m_transfer_status.ref(new epp_TransferStatusType(returnTransferStatusType(trStatus))); // cout << "trStatus: " << trStatus << endl; } // if "trStatus" else if(nodeName == string(elemPrefix + ":reID")) { cont->m_request_client_id.ref(new epp_string(CTChildNode->getNodeData())); // cout << "reID: " << *cont->m_request_client_id << endl; } // if "reID" else if(nodeName == string(elemPrefix + ":reDate")) { cont->m_request_date.ref(new epp_string(CTChildNode->getNodeData())); // cout << "reDate: " << *cont->m_request_date << endl; } // if "reDate" else if(nodeName == string(elemPrefix + ":acID")) { cont->m_action_client_id.ref(new epp_string(CTChildNode->getNodeData())); // cout << "acID: " << *cont->m_action_client_id << endl; } // if "acID" else if(nodeName == string(elemPrefix + ":acDate")) { cont->m_action_date.ref(new epp_string(CTChildNode->getNodeData())); // cout << "acDate: " << *cont->m_action_date << endl; } // if "acDate" CTChildNode = dom_ptr(CTChildNode->getNextSiblingElement()); } // while "CTChildNode" } // if "trnNode" return cont; } --- NEW FILE: epp_ContactTrnData.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_CONTACTTRNDATA_H #define __EPP_CONTACTTRNDATA_H #include "epp_eppdata.h" #include "epp_PollResData.h" namespace eppobject { namespace contact { class epp_ContactTrnData : public eppobject::epp::epp_PollResData { public: eppobject::epp::epp_string_ref m_id; eppobject::epp::epp_TransferStatusType_ref m_transfer_status; eppobject::epp::epp_string_ref m_request_client_id; eppobject::epp::epp_string_ref m_action_client_id; eppobject::epp::epp_datetime_ref m_request_date; eppobject::epp::epp_datetime_ref m_action_date; epp_ContactTrnData() { m_type = "contact:trnData"; }; virtual ~epp_ContactTrnData() {} // Note: Cannot set simple types to NULL epp_ContactTrnData(eppobject::epp::epp_string _m_id, eppobject::epp::epp_TransferStatusType _m_transfer_status, eppobject::epp::epp_string _m_request_client_id, eppobject::epp::epp_string _m_action_client_id, eppobject::epp::epp_datetime _m_request_date, eppobject::epp::epp_datetime _m_action_date) { m_type = "contact:trnData"; m_id.ref(new eppobject::epp::epp_string(_m_id)); m_transfer_status.ref(new eppobject::epp::epp_TransferStatusType(_m_transfer_status)); m_request_client_id.ref(new eppobject::epp::epp_string(_m_request_client_id)); m_action_client_id.ref(new eppobject::epp::epp_string(_m_action_client_id)); m_request_date.ref(new eppobject::epp::epp_datetime(_m_request_date)); m_action_date.ref(new eppobject::epp::epp_datetime(_m_action_date)); }; epp_ContactTrnData(eppobject::epp::epp_string_ref _m_id, eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, eppobject::epp::epp_string_ref _m_request_client_id, eppobject::epp::epp_string_ref _m_action_client_id, eppobject::epp::epp_datetime_ref _m_request_date, eppobject::epp::epp_datetime_ref _m_action_date) { m_type = "contact:trnData"; m_id = _m_id; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_action_client_id = _m_action_client_id; m_request_date = _m_request_date; m_action_date = _m_action_date; }; eppobject::epp::epp_string getType() { return m_type; }; eppobject::epp::epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode); }; typedef refcnt_ptr<epp_ContactTrnData> epp_ContactTrnData_ref; static eppobject::epp::epp_PollResData * createContactPollResData() { return new epp_ContactTrnData(); } }}; #endif --- NEW FILE: epp_DataCollectionPolicy.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_DATACOLLECTIONPOLICY_H #define __EPP_DATACOLLECTIONPOLICY_H /** @file epp_DataCollectionPolicy.h * @brief Definition of epp_DataCollectionPolicy and epp_DataCollectionPolicy_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_eppdata.h" #include "epp_dcpStatement.h" namespace eppobject { namespace epp { class epp_DataCollectionPolicy { public: epp_dcpAccessType_ref m_access; epp_dcpStatement_seq_ref m_statements; /// Null constructor epp_DataCollectionPolicy() {}; /// Destructor virtual ~epp_DataCollectionPolicy() {} /// Constructor, using only references epp_DataCollectionPolicy(epp_dcpAccessType_ref _m_access, epp_dcpStatement_seq_ref _m_statements) { m_access = _m_access; m_statements = _m_statements; }; }; /// Typedef for the ref to the epp_DataCollectionPolicy class typedef refcnt_ptr<epp_DataCollectionPolicy> epp_DataCollectionPolicy_ref; }}; #endif --- NEW FILE: epp_DomainTrnData.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #include <domtools/dom_wrapper.h> #include "epp_DomainTrnData.h" #include "epp_domainXMLbase.h" using namespace eppobject::domain; using namespace eppobject::epp; using namespace domtools; eppobject::epp::epp_PollResData_ref epp_DomainTrnData::createTrnData(const domtools::dom_ptr & trnNode) { epp_DomainTrnData_ref domt(new epp_DomainTrnData()); if(!trnNode->isNull()) { dom_ptr DTChildNode = dom_ptr(trnNode->getFirstChildElement()); string elemPrefix = trnNode->getPrefix(); while(!DTChildNode->isNull()) { string nodeName = DTChildNode->getNodeName(); if(nodeName == string(elemPrefix + ":name")) { domt->m_name.ref(new epp_string(DTChildNode->getNodeData())); // cout << "name: " << *domt->m_domain_name << endl; } // if "name" else if(nodeName == string(elemPrefix + ":trStatus")) { string trStatus = DTChildNode->getNodeData(); domt->m_transfer_status.ref(new epp_TransferStatusType(returnTransferStatusType(trStatus))); // cout << "trStatus: " << trStatus << endl; } // if "trStatus" else if(nodeName == string(elemPrefix + ":reID")) { domt->m_request_client_id.ref(new epp_string(DTChildNode->getNodeData())); // cout << "reID: " << *domt->m_request_client_id << endl; } // if "reID" else if(nodeName == string(elemPrefix + ":reDate")) { domt->m_request_date.ref(new epp_string(DTChildNode->getNodeData())); // cout << "reDate: " << *domt->m_request_date << endl; } // if "reDate" else if(nodeName == string(elemPrefix + ":acID")) { domt->m_action_client_id.ref(new epp_string(DTChildNode->getNodeData())); // cout << "acID: " << *domt->m_action_client_id << endl; } // if "acID" else if(nodeName == string(elemPrefix + ":acDate")) { domt->m_action_date.ref(new epp_string(DTChildNode->getNodeData())); // cout << "acDate: " << *domt->m_action_date << endl; } // if "acDate" else if(nodeName == string(elemPrefix + ":exDate")) { domt->m_expiration_date.ref(new epp_datetime(DTChildNode->getNodeData())); // cout << "exDate: " << *domt->m_expiration_date << endl; } // if "exDate" DTChildNode = dom_ptr(DTChildNode->getNextSiblingElement()); } // while "DTChildNode" } // if "trnNode" return domt; } // createTrnData --- NEW FILE: epp_DomainTrnData.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_DOMAINTRNDATA_H #define __EPP_DOMAINTRNDATA_H #include <domtools/dom_wrapper.h> #include "epp_eppdata.h" #include "epp_PollResData.h" namespace eppobject { namespace domain { class epp_DomainTrnData : public eppobject::epp::epp_PollResData { public: eppobject::epp::epp_string_ref m_name; eppobject::epp::epp_TransferStatusType_ref m_transfer_status; eppobject::epp::epp_string_ref m_request_client_id; eppobject::epp::epp_string_ref m_action_client_id; eppobject::epp::epp_datetime_ref m_request_date; eppobject::epp::epp_datetime_ref m_action_date; eppobject::epp::epp_datetime_ref m_expiration_date; epp_DomainTrnData() { m_type = "domain:trnData"; }; virtual ~epp_DomainTrnData() {} // Note: Cannot set simple types to NULL epp_DomainTrnData(eppobject::epp::epp_string _m_name, eppobject::epp::epp_TransferStatusType _m_transfer_status, eppobject::epp::epp_string _m_request_client_id, eppobject::epp::epp_string _m_action_client_id, eppobject::epp::epp_datetime _m_request_date, eppobject::epp::epp_datetime _m_action_date, eppobject::epp::epp_datetime _m_expiration_date) { m_type = "domain:trnData"; m_name.ref(new eppobject::epp::epp_string(_m_name)); m_transfer_status.ref(new eppobject::epp::epp_TransferStatusType(_m_transfer_status)); m_request_client_id.ref(new eppobject::epp::epp_string(_m_request_client_id)); m_action_client_id.ref(new eppobject::epp::epp_string(_m_action_client_id)); m_request_date.ref(new eppobject::epp::epp_datetime(_m_request_date)); m_action_date.ref(new eppobject::epp::epp_datetime(_m_action_date)); m_expiration_date.ref(new eppobject::epp::epp_datetime(_m_expiration_date)); }; epp_DomainTrnData(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, eppobject::epp::epp_string_ref _m_request_client_id, eppobject::epp::epp_string_ref _m_action_client_id, eppobject::epp::epp_datetime_ref _m_request_date, eppobject::epp::epp_datetime_ref _m_action_date, eppobject::epp::epp_datetime_ref _m_expiration_date) { m_type = "domain:trnData"; m_name = _m_name; m_transfer_status = _m_transfer_status; m_request_client_id = _m_request_client_id; m_action_client_id = _m_action_client_id; m_request_date = _m_request_date; m_action_date = _m_action_date; m_expiration_date = _m_expiration_date; }; eppobject::epp::epp_string getType() { return m_type; }; eppobject::epp::epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode); }; typedef refcnt_ptr<epp_DomainTrnData> epp_DomainTrnData_ref; static eppobject::epp::epp_PollResData * createDomainPollResData() { return new epp_DomainTrnData(); } }}; #endif --- NEW FILE: epp_PollResFactory.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #include "epp_PollResFactory.h" using namespace eppobject::epp; epp_PollResFactory::FactoryMap epp_PollResFactory::fm; epp_PollResData* epp_PollResFactory::create(const string & namespaceURI, const string & element) { FactoryMap::const_iterator i = fm.find(namespaceURI + ":" + element); if (i == fm.end()) return NULL; return i->second(); } void epp_PollResFactory::addClass(const string & namespaceURI, const string & element, epp_PollResData * (* func)()) { fm[namespaceURI + ":" + element] = func; } --- NEW FILE: epp_PollResFactory.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_POLLRESFACTORY_H #define __EPP_POLLRESFACTORY_H #include "epp_eppdata.h" #include "epp_PollResData.h" #include <map> namespace eppobject { namespace epp { class epp_PollResFactory { private: typedef map<epp_string, epp_PollResData * (*)(), less<epp_string> > FactoryMap; static FactoryMap fm; public: epp_PollResFactory() {}; virtual ~epp_PollResFactory() {}; static epp_PollResData* create(const string & namespaceURI, const string & element); static void addClass(const string & namespaceURI, const string & element, epp_PollResData * (* func)()); }; typedef refcnt_ptr<epp_PollResFactory> epp_PollResFactory_ref; }}; #endif --- NEW FILE: epp_ResultData.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_RESULTDATA_H #define __EPP_RESULTDATA_H #include "epp_eppdata.h" #include "epp_StatusResultData.h" namespace eppobject { namespace epp { class epp_ResultData { public: epp_StatusResultData_ref m_status; /// Null constructor epp_ResultData() {}; /// Destructor virtual ~epp_ResultData() {} /// Constructor, using only references epp_ResultData(epp_StatusResultData_ref _m_status) { m_status = _m_status; }; }; /// Typedef for the ref to the epp_ResultData class typedef refcnt_ptr<epp_ResultData> epp_ResultData_ref; }}; #endif --- NEW FILE: epp_ServiceMenu.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_SERVICEMENU_H #define __EPP_SERVICEMENU_H /** @file epp_ServiceMenu.h * @brief Definition of epp_ServiceMenu and epp_ServiceMenu_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_eppdata.h" namespace eppobject { namespace epp { /// Class describing the services supported by the server class epp_ServiceMenu { public: epp_string_seq_ref m_versions; /**< Protocol versions supported by the server */ epp_string_seq_ref m_langs; /**< ID of languages supported by the server (iso639) */ epp_objuri_seq_ref m_services; /**< Namespace URIs representing the objects that the server is capable of managing */ epp_exturi_seq_ref m_extensions; /**< Namespace URIs representing object extensions supported by the server*/ /// Null constructor epp_ServiceMenu() {}; /// Destructor virtual ~epp_ServiceMenu() {} /// Constructor, using only references epp_ServiceMenu(epp_string_seq_ref _m_versions, epp_string_seq_ref _m_langs, epp_objuri_seq_ref _m_services, epp_exturi_seq_ref _m_extensions) { m_versions = _m_versions; m_langs = _m_langs; m_services = _m_services; m_extensions = _m_extensions; }; }; /// Typedef for the ref to the epp_ServiceMenu class typedef refcnt_ptr<epp_ServiceMenu> epp_ServiceMenu_ref; }}; #endif --- NEW FILE: epp_StatusReq.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_STATUSREQ_H #define __EPP_STATUSREQ_H /** @file epp_StatusReq.h * @brief Definition of epp_StatusReq and epp_StatusReq_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_eppdata.h" #include "epp_GenericReq.h" namespace eppobject { namespace epp { // Class containing all elements used in Status requests // @see epp_GenericReq for additional information class epp_StatusReq : public epp_GenericReq { public: epp_trid_ref m_client_trid; epp_StatusCommandType_ref m_command; /// Null constructor epp_StatusReq() {}; /// Destructor virtual ~epp_StatusReq() {} /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL epp_StatusReq(epp_Command_ref _m_cmd, epp_trid _m_client_trid, epp_StatusCommandType_ref _m_command) : epp_GenericReq(_m_cmd) { m_client_trid.ref(new epp_trid(_m_client_trid)); m_command = _m_command; }; /// Constructor, using only references epp_StatusReq(epp_Command_ref _m_cmd, epp_trid_ref _m_client_trid, epp_StatusCommandType_ref _m_command) : epp_GenericReq(_m_cmd) { m_client_trid = _m_client_trid; m_command = _m_command; }; }; /// Typedef for the ref to the epp_StatusReq class typedef refcnt_ptr<epp_StatusReq> epp_StatusReq_ref; }}; #endif --- NEW FILE: epp_StatusResultData.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_STATUSRESULTDATA_H #define __EPP_STATUSRESULTDATA_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_StatusResultData { public: epp_boolean_ref m_ack; epp_trid_ref m_cltrid; /// Null constructor epp_StatusResultData() {}; /// Destructor virtual ~epp_StatusResultData() {} /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL epp_StatusResultData(epp_boolean _m_ack, epp_trid _m_cltrid) { m_ack.ref(new epp_boolean(_m_ack)); m_cltrid.ref(new epp_trid(_m_cltrid)); }; /// Constructor, using only references epp_StatusResultData(epp_boolean_ref _m_ack, epp_trid_ref _m_cltrid) { m_ack = _m_ack; m_cltrid = _m_cltrid; }; }; /// Typedef for the ref to the epp_StatusResultData class typedef refcnt_ptr<epp_StatusResultData> epp_StatusResultData_ref; }}; #endif --- NEW FILE: epp_StatusRsp.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_STATUSRSP_H #define __EPP_STATUSRSP_H /** @file epp_StatusRsp.h * @brief Definition of epp_StatusRsp and epp_StatusRsp_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_GenericRsp.h" namespace eppobject { namespace epp { // Class containing all elements used in Status responses // @see epp_GenericRsp for additional information class epp_StatusRsp : public epp_GenericRsp { public: /// Null constructor epp_StatusRsp() {}; /// Destructor virtual ~epp_StatusRsp() {}; /// Constructor epp_StatusRsp(epp_Response_ref _m_rsp) : epp_GenericRsp(_m_rsp) {}; }; /// Typedef for the ref to the epp_StatusRsp class typedef refcnt_ptr<epp_StatusRsp> epp_StatusRsp_ref; }}; #endif --- NEW FILE: epp_dcpStatement.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_DCPSTATEMENT_H #define __EPP_DCPSTATEMENT_H /** @file epp_dcpStatement.h * @brief Definition of epp_dcpStatement and epp_dcpStatement_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_dcpStatement { public: epp_dcpPurpose_seq_ref m_purposes; epp_dcpRecipient_seq_ref m_recipients; epp_dcpRetention_seq_ref m_retentions; /// Null constructor epp_dcpStatement() {}; /// Destructor virtual ~epp_dcpStatement() {} /// Constructor, using only references epp_dcpStatement(epp_dcpPurpose_seq_ref _m_purposes, epp_dcpRecipient_seq_ref _m_recipients, epp_dcpRetention_seq_ref _m_retentions) { m_purposes = _m_purposes; m_recipients = _m_recipients; m_retentions = _m_retentions; }; }; /// Typedef for the ref to the epp_dcpStatement class typedef refcnt_ptr<epp_dcpStatement> epp_dcpStatement_ref; }}; #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 19 Jun 2001 19:16:38 -0000 1.1 --- Makefile.am 8 Mar 2002 11:41:27 -0000 1.2 *************** *** 2,6 **** libdata_a_SOURCES = epp_eppXMLbase.cc epp_contactXMLbase.cc \ ! epp_domainXMLbase.cc epp_hostXMLbase.cc CLEANFILES = *~ --- 2,7 ---- libdata_a_SOURCES = epp_eppXMLbase.cc epp_contactXMLbase.cc \ ! epp_domainXMLbase.cc epp_hostXMLbase.cc epp_PollResFactory.cc \ ! epp_DomainTrnData.cc epp_ContactTrnData.cc CLEANFILES = *~ Index: epp_CheckResult.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_CheckResult.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_CheckResult.h 22 Feb 2002 15:46:02 -0000 1.6 --- epp_CheckResult.h 8 Mar 2002 11:41:27 -0000 1.7 *************** *** 42,47 **** public: ! epp_boolean_ref m_exists; /**< Boolean value indicating whether an object is known to the server or not */ ! epp_string_ref m_value; /**< Fully qualified names for the queried objects */ /// Null constructor --- 42,49 ---- public: ! epp_boolean_ref m_avail; /**< Boolean value indicating whether an object is known to the server or not */ ! epp_string_ref m_value; /**< ID of the queried object */ ! epp_string_ref m_reason; /**< Server-specific text to help explain why the object is unavailable */ ! epp_string_ref m_lang; /**< ID of the language of the reason text (iso639) */ /// Null constructor *************** *** 53,69 **** /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL ! epp_CheckResult(epp_boolean _m_exists, ! epp_string _m_value) { ! m_exists.ref(new epp_boolean(_m_exists)); m_value.ref(new epp_string(_m_value)); }; /// Constructor, using only references ! epp_CheckResult(epp_boolean_ref _m_exists, ! epp_string_ref _m_value) { ! m_exists = _m_exists; m_value = _m_value; }; }; --- 55,79 ---- /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL ! epp_CheckResult(epp_boolean _m_avail, ! epp_string _m_value, ! epp_string _m_reason, ! epp_string _m_lang) { ! m_avail.ref(new epp_boolean(_m_avail)); m_value.ref(new epp_string(_m_value)); + m_reason.ref(new epp_string(_m_reason)); + m_lang.ref(new epp_string(_m_lang)); }; /// Constructor, using only references ! epp_CheckResult(epp_boolean_ref _m_avail, ! epp_string_ref _m_value, ! epp_string_ref _m_reason, ! epp_string_ref _m_lang) { ! m_avail = _m_avail; m_value = _m_value; + m_reason = _m_reason; + m_lang = _m_lang; }; }; Index: epp_Command.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Command.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Command.h 22 Feb 2002 15:46:02 -0000 1.7 --- epp_Command.h 8 Mar 2002 11:41:27 -0000 1.8 *************** *** 37,41 **** #include "epp_eppdata.h" #include "epp_Credentials.h" ! #include "../epp_Unspec.h" namespace eppobject { namespace epp { --- 37,41 ---- #include "epp_eppdata.h" #include "epp_Credentials.h" ! #include "../epp_Extension.h" namespace eppobject { namespace epp { *************** *** 46,50 **** public: epp_Credentials_ref m_creds; /**< Client identity credentials element that provides client identity information */ ! epp_Unspec_ref m_unspec; /**< Unspecified element used for server-defined command extensions */ epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client */ --- 46,50 ---- public: epp_Credentials_ref m_creds; /**< Client identity credentials element that provides client identity information */ ! epp_Extension_ref m_ext; /**< Extension element used for server-defined command extensions */ epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client */ *************** *** 58,66 **** /// @note Cannot set simple types to NULL epp_Command(epp_Credentials_ref _m_creds, ! epp_Unspec_ref _m_unspec, epp_trid _m_client_trid) { m_creds = _m_creds; ! m_unspec = _m_unspec; m_client_trid.ref(new epp_trid(_m_client_trid)); }; --- 58,66 ---- /// @note Cannot set simple types to NULL epp_Command(epp_Credentials_ref _m_creds, ! epp_Extension_ref _m_ext, epp_trid _m_client_trid) { m_creds = _m_creds; ! m_ext = _m_ext; m_client_trid.ref(new epp_trid(_m_client_trid)); }; *************** *** 68,76 **** /// Constructor, using only references epp_Command(epp_Credentials_ref _m_creds, ! epp_Unspec_ref _m_unspec, epp_trid_ref _m_client_trid) { m_creds = _m_creds; ! m_unspec = _m_unspec; m_client_trid = _m_client_trid; }; --- 68,76 ---- /// Constructor, using only references epp_Command(epp_Credentials_ref _m_creds, ! epp_Extension_ref _m_ext, epp_trid_ref _m_client_trid) { m_creds = _m_creds; ! m_ext = _m_ext; m_client_trid = _m_client_trid; }; Index: epp_ContactCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCreateRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactCreateRsp.h 21 Feb 2002 14:06:02 -0000 1.8 --- epp_ContactCreateRsp.h 8 Mar 2002 11:41:27 -0000 1.9 *************** *** 38,41 **** --- 38,42 ---- public: eppobject::epp::epp_string_ref m_id; + eppobject::epp::epp_datetime_ref m_creation_date; epp_ContactCreateRsp() {}; *************** *** 45,60 **** // Note: Cannot set simple types to NULL epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string _m_id) : epp::epp_GenericRsp(_m_rsp) { m_id.ref(new eppobject::epp::epp_string(_m_id)); }; epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string_ref _m_id) : epp::epp_GenericRsp(_m_rsp) { m_id = _m_id; }; }; --- 46,65 ---- // Note: Cannot set simple types to NULL epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string _m_id, ! eppobject::epp::epp_datetime _m_creation_date) : epp::epp_GenericRsp(_m_rsp) { m_id.ref(new eppobject::epp::epp_string(_m_id)); + m_creation_date.ref(new eppobject::epp::epp_datetime(_m_creation_date)); }; epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string_ref _m_id, ! eppobject::epp::epp_datetime_ref _m_creation_date) : epp::epp_GenericRsp(_m_rsp) { m_id = _m_id; + m_creation_date = _m_creation_date; }; }; Index: epp_ContactTransferRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactTransferRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactTransferRsp.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_ContactTransferRsp.h 8 Mar 2002 11:41:27 -0000 1.9 *************** *** 31,34 **** --- 31,35 ---- #include "epp_contactdata.h" #include "epp_GenericRsp.h" + #include "epp_ContactTrnData.h" namespace eppobject { namespace contact { *************** *** 36,84 **** class epp_ContactTransferRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_id; ! eppobject::epp::epp_TransferStatusType_ref m_transfer_status; ! eppobject::epp::epp_string_ref m_request_client_id; ! eppobject::epp::epp_datetime_ref m_request_date; ! eppobject::epp::epp_string_ref m_action_client_id; ! eppobject::epp::epp_datetime_ref m_action_date; epp_ContactTransferRsp() {}; - - virtual ~epp_ContactTransferRsp() {} - - // Note: Cannot set simple types to NULL - epp_ContactTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, - eppobject::epp::epp_string _m_id, - eppobject::epp::epp_TransferStatusType _m_transfer_status, - eppobject::epp::epp_string _m_request_client_id, - eppobject::epp::epp_datetime _m_request_date, - eppobject::epp::epp_string _m_action_client_id, - eppobject::epp::epp_datetime _m_action_date) - : epp::epp_GenericRsp(_m_rsp) - { - m_id.ref(new eppobject::epp::epp_string(_m_id)); - m_transfer_status.ref(new eppobject::epp::epp_TransferStatusType(_m_transfer_status)); - m_request_client_id.ref(new eppobject::epp::epp_string(_m_request_client_id)); - m_request_date.ref(new eppobject::epp::epp_datetime(_m_request_date)); - m_action_client_id.ref(new eppobject::epp::epp_string(_m_action_client_id)); - m_action_date.ref(new eppobject::epp::epp_datetime(_m_action_date)); - }; epp_ContactTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string_ref _m_id, ! eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, ! eppobject::epp::epp_string_ref _m_request_client_id, ! eppobject::epp::epp_datetime_ref _m_request_date, ! eppobject::epp::epp_string_ref _m_action_client_id, ! eppobject::epp::epp_datetime_ref _m_action_date) : epp::epp_GenericRsp(_m_rsp) { ! m_id = _m_id; ! m_transfer_status = _m_transfer_status; ! m_request_client_id = _m_request_client_id; ! m_request_date = _m_request_date; ! m_action_client_id = _m_action_client_id; ! m_action_date = _m_action_date; }; }; --- 37,51 ---- class epp_ContactTransferRsp : public epp::epp_GenericRsp { public: ! epp_ContactTrnData_ref m_trn_data; epp_ContactTransferRsp() {}; + virtual ~epp_ContactTransferRsp() {} epp_ContactTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, ! epp_ContactTrnData_ref _m_trn_data) : epp::epp_GenericRsp(_m_rsp) { ! m_trn_data = _m_trn_data; }; }; Index: epp_ContactVoice.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactVoice.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactVoice.h 22 Feb 2002 15:46:02 -0000 1.9 --- epp_ContactVoice.h 8 Mar 2002 11:41:27 -0000 1.10 *************** *** 32,36 **** * @brief Deprecated! Definition of epp_ContactVoice and epp_ContactVoice_ref * @author Asbjorn Steira Mikkelsen ! * @deprecated Replaced by epp_ContactPhone.h */ --- 32,36 ---- * @brief Deprecated! Definition of epp_ContactVoice and epp_ContactVoice_ref * @author Asbjorn Steira Mikkelsen ! * @deprecated From IDL 04/02 replaced by epp_ContactPhone.h */ Index: epp_DomainCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCreateRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainCreateRsp.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_DomainCreateRsp.h 8 Mar 2002 11:41:27 -0000 1.9 *************** *** 37,42 **** public: eppobject::epp::epp_string_ref m_name; eppobject::epp::epp_datetime_ref m_expiration_date; - epp_DomainCreateRsp() {}; --- 37,42 ---- public: eppobject::epp::epp_string_ref m_name; + eppobject::epp::epp_datetime_ref m_creation_date; eppobject::epp::epp_datetime_ref m_expiration_date; epp_DomainCreateRsp() {}; *************** *** 47,54 **** --- 47,56 ---- epp_DomainCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, + eppobject::epp::epp_datetime _m_creation_date, eppobject::epp::epp_datetime _m_expiration_date) : epp::epp_GenericRsp(_m_rsp) { m_name.ref(new eppobject::epp::epp_string(_m_name)); + m_creation_date.ref(new eppobject::epp::epp_datetime(_m_creation_date)); m_expiration_date.ref(new eppobject::epp::epp_datetime(_m_expiration_date)); }; *************** *** 57,64 **** --- 59,68 ---- epp_DomainCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, + eppobject::epp::epp_datetime_ref _m_creation_date, eppobject::epp::epp_datetime_ref _m_expiration_date) : epp::epp_GenericRsp(_m_rsp) { m_name = _m_name; + m_creation_date = _m_creation_date; m_expiration_date = _m_expiration_date; }; Index: epp_DomainInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainInfoReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainInfoReq.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_DomainInfoReq.h 8 Mar 2002 11:41:27 -0000 1.9 *************** *** 45,48 **** --- 45,49 ---- public: eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to be queried */ + epp_DomainHostsType_ref m_hosts_type; /**< Used to control return of information describing hosts related to the domain object */ /// Null constructor *************** *** 55,70 **** /// @note Cannot set simple types to NULL epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string _m_name) : epp::epp_GenericReq(_m_cmd) { m_name.ref(new eppobject::epp::epp_string(_m_name)); }; /// Constructor, using only references epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string_ref _m_name) : epp::epp_GenericReq(_m_cmd) { m_name = _m_name; }; }; --- 56,75 ---- /// @note Cannot set simple types to NULL epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string _m_name, ! epp_DomainHostsType_ref _m_hosts_type) : epp::epp_GenericReq(_m_cmd) { m_name.ref(new eppobject::epp::epp_string(_m_name)); + m_hosts_type = _m_hosts_type; }; /// Constructor, using only references epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string_ref _m_name, ! epp_DomainHostsType_ref _m_hosts_type) : epp::epp_GenericReq(_m_cmd) { m_name = _m_name; + m_hosts_type = _m_hosts_type; }; }; Index: epp_DomainTransferRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainTransferRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainTransferRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainTransferRsp.h 8 Mar 2002 11:41:27 -0000 1.8 *************** *** 31,34 **** --- 31,35 ---- #include "epp_domaindata.h" #include "epp_GenericRsp.h" + #include "epp_DomainTrnData.h" namespace eppobject { namespace domain { *************** *** 37,90 **** public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_TransferStatusType_ref m_transfer_status; ! eppobject::epp::epp_string_ref m_request_client_id; ! eppobject::epp::epp_datetime_ref m_request_date; ! eppobject::epp::epp_string_ref m_action_client_id; ! eppobject::epp::epp_datetime_ref m_action_date; ! eppobject::epp::epp_datetime_ref m_expiration_date; epp_DomainTransferRsp() {}; virtual ~epp_DomainTransferRsp() {} ! ! // Note: Cannot set simple types to NULL ! epp_DomainTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string _m_name, ! eppobject::epp::epp_TransferStatusType _m_transfer_status, ! eppobject::epp::epp_string _m_request_client_id, ! eppobject::epp::epp_datetime _m_request_date, ! eppobject::epp::epp_string _m_action_client_id, ! eppobject::epp::epp_datetime _m_action_date, ! eppobject::epp::epp_datetime _m_expiration_date) ! : epp::epp_GenericRsp(_m_rsp) ! { ! m_name.ref(new eppobject::epp::epp_string(_m_name)); ! m_transfer_status.ref(new eppobject::epp::epp_TransferStatusType(_m_transfer_status)); ! m_request_client_id.ref(new eppobject::epp::epp_string(_m_request_client_id)); ! m_request_date.ref(new eppobject::epp::epp_datetime(_m_request_date)); ! m_action_client_id.ref(new eppobject::epp::epp_string(_m_action_client_id)); ! m_action_date.ref(new eppobject::epp::epp_datetime(_m_action_date)); ! m_expiration_date.ref(new eppobject::epp::epp_datetime(_m_expiration_date)); ! }; ! ! epp_DomainTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string_ref _m_name, ! eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, ! eppobject::epp::epp_string_ref _m_request_client_id, ! eppobject::epp::epp_datetime_ref _m_request_date, ! eppobject::epp::epp_string_ref _m_action_client_id, ! eppobject::epp::epp_datetime_ref _m_action_date, ! eppobject::epp::epp_datetime_ref _m_expiration_date) : epp::epp_GenericRsp(_m_rsp) { ! m_name = _m_name; ! m_transfer_status = _m_transfer_status; ! m_request_client_id = _m_request_client_id; ! m_request_date = _m_request_date; ! m_action_client_id = _m_action_client_id; ! m_action_date = _m_action_date; ! m_expiration_date = _m_expiration_date; }; }; --- 38,52 ---- public: ! epp_DomainTrnData_ref m_trn_data; epp_DomainTransferRsp() {}; virtual ~epp_DomainTransferRsp() {} ! epp_DomainTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, ! epp_DomainTrnData_ref _m_trn_data) : epp::epp_GenericRsp(_m_rsp) { ! m_trn_data = _m_trn_data; }; }; Index: epp_DomainUpdateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainUpdateReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainUpdateReq.h 8 Mar 2002 11:41:27 -0000 1.8 *************** *** 26,31 **** ************************************************************************/ ! #ifndef __EPP_DomainUPDATEREQ_H ! #define __EPP_DomainUPDATEREQ_H #include "epp_domaindata.h" --- 26,31 ---- ************************************************************************/ ! #ifndef __EPP_DOMAINUPDATEREQ_H ! #define __EPP_DOMAINUPDATEREQ_H #include "epp_domaindata.h" Index: epp_Exception.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Exception.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Exception.h 22 Feb 2002 09:35:42 -0000 1.5 --- epp_Exception.h 8 Mar 2002 11:41:27 -0000 1.6 *************** *** 36,39 **** --- 36,40 ---- #include "epp_eppdata.h" #include "epp_Result.h" + #include "epp_TransID.h" #include <exception> #include <cstdio> *************** *** 49,52 **** --- 50,54 ---- public: epp_result_seq_ref m_details; /**< Object describing the encountered error(s)*/ + epp_TransID_ref m_trans_id; /**< Transaction identifier assigned by the server to the command */ /// Null constructor *************** *** 57,67 **** /// Constructor with error data ! epp_Exception(const epp_result_seq & data) throw() { ! m_details.ref(new epp_result_seq(data)); }; /// Returns the error details /// @note Kept for backwards compatibility virtual epp_result_seq_ref getDetails() { --- 59,72 ---- /// Constructor with error data ! epp_Exception(const epp_result_seq_ref & _m_details, ! const epp_TransID_ref & _m_trans_id) throw() { ! m_details = _m_details; ! m_trans_id = _m_trans_id; }; /// Returns the error details /// @note Kept for backwards compatibility + /// @deprecated Only returns epp_results_seq_ref. Access data directly instead. virtual epp_result_seq_ref getDetails() { Index: epp_Greeting.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Greeting.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Greeting.h 22 Feb 2002 15:46:02 -0000 1.7 --- epp_Greeting.h 8 Mar 2002 11:41:27 -0000 1.8 *************** *** 35,43 **** #include "epp_eppdata.h" ! #include "epp_Service.h" namespace eppobject { namespace epp { ! /// Class describing the server and its supported services class epp_Greeting { --- 35,44 ---- #include "epp_eppdata.h" ! #include "epp_ServiceMenu.h" ! #include "epp_DataCollectionPolicy.h" namespace eppobject { namespace epp { ! // Class describing the server and its supported services class epp_Greeting { *************** *** 45,52 **** epp_string_ref m_server_id; /**< Name of the server */ epp_datetime_ref m_server_date; /**< Current date and time in UTC of the server */ ! epp_string_seq_ref m_versions; /**< Protocol versions supported by the server */ ! epp_string_seq_ref m_langs; /**< ID of languages supported by the server (iso639) */ ! epp_service_seq_ref m_services; /**< Standard EPP objects that the server is capable of managing */ ! epp_service_seq_ref m_unspec_services; /**< Custom EPP object extensions supported by the server */ /// Null constructor --- 46,51 ---- epp_string_ref m_server_id; /**< Name of the server */ epp_datetime_ref m_server_date; /**< Current date and time in UTC of the server */ ! epp_ServiceMenu_ref m_svc_menu; ! epp_DataCollectionPolicy_ref m_dcp; /// Null constructor *************** *** 60,74 **** epp_Greeting(epp_string _m_server_id, epp_datetime _m_server_date, ! epp_string_seq_ref _m_versions, ! epp_string_seq_ref _m_langs, ! epp_service_seq_ref _m_services, ! epp_service_seq_ref _m_unspec_services) { m_server_id.ref(new epp_string(_m_server_id)); m_server_date.ref(new epp_datetime(_m_server_date)); ! m_versions = _m_versions; ! m_langs = _m_langs; ! m_services = _m_services; ! m_unspec_services = _m_unspec_services; }; --- 59,69 ---- epp_Greeting(epp_string _m_server_id, epp_datetime _m_server_date, ! epp_ServiceMenu_ref _m_svc_menu, ! epp_DataCollectionPolicy_ref _m_dcp) { m_server_id.ref(new epp_string(_m_server_id)); m_server_date.ref(new epp_datetime(_m_server_date)); ! m_svc_menu = _m_svc_menu; ! m_dcp = _m_dcp; }; *************** *** 76,90 **** epp_Greeting(epp_string_ref _m_server_id, epp_datetime_ref _m_server_date, ! epp_string_seq_ref _m_versions, ! epp_string_seq_ref _m_langs, ! epp_service_seq_ref _m_services, ! epp_service_seq_ref _m_unspec_services) { m_server_id = _m_server_id; m_server_date = _m_server_date; ! m_versions = _m_versions; ! m_langs = _m_langs; ! m_services = _m_services; ! m_unspec_services = _m_unspec_services; }; }; --- 71,81 ---- epp_Greeting(epp_string_ref _m_server_id, epp_datetime_ref _m_server_date, ! epp_ServiceMenu_ref _m_svc_menu, ! epp_DataCollectionPolicy_ref _m_dcp... [truncated message content] |
From: Asbjorn M. <ste...@us...> - 2002-03-08 11:11:37
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/ssl In directory usw-pr-cvs1:/tmp/cvs-serv22448 Modified Files: Makefile.am Log Message: Deleted some commented lines... Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/ssl/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 28 Jun 2001 14:02:55 -0000 1.2 --- Makefile.am 8 Mar 2002 11:11:34 -0000 1.3 *************** *** 9,16 **** npssl.cc - - #LDADD = libnpssl.a -L/usr/local/xerces/lib/ -lxerces-c1_4 -L/usr/local/ssl/lib -lssl -lcrypt -lcrypto - #LDADD = -L /usr/local/lib/npbase -lnpbase -lnpssl -lcrypt -lssl -lcrypto - LDFLAGS = INCLUDES =-I/usr/local/ssl/include -I/usr/local --- 9,12 ---- |
From: Asbjorn M. <ste...@us...> - 2002-03-08 11:10:19
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv21971 Modified Files: epp_TransportIOStream.cc Log Message: -Fixed readFromServer to handle "</epp>" properly even if it is not at the end of the line (looks ugly, but it works and is reasonably fast). -Changed ifdef identifier used for testing Index: epp_TransportIOStream.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportIOStream.cc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_TransportIOStream.cc 20 Feb 2002 17:26:02 -0000 1.4 --- epp_TransportIOStream.cc 8 Mar 2002 11:10:15 -0000 1.5 *************** *** 37,41 **** cout << endl; ! #ifdef TEST_OUTPUTTOCERR cerr << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"; cerr << xml_string << endl; --- 37,41 ---- cout << endl; ! #ifdef TEST_IO_REQUEST2CERR cerr << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"; cerr << xml_string << endl; *************** *** 45,59 **** string epp_TransportIOStream::readFromServer() { ! string s, line; ! ! // <FIXME>Must handle a situation where "</epp>" is not on a line of its own...</fixme> ! while(getline(cin,line) && line.find("</epp>") == string::npos) ! { ! s += line; ! s += "\n"; ! } ! s += line; ! s += "\n"; return s; --- 45,79 ---- string epp_TransportIOStream::readFromServer() { ! string s; ! char c; ! while(cin) { ! cin.get(c); ! s += c; ! if(c == '<') { // if "<" ! cin.get(c); ! s += c; ! if(c == '/') { // if "</" ! cin.get(c); ! s += c; ! if(c == 'e') { // if "</e" ! cin.get(c); ! s += c; ! if(c == 'p') { // if "</ep" ! cin.get(c); ! s += c; ! if(c == 'p') { // if "</epp" ! cin.get(c); ! s += c; ! if(c == '>') { // if "</epp>" ! break; ! } // if "</epp>" ! } // if "</epp" ! } // if "</ep" ! } // if "</e" ! } // if "</" ! } // if "<" ! ! } // while return s; |
From: Asbjorn M. <ste...@us...> - 2002-03-08 11:06:27
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv21208 Modified Files: epp_TransportSSL.h Log Message: Added comment about making this class more configurable. Index: epp_TransportSSL.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_TransportSSL.h 20 Feb 2002 17:26:02 -0000 1.7 --- epp_TransportSSL.h 8 Mar 2002 11:06:23 -0000 1.8 *************** *** 65,69 **** { sslserver = NULL; ! m_certFile = "/usr/share/ssl/certs/client.pem"; }; --- 65,69 ---- { sslserver = NULL; ! m_certFile = "/usr/share/ssl/certs/client.pem"; //<fixme>needs to be configurable...</fixme> }; |
From: Asbjorn M. <ste...@us...> - 2002-02-25 10:59:44
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv13595 Modified Files: Tag: epp-0402 epp_DomainUpdate.cc epp_DomainCreate.cc Log Message: m_type is not actually mandatory in m_contacts. Fixed. Index: epp_DomainUpdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainUpdate.cc,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 *** epp_DomainUpdate.cc 23 Feb 2002 04:36:05 -0000 1.5.2.1 --- epp_DomainUpdate.cc 25 Feb 2002 10:59:40 -0000 1.5.2.2 *************** *** 132,136 **** for(epp_domain_contact_seq::iterator i = element->m_contacts->begin(); i != element->m_contacts->end(); i++) { ! if(i->m_type == NULL || i->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in contacts-list"); --- 132,136 ---- for(epp_domain_contact_seq::iterator i = element->m_contacts->begin(); i != element->m_contacts->end(); i++) { ! if(i->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in contacts-list"); *************** *** 138,142 **** outputobject.beginTag("domain:contact"); ! outputobject.putAttribute("type",returnContactType(*i->m_type)); outputobject.putCDATA(*i->m_id); outputobject.endTag("domain:contact"); --- 138,143 ---- outputobject.beginTag("domain:contact"); ! if(i->m_type != NULL) ! outputobject.putAttribute("type",returnContactType(*i->m_type)); outputobject.putCDATA(*i->m_id); outputobject.endTag("domain:contact"); Index: epp_DomainCreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCreate.cc,v retrieving revision 1.4.2.1 retrieving revision 1.4.2.2 diff -C2 -d -r1.4.2.1 -r1.4.2.2 *** epp_DomainCreate.cc 23 Feb 2002 04:36:05 -0000 1.4.2.1 --- epp_DomainCreate.cc 25 Feb 2002 10:59:40 -0000 1.4.2.2 *************** *** 106,110 **** for(epp_domain_contact_seq::iterator i = m_request->m_contacts->begin(); i != m_request->m_contacts->end(); i++) { ! if(i->m_type == NULL || i->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in contacts-list"); --- 106,110 ---- for(epp_domain_contact_seq::iterator i = m_request->m_contacts->begin(); i != m_request->m_contacts->end(); i++) { ! if(i->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in contacts-list"); *************** *** 112,116 **** xml_request.beginTag("domain:contact"); ! xml_request.putAttribute("type",returnContactType(*i->m_type)); xml_request.putCDATA(*i->m_id); xml_request.endTag("domain:contact"); --- 112,117 ---- xml_request.beginTag("domain:contact"); ! if(i->m_type != NULL) ! xml_request.putAttribute("type",returnContactType(*i->m_type)); xml_request.putCDATA(*i->m_id); xml_request.endTag("domain:contact"); |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv30343/src/data Modified Files: Tag: epp-0402 epp_AuthInfo.h epp_CheckResult.h epp_Command.h epp_ContactAddress.h epp_ContactCheckReq.h epp_ContactCheckRsp.h epp_ContactCreateReq.h epp_ContactCreateRsp.h epp_ContactDeleteReq.h epp_ContactDeleteRsp.h epp_ContactInfoReq.h epp_ContactInfoRsp.h epp_ContactNameAddress.h epp_ContactPhone.h epp_ContactStatus.h epp_ContactTransferReq.h epp_ContactTransferRsp.h epp_ContactUpdateAddRemove.h epp_ContactUpdateChange.h epp_ContactUpdateReq.h epp_ContactUpdateRsp.h epp_ContactVoice.h epp_Credentials.h epp_DomainCheckReq.h epp_DomainCheckRsp.h epp_DomainContact.h epp_DomainCreateReq.h epp_DomainCreateRsp.h epp_DomainDeleteReq.h epp_DomainDeleteRsp.h epp_DomainInfoReq.h epp_DomainInfoRsp.h epp_DomainPeriod.h epp_DomainRenewReq.h epp_DomainRenewRsp.h epp_DomainStatus.h epp_DomainTransferReq.h epp_DomainTransferRsp.h epp_DomainUpdateAddRemove.h epp_DomainUpdateChange.h epp_DomainUpdateReq.h epp_DomainUpdateRsp.h epp_Exception.h epp_Greeting.h epp_HostAddress.h epp_HostCheckReq.h epp_HostCheckRsp.h epp_HostCreateReq.h epp_HostCreateRsp.h epp_HostDeleteReq.h epp_HostDeleteRsp.h epp_HostInfoReq.h epp_HostInfoRsp.h epp_HostStatus.h epp_HostUpdateAddRemove.h epp_HostUpdateChange.h epp_HostUpdateReq.h epp_HostUpdateRsp.h epp_LoginReq.h epp_LoginRsp.h epp_LogoutReq.h epp_LogoutRsp.h epp_Options.h epp_PollContactTransfer.h epp_PollDomainTransfer.h epp_PollReq.h epp_PollResData.h epp_PollResDataUnion.h epp_PollRsp.h epp_Response.h epp_Result.h epp_Service.h epp_TransID.h epp_TransferRequest.h epp_XMLException.h epp_contactXMLbase.cc epp_contactXMLbase.h epp_contactdata.h epp_domainXMLbase.cc epp_domainXMLbase.h epp_domaindata.h epp_eppXMLbase.cc epp_eppXMLbase.h epp_eppdata.h epp_hostXMLbase.cc epp_hostXMLbase.h epp_hostdata.h Added Files: Tag: epp-0402 epp_GenericCheckRsp.h epp_GenericReq.h epp_GenericRsp.h epp_MessageQueue.h Log Message: Back-merging main branch C++ code changes into epp-0402 --- NEW FILE: epp_GenericCheckRsp.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_GENERICCHECKRSP_H #define __EPP_GENERICCHECKRSP_H /** @file epp_GenericCheckRsp.h * @brief Definition of epp_GenericCheckRsp and epp_GenericCheckRsp_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_GenericRsp.h" #include "epp_CheckResult.h" namespace eppobject { namespace epp { /// Class containing the generic/common elements of the server response to a <check> command /// @see epp_GenericRsp for additional information class epp_GenericCheckRsp : public epp_GenericRsp { public: epp_check_result_seq_ref m_results; /**< Generic <check> response sequence */ /// Null constructor epp_GenericCheckRsp() {}; /// Destructor virtual ~epp_GenericCheckRsp() {} /// Constructor epp_GenericCheckRsp(epp_Response_ref _m_rsp, epp_check_result_seq_ref _m_results) : epp_GenericRsp(_m_rsp) { m_results = _m_results; }; }; /// Typedef for the ref to the epp_GenericCheckRsp class typedef refcnt_ptr<epp_GenericCheckRsp> epp_GenericCheckRsp_ref; }}; #endif --- NEW FILE: epp_GenericReq.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_GENERICREQ_H #define __EPP_GENERICREQ_H /** @file epp_GenericReq.h * @brief Definition of epp_GenericReq and epp_GenericReq_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_Command.h" namespace eppobject { namespace epp { /// Class containing the generic and common elements of a client request class epp_GenericReq { public: epp_Command_ref m_cmd; /**< Generic request element */ /// Null constructor epp_GenericReq() {}; /// Destructor virtual ~epp_GenericReq() {}; /// Constructor epp_GenericReq(epp_Command_ref _m_cmd) { m_cmd = _m_cmd; }; }; /// Typedef for the ref to the epp_GenericReq class typedef refcnt_ptr<epp_GenericReq> epp_GenericReq_ref; }}; #endif --- NEW FILE: epp_GenericRsp.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_GENERICRSP_H #define __EPP_GENERICRSP_H /** @file epp_GenericRsp.h * @brief Definition of epp_GenericRsp and epp_GenericRsp_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_Response.h" namespace eppobject { namespace epp { /// Class containing the generic and common elements of a server response class epp_GenericRsp { public: epp_Response_ref m_rsp; /**< Generic response element */ /// Null constructor epp_GenericRsp() {}; /// Destructor virtual ~epp_GenericRsp() {}; /// Constructor epp_GenericRsp(epp_Response_ref _m_rsp) { m_rsp = _m_rsp; }; }; /// Typedef for the ref to the epp_GenericRsp class typedef refcnt_ptr<epp_GenericRsp> epp_GenericRsp_ref; }}; #endif --- NEW FILE: epp_MessageQueue.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_MESSAGEQUEUE_H #define __EPP_MESSAGEQUEUE_H /** @file epp_MessageQueue.h * @brief Definition of epp_MessageQueue and epp_MessageQueue_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_eppdata.h" namespace eppobject { namespace epp { /// Class containing information about service messages queued for client retrieval class epp_MessageQueue { public: epp_long_ref m_count; /**< Number of service messages queued for client retrieval */ epp_datetime_ref m_queue_date; /**< Date and time that a particular message was enqueued */ /// Null constructor epp_MessageQueue() {}; /// Destructor virtual ~epp_MessageQueue() {} /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL epp_MessageQueue(epp_long _m_count, epp_datetime _m_queue_date) { m_count.ref(new epp_long(_m_count)); m_queue_date.ref(new epp_datetime(_m_queue_date)); }; /// Constructor, using only references epp_MessageQueue(epp_long_ref _m_count, epp_datetime_ref _m_queue_date) { m_count = _m_count; m_queue_date = _m_queue_date; }; }; /// Typedef for the ref to the epp_MessageQueue classe typedef refcnt_ptr<epp_MessageQueue> epp_MessageQueue_ref; }}; #endif Index: epp_AuthInfo.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_AuthInfo.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_AuthInfo.h 5 Jul 2001 15:20:44 -0000 1.4 --- epp_AuthInfo.h 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,48 **** #define __EPP_AUTHINFO_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_AuthInfo { - public: ! epp_AuthInfoType_ref m_type; ! epp_roid_ref m_roid; ! epp_string_ref m_value; epp_AuthInfo() {}; virtual ~epp_AuthInfo() {}; ! // Note: Cannot set simple types to NULL epp_AuthInfo(epp_AuthInfoType _m_type, epp_roid _m_roid, --- 29,57 ---- #define __EPP_AUTHINFO_H + /** @file epp_AuthInfo.h + * @brief Definition of epp_AuthInfo and epp_AuthInfo_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing authorization information associated with an object class epp_AuthInfo { ! public: ! epp_AuthInfoType_ref m_type; /**< Authorization information type */ ! epp_roid_ref m_roid; /**< Repository object ID of associated contact object */ ! epp_string_ref m_value; /**< Authorization string/passphrase */ + /// Null constructor epp_AuthInfo() {}; + /// Destructor virtual ~epp_AuthInfo() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_AuthInfo(epp_AuthInfoType _m_type, epp_roid _m_roid, *************** *** 54,58 **** }; ! epp_AuthInfo(epp_AuthInfoType_ref _m_type, epp_roid_ref _m_roid, --- 63,67 ---- }; ! /// Constructor, using only references epp_AuthInfo(epp_AuthInfoType_ref _m_type, epp_roid_ref _m_roid, *************** *** 65,68 **** --- 74,78 ---- }; + /// Typedef for the ref to the epp_AuthInfo class typedef refcnt_ptr<epp_AuthInfo> epp_AuthInfo_ref; Index: epp_CheckResult.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_CheckResult.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_CheckResult.h 5 Jul 2001 15:20:44 -0000 1.4 --- epp_CheckResult.h 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,47 **** #define __EPP_CHECKRESULT_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_CheckResult { - public: ! epp_boolean_ref m_exists; ! epp_string_ref m_value; epp_CheckResult() {}; virtual ~epp_CheckResult() {}; ! // Note: Cannot set simple types to NULL epp_CheckResult(epp_boolean _m_exists, epp_string _m_value) --- 29,56 ---- #define __EPP_CHECKRESULT_H + /** @file epp_CheckResult.h + * @brief Definition of epp_CheckResult and epp_CheckResult_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing the true/false response of object check queries class epp_CheckResult { ! public: ! epp_boolean_ref m_exists; /**< Boolean value indicating whether an object is known to the server or not */ ! epp_string_ref m_value; /**< Fully qualified names for the queried objects */ + /// Null constructor epp_CheckResult() {}; + /// Destructor virtual ~epp_CheckResult() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_CheckResult(epp_boolean _m_exists, epp_string _m_value) *************** *** 51,55 **** }; ! epp_CheckResult(epp_boolean_ref _m_exists, epp_string_ref _m_value) --- 60,64 ---- }; ! /// Constructor, using only references epp_CheckResult(epp_boolean_ref _m_exists, epp_string_ref _m_value) *************** *** 60,63 **** --- 69,73 ---- }; + /// Typedef for the ref to the epp_CheckResult class typedef refcnt_ptr<epp_CheckResult> epp_CheckResult_ref; Index: epp_Command.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Command.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_Command.h 5 Jul 2001 15:20:44 -0000 1.4 --- epp_Command.h 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,32 **** --- 29,38 ---- #define __EPP_COMMAND_H + /** @file epp_Command.h + * @brief Definition of epp_Command and epp_Command_ref + * @author Asbjorn Steira Mikkelsen + */ + + #include "epp_eppdata.h" #include "epp_Credentials.h" *************** *** 35,50 **** namespace eppobject { namespace epp { class epp_Command { - public: ! epp_Credentials_ref m_creds; ! epp_Unspec_ref m_unspec; ! epp_trid_ref m_client_trid; epp_Command() {}; virtual ~epp_Command() {}; ! // Note: Cannot set simple types to NULL epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, --- 41,60 ---- namespace eppobject { namespace epp { + /// Class containing generic elements used in a request to the server class epp_Command { ! public: ! epp_Credentials_ref m_creds; /**< Client identity credentials element that provides client identity information */ ! epp_Unspec_ref m_unspec; /**< Unspecified element used for server-defined command extensions */ ! epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client */ + /// Null constructor epp_Command() {}; + /// Destructor virtual ~epp_Command() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, *************** *** 56,60 **** }; ! epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, --- 66,70 ---- }; ! /// Constructor, using only references epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, *************** *** 67,70 **** --- 77,81 ---- }; + /// Typedef for the ref to the epp_Result class typedef refcnt_ptr<epp_Command> epp_Command_ref; Index: epp_ContactAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactAddress.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactAddress.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactAddress.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,52 **** #define __EPP_CONTACTADDRESS_H #include "epp_contactdata.h" namespace eppobject { namespace contact { class epp_ContactAddress { - public: ! eppobject::epp::epp_string_ref m_street1; ! eppobject::epp::epp_string_ref m_street2; ! eppobject::epp::epp_string_ref m_street3; ! eppobject::epp::epp_string_ref m_city; ! eppobject::epp::epp_string_ref m_state_province; ! eppobject::epp::epp_string_ref m_postal_code; ! eppobject::epp::epp_string_ref m_country_code; epp_ContactAddress() {}; virtual ~epp_ContactAddress() {}; ! // Note: Cannot set simple types to NULL epp_ContactAddress(eppobject::epp::epp_string _m_street1, eppobject::epp::epp_string _m_street2, --- 29,61 ---- #define __EPP_CONTACTADDRESS_H + /** @file epp_ContactAddress.h + * @brief Definition of epp_ContactAddress and epp_ContactAddress_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" namespace eppobject { namespace contact { + /// Class containing elements used to describe the address of a contact class epp_ContactAddress { ! public: ! eppobject::epp::epp_string_ref m_street1; /**< Line 1 of contact street address */ ! eppobject::epp::epp_string_ref m_street2; /**< Line 2 of contact street address */ ! eppobject::epp::epp_string_ref m_street3; /**< Line 3 of contact street address */ ! eppobject::epp::epp_string_ref m_city; /**< Contact city */ ! eppobject::epp::epp_string_ref m_state_province; /**< Contact state/province */ ! eppobject::epp::epp_string_ref m_postal_code; /**< Contact postal code */ ! eppobject::epp::epp_string_ref m_country_code; /**< Contact country code (iso3166) */ + /// Null constructor epp_ContactAddress() {}; + /// Destructor virtual ~epp_ContactAddress() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactAddress(eppobject::epp::epp_string _m_street1, eppobject::epp::epp_string _m_street2, *************** *** 66,70 **** }; ! epp_ContactAddress(eppobject::epp::epp_string_ref _m_street1, eppobject::epp::epp_string_ref _m_street2, --- 75,79 ---- }; ! /// Constructor, using only references epp_ContactAddress(eppobject::epp::epp_string_ref _m_street1, eppobject::epp::epp_string_ref _m_street2, *************** *** 84,88 **** }; }; ! typedef refcnt_ptr<epp_ContactAddress> epp_ContactAddress_ref; --- 93,98 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactAddress class typedef refcnt_ptr<epp_ContactAddress> epp_ContactAddress_ref; Index: epp_ContactCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCheckReq.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactCheckReq.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactCheckReq.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,55 **** #define __EPP_CONTACTCHECKREQ_H ! #include "epp_Command.h" #include "epp_contactdata.h" namespace eppobject { namespace contact { ! ! class epp_ContactCheckReq { ! public: ! eppobject::epp::epp_Command_ref m_cmd; ! eppobject::epp::epp_roid_seq_ref m_roids; epp_ContactCheckReq() {}; virtual ~epp_ContactCheckReq() {} ! epp_ContactCheckReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_roid_seq_ref _m_roids) { ! m_cmd = _m_cmd; ! m_roids = _m_roids; }; }; typedef refcnt_ptr<epp_ContactCheckReq> epp_ContactCheckReq_ref; --- 29,65 ---- #define __EPP_CONTACTCHECKREQ_H ! /** @file epp_ContactCheckReq.h ! * @brief Definition of epp_ContactCheckReq and epp_ContactCheckReq_ref ! * @author Asbjorn Steira Mikkelsen ! */ ! ! #include "epp_GenericReq.h" #include "epp_contactdata.h" namespace eppobject { namespace contact { ! ! /// Class containing all elements used in contact check requests ! /// @see epp_GenericReq for additional information ! class epp_ContactCheckReq : public epp::epp_GenericReq { ! public: ! eppobject::epp::epp_string_seq_ref m_ids; /**< Server-unique ID of the contact objects to be queried */ + /// Null constructor epp_ContactCheckReq() {}; + /// Destructor virtual ~epp_ContactCheckReq() {} ! ! /// Constructor epp_ContactCheckReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string_seq_ref _m_ids) ! : epp::epp_GenericReq(_m_cmd) { ! m_ids = _m_ids; }; }; + /// Typedef for the ref to the epp_ContactCheckReq class typedef refcnt_ptr<epp_ContactCheckReq> epp_ContactCheckReq_ref; Index: epp_ContactCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCheckRsp.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactCheckRsp.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactCheckRsp.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,55 **** #define __EPP_CONTACTCHECKRSP_H ! #include "epp_contactdata.h" ! #include "epp_Response.h" #include "epp_CheckResult.h" namespace eppobject { namespace contact { ! class epp_ContactCheckRsp { public: - eppobject::epp::epp_Response_ref m_rsp; - eppobject::epp::epp_check_result_seq_ref m_results; epp_ContactCheckRsp() {}; ! virtual ~epp_ContactCheckRsp() {} epp_ContactCheckRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_check_result_seq_ref _m_results) ! { ! m_rsp = _m_rsp; ! m_results = _m_results; ! }; }; typedef refcnt_ptr<epp_ContactCheckRsp> epp_ContactCheckRsp_ref; --- 29,63 ---- #define __EPP_CONTACTCHECKRSP_H ! /** @file epp_ContactCheckRsp.h ! * @brief Definition of epp_ContactCheckRsp and epp_ContactCheckRsp_ref ! * @author Asbjorn Steira Mikkelsen ! */ ! ! #include "epp_GenericCheckRsp.h" #include "epp_CheckResult.h" namespace eppobject { namespace contact { ! /// Class containing all elements used in contact check responses ! /// @see epp_GenericCheckRsp for additional information ! class epp_ContactCheckRsp : public epp::epp_GenericCheckRsp { ! public: + /// Null constructor epp_ContactCheckRsp() {}; ! ! /// Destructor virtual ~epp_ContactCheckRsp() {} + /// Constructor epp_ContactCheckRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_check_result_seq_ref _m_results) ! : epp::epp_GenericCheckRsp(_m_rsp, _m_results) {}; ! ! }; + /// Typedef for the ref to the epp_ContactCheckRsp class typedef refcnt_ptr<epp_ContactCheckRsp> epp_ContactCheckRsp_ref; Index: epp_ContactCreateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCreateReq.h,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_ContactCreateReq.h 7 Feb 2002 18:12:54 -0000 1.6 --- epp_ContactCreateReq.h 23 Feb 2002 04:36:05 -0000 1.6.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 30,34 **** #include "epp_contactdata.h" ! #include "epp_Command.h" #include "epp_ContactNameAddress.h" #include "epp_ContactPhone.h" --- 30,34 ---- #include "epp_contactdata.h" ! #include "epp_GenericReq.h" #include "epp_ContactNameAddress.h" #include "epp_ContactPhone.h" *************** *** 37,44 **** namespace eppobject { namespace contact { ! class epp_ContactCreateReq { ! public: ! eppobject::epp::epp_Command_ref m_cmd; epp_ContactNameAddress_ref m_ascii_address; epp_ContactNameAddress_ref m_i15d_address; --- 37,44 ---- namespace eppobject { namespace contact { ! class epp_ContactCreateReq : public epp::epp_GenericReq { ! public: ! eppobject::epp::epp_string_ref m_id; epp_ContactNameAddress_ref m_ascii_address; epp_ContactNameAddress_ref m_i15d_address; *************** *** 54,57 **** --- 54,58 ---- // Note: Cannot set simple types to NULL epp_ContactCreateReq(eppobject::epp::epp_Command_ref _m_cmd, + eppobject::epp::epp_string _m_id, epp_ContactNameAddress_ref _m_ascii_address, epp_ContactNameAddress_ref _m_i15d_address, *************** *** 60,65 **** eppobject::epp::epp_string _m_email, eppobject::epp::epp_AuthInfo_ref _m_auth_info) { ! m_cmd = _m_cmd; m_ascii_address = _m_ascii_address; m_i15d_address = _m_i15d_address; --- 61,67 ---- eppobject::epp::epp_string _m_email, eppobject::epp::epp_AuthInfo_ref _m_auth_info) + : epp::epp_GenericReq(_m_cmd) { ! m_id.ref(new eppobject::epp::epp_string(_m_id)); m_ascii_address = _m_ascii_address; m_i15d_address = _m_i15d_address; *************** *** 72,75 **** --- 74,78 ---- epp_ContactCreateReq(eppobject::epp::epp_Command_ref _m_cmd, + eppobject::epp::epp_string_ref _m_id, epp_ContactNameAddress_ref _m_ascii_address, epp_ContactNameAddress_ref _m_i15d_address, *************** *** 78,83 **** eppobject::epp::epp_string_ref _m_email, eppobject::epp::epp_AuthInfo_ref _m_auth_info) { ! m_cmd = _m_cmd; m_ascii_address = _m_ascii_address; m_i15d_address = _m_i15d_address; --- 81,87 ---- eppobject::epp::epp_string_ref _m_email, eppobject::epp::epp_AuthInfo_ref _m_auth_info) + : epp::epp_GenericReq(_m_cmd) { ! m_id = _m_id; m_ascii_address = _m_ascii_address; m_i15d_address = _m_i15d_address; Index: epp_ContactCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCreateRsp.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactCreateRsp.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactCreateRsp.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 30,60 **** #include "epp_contactdata.h" ! #include "epp_Response.h" namespace eppobject { namespace contact { ! class epp_ContactCreateRsp { public: ! eppobject::epp::epp_Response_ref m_rsp; ! eppobject::epp::epp_roid_ref m_roid; epp_ContactCreateRsp() {}; ! virtual ~epp_ContactCreateRsp() {} // Note: Cannot set simple types to NULL epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_roid _m_roid) { ! m_rsp = _m_rsp; ! m_roid.ref(new eppobject::epp::epp_roid(_m_roid)); }; epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_roid_ref _m_roid) { ! m_rsp = _m_rsp; ! m_roid = _m_roid; }; }; --- 30,60 ---- #include "epp_contactdata.h" ! #include "epp_GenericRsp.h" namespace eppobject { namespace contact { ! class epp_ContactCreateRsp : public epp::epp_GenericRsp { ! public: ! eppobject::epp::epp_string_ref m_id; epp_ContactCreateRsp() {}; ! virtual ~epp_ContactCreateRsp() {}; // Note: Cannot set simple types to NULL epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string _m_id) ! : epp::epp_GenericRsp(_m_rsp) { ! m_id.ref(new eppobject::epp::epp_string(_m_id)); }; epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, ! eppobject::epp::epp_string_ref _m_id) ! : epp::epp_GenericRsp(_m_rsp) { ! m_id = _m_id; }; }; Index: epp_ContactDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactDeleteReq.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactDeleteReq.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactDeleteReq.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,64 **** #define __EPP_CONTACTDELETEREQ_H #include "epp_contactdata.h" ! #include "epp_Command.h" namespace eppobject { namespace contact { ! class epp_ContactDeleteReq { ! public: ! eppobject::epp::epp_Command_ref m_cmd; ! eppobject::epp::epp_roid_ref m_roid; epp_ContactDeleteReq() {}; virtual ~epp_ContactDeleteReq() {} ! // Note: Cannot set simple types to NULL epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_roid _m_roid) { ! m_cmd = _m_cmd; ! m_roid.ref(new eppobject::epp::epp_roid(_m_roid)); }; ! epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_roid_ref _m_roid) { ! m_cmd = _m_cmd; ! m_roid = _m_roid; }; }; ! typedef refcnt_ptr<epp_ContactDeleteReq> epp_ContactDeleteReq_ref; --- 29,75 ---- #define __EPP_CONTACTDELETEREQ_H + /** @file epp_ContactDeleteReq.h + * @brief Definition of epp_ContactDeleteReq and epp_ContactDeleteReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" ! #include "epp_GenericReq.h" namespace eppobject { namespace contact { ! /// Class containing all elements used in contact delete requests ! /// @see epp_GenericReq for additional information ! class epp_ContactDeleteReq : public epp::epp_GenericReq { ! public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique ID of the contact object to delete */ + /// Null constructor epp_ContactDeleteReq() {}; + /// Destructor virtual ~epp_ContactDeleteReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string _m_id) ! : epp::epp_GenericReq(_m_cmd) { ! m_id.ref(new eppobject::epp::epp_string(_m_id)); }; ! /// Constructor, using only references epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string_ref _m_id) ! : epp::epp_GenericReq(_m_cmd) { ! m_id = _m_id; }; + }; ! ! /// Typedef for the ref to the epp_ContactDeleteReq class typedef refcnt_ptr<epp_ContactDeleteReq> epp_ContactDeleteReq_ref; Index: epp_ContactDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactDeleteRsp.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactDeleteRsp.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactDeleteRsp.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,50 **** #define __EPP_CONTACTDELETERSP_H ! #include "epp_Response.h" namespace eppobject { namespace contact { ! class epp_ContactDeleteRsp { ! public: ! eppobject::epp::epp_Response_ref m_rsp; epp_ContactDeleteRsp() {}; ! virtual ~epp_ContactDeleteRsp() {} ! epp_ContactDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) ! { ! m_rsp = _m_rsp; ! }; }; ! typedef refcnt_ptr<epp_ContactDeleteRsp> epp_ContactDeleteRsp_ref; --- 29,60 ---- #define __EPP_CONTACTDELETERSP_H ! /** @file epp_ContactDeleteRsp.h ! * @brief Definition of epp_ContactDeleteRsp and epp_ContactDeleteRsp_ref ! * @author Asbjorn Steira Mikkelsen ! */ ! ! #include "epp_GenericRsp.h" namespace eppobject { namespace contact { ! /// Class containing all elements used in contact delete responses ! /// @see epp_GenericRsp for additional information ! class epp_ContactDeleteRsp : public epp::epp_GenericRsp { + public: + + /// Null constructor epp_ContactDeleteRsp() {}; ! /// Destructor ! virtual ~epp_ContactDeleteRsp() {}; ! ! /// Constructor epp_ContactDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) ! : epp::epp_GenericRsp(_m_rsp) {}; ! }; ! ! /// Typedef for the ref to the epp_ContactDeleteRsp class typedef refcnt_ptr<epp_ContactDeleteRsp> epp_ContactDeleteRsp_ref; Index: epp_ContactInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoReq.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactInfoReq.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactInfoReq.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,64 **** #define __EPP_CONTACTINFOREQ_H #include "epp_contactdata.h" ! #include "epp_Command.h" namespace eppobject { namespace contact { ! class epp_ContactInfoReq { ! public: ! eppobject::epp::epp_Command_ref m_cmd; ! eppobject::epp::epp_roid_ref m_roid; epp_ContactInfoReq() {}; virtual ~epp_ContactInfoReq() {} ! // Note: Cannot set simple types to NULL epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_roid _m_roid) { ! m_cmd = _m_cmd; ! m_roid.ref(new eppobject::epp::epp_roid(_m_roid)); }; ! epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_roid_ref _m_roid) { ! m_cmd = _m_cmd; ! m_roid = _m_roid; }; }; ! typedef refcnt_ptr<epp_ContactInfoReq> epp_ContactInfoReq_ref; --- 29,73 ---- #define __EPP_CONTACTINFOREQ_H + /** @file epp_ContactInfoReq.h + * @brief Definition of epp_ContactInfoReq and epp_ContactInfoReq_ref + * @author Asbjorn Steira Mikkelsen + */ #include "epp_contactdata.h" ! #include "epp_GenericReq.h" namespace eppobject { namespace contact { ! /// Class containing all elements used in contact info requests ! /// @see epp_GenericReq for additional information ! class epp_ContactInfoReq : public epp::epp_GenericReq { ! public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique ID of the contact object to be queried */ + /// Null constructor epp_ContactInfoReq() {}; + /// Destructor virtual ~epp_ContactInfoReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string _m_id) ! : epp::epp_GenericReq(_m_cmd) { ! m_id.ref(new eppobject::epp::epp_string(_m_id)); }; ! /// Constructor, using only references epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, ! eppobject::epp::epp_string_ref _m_id) ! : epp::epp_GenericReq(_m_cmd) { ! m_id = _m_id; }; }; ! ! /// Typedef for the ref to the epp_ContactInfoReq class typedef refcnt_ptr<epp_ContactInfoReq> epp_ContactInfoReq_ref; Index: epp_ContactInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoRsp.h,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_ContactInfoRsp.h 7 Feb 2002 18:12:55 -0000 1.6 --- epp_ContactInfoRsp.h 23 Feb 2002 04:36:05 -0000 1.6.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 30,34 **** #include "epp_contactdata.h" ! #include "epp_Response.h" #include "epp_ContactNameAddress.h" #include "epp_ContactPhone.h" --- 30,34 ---- #include "epp_contactdata.h" ! #include "epp_GenericRsp.h" #include "epp_ContactNameAddress.h" #include "epp_ContactPhone.h" *************** *** 38,44 **** namespace eppobject { namespace contact { ! class epp_ContactInfoRsp { public: ! eppobject::epp::epp_Response_ref m_rsp; eppobject::epp::epp_roid_ref m_roid; epp_ContactNameAddress_ref m_ascii_address; --- 38,44 ---- namespace eppobject { namespace contact { ! class epp_ContactInfoRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_id; eppobject::epp::epp_roid_ref m_roid; epp_ContactNameAddress_ref m_ascii_address; *************** *** 51,55 **** eppobject::epp::epp_string_ref m_created_by; eppobject::epp::epp_datetime_ref m_created_date; - eppobject::epp::epp_datetime_ref m_expiration_date; //<FIXME>Should not be here</fixme> eppobject::epp::epp_string_ref m_updated_by; eppobject::epp::epp_datetime_ref m_updated_date; --- 51,54 ---- *************** *** 64,67 **** --- 63,67 ---- // Note: Cannot set simple types to NULL epp_ContactInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, + eppobject::epp::epp_string _m_id, eppobject::epp::epp_roid _m_roid, epp_ContactNameAddress_ref _m_ascii_address, *************** *** 74,84 **** eppobject::epp::epp_string _m_created_by, eppobject::epp::epp_datetime _m_created_date, - eppobject::epp::epp_datetime _m_expiration_date, eppobject::epp::epp_string _m_updated_by, eppobject::epp::epp_datetime _m_updated_date, eppobject::epp::epp_datetime _m_transfer_date, eppobject::epp::epp_AuthInfo_ref _m_auth_info) { ! m_rsp = _m_rsp; m_roid.ref(new eppobject::epp::epp_roid(_m_roid)); m_ascii_address = _m_ascii_address; --- 74,84 ---- eppobject::epp::epp_string _m_created_by, eppobject::epp::epp_datetime _m_created_date, eppobject::epp::epp_string _m_updated_by, eppobject::epp::epp_datetime _m_updated_date, eppobject::epp::epp_datetime _m_transfer_date, eppobject::epp::epp_AuthInfo_ref _m_auth_info) + : epp::epp_GenericRsp(_m_rsp) { ! m_id.ref(new eppobject::epp::epp_string(_m_id)); m_roid.ref(new eppobject::epp::epp_roid(_m_roid)); m_ascii_address = _m_ascii_address; *************** *** 91,95 **** m_created_by.ref(new eppobject::epp::epp_string(_m_created_by)); m_created_date.ref(new eppobject::epp::epp_datetime(_m_created_date)); - m_expiration_date.ref(new eppobject::epp::epp_datetime(_m_expiration_date)); m_updated_by.ref(new eppobject::epp::epp_string(_m_updated_by)); m_updated_date.ref(new eppobject::epp::epp_datetime(_m_updated_date)); --- 91,94 ---- *************** *** 100,103 **** --- 99,103 ---- epp_ContactInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, + eppobject::epp::epp_string_ref _m_id, eppobject::epp::epp_roid_ref _m_roid, epp_ContactNameAddress_ref _m_ascii_address, *************** *** 110,120 **** eppobject::epp::epp_string_ref _m_created_by, eppobject::epp::epp_datetime_ref _m_created_date, - eppobject::epp::epp_datetime_ref _m_expiration_date, eppobject::epp::epp_string_ref _m_updated_by, eppobject::epp::epp_datetime_ref _m_updated_date, eppobject::epp::epp_datetime_ref _m_transfer_date, eppobject::epp::epp_AuthInfo_ref _m_auth_info) { ! m_rsp = _m_rsp; m_roid = _m_roid; m_ascii_address = _m_ascii_address; --- 110,120 ---- eppobject::epp::epp_string_ref _m_created_by, eppobject::epp::epp_datetime_ref _m_created_date, eppobject::epp::epp_string_ref _m_updated_by, eppobject::epp::epp_datetime_ref _m_updated_date, eppobject::epp::epp_datetime_ref _m_transfer_date, eppobject::epp::epp_AuthInfo_ref _m_auth_info) + : epp::epp_GenericRsp(_m_rsp) { ! m_id = _m_id; m_roid = _m_roid; m_ascii_address = _m_ascii_address; *************** *** 127,131 **** m_created_by = _m_created_by; m_created_date = _m_created_date; - m_expiration_date = _m_expiration_date; m_updated_by = _m_updated_by; m_updated_date = _m_updated_date; --- 127,130 ---- Index: epp_ContactNameAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactNameAddress.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactNameAddress.h 9 Jul 2001 14:17:18 -0000 1.5 --- epp_ContactNameAddress.h 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTNAMEADDRESS_H + /** @file epp_ContactNameAddress.h + * @brief Definition of epp_ContactNameAddress and epp_ContactNameAddress_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_ContactAddress.h" *************** *** 34,49 **** namespace eppobject { namespace contact { class epp_ContactNameAddress { - public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_string_ref m_org; ! epp_ContactAddress_ref m_address; epp_ContactNameAddress() {}; virtual ~epp_ContactNameAddress() {}; ! // Note: Cannot set simple types to NULL epp_ContactNameAddress(eppobject::epp::epp_string _m_name, eppobject::epp::epp_string _m_org, --- 39,58 ---- namespace eppobject { namespace contact { + /// Class containing elements used to describe the name and address of a contact class epp_ContactNameAddress { ! public: ! eppobject::epp::epp_string_ref m_name; /**< Name of the contact */ ! eppobject::epp::epp_string_ref m_org; /**< Organization associated with the contact */ ! epp_ContactAddress_ref m_address; /**< Address associated with the contact */ + /// Null constructor epp_ContactNameAddress() {}; + /// Destructor virtual ~epp_ContactNameAddress() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactNameAddress(eppobject::epp::epp_string _m_name, eppobject::epp::epp_string _m_org, *************** *** 55,59 **** }; ! epp_ContactNameAddress(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_string_ref _m_org, --- 64,68 ---- }; ! /// Constructor, using only references epp_ContactNameAddress(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_string_ref _m_org, *************** *** 65,69 **** }; }; ! typedef refcnt_ptr<epp_ContactNameAddress> epp_ContactNameAddress_ref; --- 74,79 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactNameAddress class typedef refcnt_ptr<epp_ContactNameAddress> epp_ContactNameAddress_ref; Index: epp_ContactPhone.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactPhone.h,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** epp_ContactPhone.h 7 Feb 2002 18:12:55 -0000 1.1 --- epp_ContactPhone.h 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,47 **** #define __EPP_CONTACTPHONE_H #include "epp_contactdata.h" namespace eppobject { namespace contact { class epp_ContactPhone { - public: - - eppobject::epp::epp_string_ref m_extension; - eppobject::epp::epp_string_ref m_value; epp_ContactPhone() {}; virtual ~epp_ContactPhone() {}; ! // Note: Cannot set simple types to NULL epp_ContactPhone(eppobject::epp::epp_string _m_extension, eppobject::epp::epp_string _m_value) --- 29,56 ---- #define __EPP_CONTACTPHONE_H + /** @file epp_ContactPhone.h + * @brief Definition of epp_ContactPhone and epp_ContactPhone_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" namespace eppobject { namespace contact { + /// Class containing elements used to describe a Contact Telephone/Fax Number class epp_ContactPhone { + public: + eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension */ + eppobject::epp::epp_string_ref m_value; /**< Telephone number */ + + /// Null constructor epp_ContactPhone() {}; + /// Destructor virtual ~epp_ContactPhone() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactPhone(eppobject::epp::epp_string _m_extension, eppobject::epp::epp_string _m_value) *************** *** 51,55 **** }; ! epp_ContactPhone(eppobject::epp::epp_string_ref _m_extension, eppobject::epp::epp_string_ref _m_value) --- 60,64 ---- }; ! /// Constructor, using only references epp_ContactPhone(eppobject::epp::epp_string_ref _m_extension, eppobject::epp::epp_string_ref _m_value) *************** *** 60,63 **** --- 69,73 ---- }; + /// Typedef for the ref to the epp_ContactPhone class typedef refcnt_ptr<epp_ContactPhone> epp_ContactPhone_ref; Index: epp_ContactStatus.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactStatus.h,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactSt... [truncated message content] |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv30343/src Modified Files: Tag: epp-0402 config.h epp_Action.h epp_ContactCheck.cc epp_ContactCheck.h epp_ContactCreate.cc epp_ContactCreate.h epp_ContactDelete.cc epp_ContactDelete.h epp_ContactInfo.cc epp_ContactInfo.h epp_ContactTransfer.cc epp_ContactTransfer.h epp_ContactUpdate.cc epp_ContactUpdate.h epp_DomainCheck.cc epp_DomainCheck.h epp_DomainCreate.cc epp_DomainCreate.h epp_DomainDelete.cc epp_DomainDelete.h epp_DomainInfo.cc epp_DomainInfo.h epp_DomainRenew.cc epp_DomainRenew.h epp_DomainTransfer.cc epp_DomainTransfer.h epp_DomainUpdate.cc epp_DomainUpdate.h epp_Hello.cc epp_Hello.h epp_HostCheck.cc epp_HostCheck.h epp_HostCreate.cc epp_HostCreate.h epp_HostDelete.cc epp_HostDelete.h epp_HostInfo.cc epp_HostInfo.h epp_HostUpdate.cc epp_HostUpdate.h epp_Login.cc epp_Login.h epp_Logout.cc epp_Logout.h epp_Poll.cc epp_Poll.h epp_Session.cc epp_Session.h epp_Unspec.h ltoa.h main_contactcheck.cc main_contactcreate.cc main_contactdelete.cc main_contactinfo.cc main_contacttransfer.cc main_contactupdate.cc main_domaincheck.cc main_domaincreate.cc main_domaindelete.cc main_domaininfo.cc main_domainrenew.cc main_domaintransfer.cc main_domainupdate.cc main_hello.cc main_hostcheck.cc main_hostcreate.cc main_hostdelete.cc main_hostinfo.cc main_hostupdate.cc main_login.cc main_loginunspec.cc main_logout.cc main_poll.cc testTools.cc testTools.h Log Message: Back-merging main branch C++ code changes into epp-0402 Index: config.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/config.h,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** config.h 19 Jun 2001 19:16:37 -0000 1.1 --- config.h 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_Action.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Action.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_Action.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_Action.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_ContactCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCheck.cc,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_ContactCheck.cc 9 Jul 2001 14:29:21 -0000 1.4 --- epp_ContactCheck.cc 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_ContactCheck.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_ContactCheck.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 53,57 **** { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_roids == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); --- 52,56 ---- { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_ids == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); *************** *** 73,81 **** setCommandSchemaAttributes(xml_request); ! epp::epp_string_seq names = *m_request->m_roids; for(epp::epp_string_seq::iterator i = names.begin(); i != names.end(); i++) { ! xml_request.putTag("contact:roid",*i); } --- 72,80 ---- setCommandSchemaAttributes(xml_request); ! epp::epp_string_seq names = *m_request->m_ids; for(epp::epp_string_seq::iterator i = names.begin(); i != names.end(); i++) { ! xml_request.putTag("contact:id",*i); } *************** *** 97,151 **** } ! void epp_ContactCheck::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(resNode); m_response.ref(new epp_ContactCheckRsp()); m_response->m_rsp = res; ! DOM_Node chkDataNode = getresDataInfo(resNode, "chkData"); ! if(chkDataNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); } ! DOM_NodeList cdNodes = ((DOM_Element*)&chkDataNode)->getElementsByTagNameNS(chkDataNode.getNamespaceURI(), "cd"); ! ! if(cdNodes.getLength() == 0) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find cd-element(s)"); ! } ! ! m_response->m_results.ref(new epp_check_result_seq); ! for(unsigned int i = 0; i < cdNodes.getLength(); i++) { ! DOM_Node cdNode = cdNodes.item(i); ! ! epp_CheckResult chRes; ! ! string exists; ! getAttribute(cdNode, "x", exists); ! // cout << "exists: " << exists << endl; ! if(exists == "+") ! chRes.m_exists.ref(new epp_boolean(true)); ! else ! chRes.m_exists.ref(new epp_boolean(false)); ! ! string value; ! getNodeData(cdNode, value); ! chRes.m_value.ref(new epp_string(value)); ! // cout << "value: " << *chRes.m_value << endl; ! m_response->m_results->push_back(chRes); } } --- 96,158 ---- } ! ! void epp_ContactCheck::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(responseNode); m_response.ref(new epp_ContactCheckRsp()); m_response->m_rsp = res; ! dom_ptr chkDataNode = dom_ptr(getresDataInfo(responseNode, "chkData")); ! if(chkDataNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); } ! dom_ptr chkChildNode = dom_ptr(chkDataNode->getFirstChildElement()); ! while (!chkChildNode->isNull()) { ! if(chkChildNode->getNodeName() == string(chkDataNode->getPrefix() + ":cd")) ! { ! if(m_response->m_results == NULL) ! m_response->m_results.ref(new epp_check_result_seq); ! ! epp_CheckResult chRes; ! ! string exists = chkChildNode->getAttribute("x"); ! // cout << "exists: " << exists << endl; ! if(exists == "+") ! chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") ! chRes.m_exists.ref(new epp_boolean(false)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); ! ! string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); ! // cout << "value: " << *chRes.m_value << endl; ! ! m_response->m_results->push_back(chRes); ! } // if "cd" ! chkChildNode = dom_ptr(chkChildNode->getNextSiblingElement()); } + + if(m_response->m_results == NULL) + throw epp_XMLException(__FILE__, __LINE__, "Unable to find cd-element(s)"); + } Index: epp_ContactCheck.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCheck.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_ContactCheck.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_ContactCheck.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_ContactCreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCreate.cc,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactCreate.cc 7 Feb 2002 18:19:46 -0000 1.5 --- epp_ContactCreate.cc 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_ContactCreate.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_ContactCreate.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 53,57 **** epp_string epp_ContactCreate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_ascii_address == NULL || m_request->m_email == NULL || m_request->m_auth_info == NULL) --- 52,56 ---- epp_string epp_ContactCreate::toXML() { ! if(m_request == NULL || m_request->m_cmd == NULL || m_request->m_id == NULL || m_request->m_ascii_address == NULL || m_request->m_email == NULL || m_request->m_auth_info == NULL) *************** *** 76,79 **** --- 75,80 ---- setCommandSchemaAttributes(xml_request); + xml_request.putTag("contact:id",*m_request->m_id); + addAddressElement(xml_request, m_request->m_ascii_address, "contact:ascii"); addAddressElement(xml_request, m_request->m_i15d_address, "contact:i15d"); *************** *** 128,137 **** } ! void epp_ContactCreate::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 129,140 ---- } ! ! void epp_ContactCreate::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); *************** *** 140,162 **** m_response.ref(new epp_ContactCreateRsp()); ! epp_Response_ref res = createGenericResponse(resNode); m_response->m_rsp = res; ! DOM_Node creDataNode = getresDataInfo(resNode, "creData"); ! ! if(creDataNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find creData-element"); } ! DOM_Node roidNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "roid").item(0); ! if(roidNode.isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find roid-element"); } ! ! string roid; ! getNodeData(roidNode, roid); ! m_response->m_roid.ref(new epp_roid(roid)); ! // cout << "roid: " << *m_response->m_roid << endl; } --- 143,165 ---- m_response.ref(new epp_ContactCreateRsp()); ! epp_Response_ref res = createGenericResponse(responseNode); m_response->m_rsp = res; ! dom_ptr creDataNode = dom_ptr(getresDataInfo(responseNode, "creData")); ! ! if(creDataNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find creData-element"); } + + dom_ptr creChildNode = dom_ptr(creDataNode->getFirstChildElement()); ! if(!creChildNode->isNull() && creChildNode->getNodeName() == string(creDataNode->getPrefix() + ":id")) { ! m_response->m_id.ref(new epp_string(creChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; } ! else ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find id-element"); ! } Index: epp_ContactCreate.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCreate.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_ContactCreate.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_ContactCreate.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_ContactDelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactDelete.cc,v retrieving revision 1.5 retrieving revision 1.5.2.1 diff -C2 -d -r1.5 -r1.5.2.1 *** epp_ContactDelete.cc 9 Jul 2001 14:29:21 -0000 1.5 --- epp_ContactDelete.cc 23 Feb 2002 04:36:05 -0000 1.5.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_ContactDelete.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_ContactDelete.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 54,58 **** { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_roid == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); --- 53,57 ---- { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); *************** *** 73,77 **** setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:roid",*m_request->m_roid); xml_request.endTag("contact:delete"); --- 72,76 ---- setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:id",*m_request->m_id); xml_request.endTag("contact:delete"); *************** *** 91,105 **** } ! void epp_ContactDelete::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(resNode); m_response.ref(new epp_ContactDeleteRsp(res)); --- 90,105 ---- } ! void epp_ContactDelete::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(responseNode); m_response.ref(new epp_ContactDeleteRsp(res)); Index: epp_ContactDelete.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactDelete.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_ContactDelete.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_ContactDelete.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_ContactInfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactInfo.cc,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** epp_ContactInfo.cc 7 Feb 2002 18:19:46 -0000 1.7 --- epp_ContactInfo.cc 23 Feb 2002 04:36:05 -0000 1.7.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_ContactInfo.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_ContactInfo.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 53,57 **** { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_roid == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); --- 52,56 ---- { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); *************** *** 72,76 **** setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:roid",*m_request->m_roid); xml_request.endTag("contact:info"); --- 71,75 ---- setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:id",*m_request->m_id); xml_request.endTag("contact:info"); *************** *** 90,99 **** } ! void epp_ContactInfo::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 89,100 ---- } ! ! void epp_ContactInfo::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); *************** *** 102,245 **** m_response.ref(new epp_ContactInfoRsp()); ! epp_Response_ref res = createGenericResponse(resNode); m_response->m_rsp = res; - DOM_Node infDataNode = getresDataInfo(resNode, "infData"); ! if(infDataNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find infData-element"); } - DOM_NodeList elemNodes = infDataNode.getChildNodes(); ! if(elemNodes.getLength() == 0) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Empty infData-element"); ! } ! DOMString elemPrefix = infDataNode.getPrefix(); ! // <FIXME>This might not always work in all namespaces... (host:, obj:, osv)...</fixme> ! // <FIXME>Should we check that all mandatory fields present?</fixme> ! for(unsigned int i = 0; i < elemNodes.getLength(); i++) { ! DOM_Node elNode = elemNodes.item(i); ! if(elNode.getNodeName().equals(elemPrefix + ":roid")) { ! string roid; ! getNodeData(elNode, roid); ! m_response->m_roid.ref(new epp_roid(roid)); ! // cout << "roid: " << *m_response->m_roid << endl; ! } ! //<FIXME>linked part of status in new version...</fixme> ! /* else if(elNode.getNodeName().equals(elemPrefix + ":linked")) { ! string linkedtxt; ! getNodeData(elNode, linkedtxt); ! bool linked = false; ! if(linkedtxt == "true") linked = true; ! m_response->m_linked.ref(new epp_boolean(linked)); ! cout << "linked: " << linked << endl; ! }*/ ! else if(elNode.getNodeName().equals(elemPrefix + ":status")) { ! if(m_response->m_status == NULL) ! m_response->m_status.ref(new epp_contact_status_seq); ! ! epp_ContactStatus cStatus; ! string type, lang, value; ! getAttribute(elNode, "s", type); ! getAttribute(elNode, "lang", lang); ! getNodeData(elNode, value); ! ! if(!type.empty()) ! cStatus.m_type.ref(new epp_ContactStatusType(returnStatusEnumType(type))); ! if(!lang.empty()) ! cStatus.m_lang.ref(new epp_string(lang)); ! if(!value.empty()) ! cStatus.m_value.ref(new epp_string(value)); ! ! m_response->m_status->push_back(cStatus); ! // cout << "status: " << type << ", " << lang << ", " << value << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":ascii")) { ! m_response->m_ascii_address.ref(new epp_ContactNameAddress(parseAddress(elNode))); ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":i15d")) { ! m_response->m_i15d_address.ref(new epp_ContactNameAddress(parseAddress(elNode))); ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":voice")) { ! ! m_response->m_voice.ref(new epp_ContactPhone()); ! string extension, value; ! getAttribute(elNode, "x", extension); ! getNodeData(elNode, value); ! ! if(!extension.empty()) ! m_response->m_voice->m_extension.ref(new epp_string(extension)); ! if(!value.empty()) ! m_response->m_voice->m_value.ref(new epp_string(value)); ! // cout << "voice: " << extension << ", " << value << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":fax")) { ! m_response->m_fax.ref(new epp_ContactPhone()); ! string extension, value; ! getAttribute(elNode, "x", extension); ! getNodeData(elNode, value); ! ! if(!extension.empty()) ! m_response->m_fax->m_extension.ref(new epp_string(extension)); ! if(!value.empty()) ! m_response->m_fax->m_value.ref(new epp_string(value)); // cout << "fax: " << extension << ", " << value << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":email")) { ! string email; ! getNodeData(elNode, email); ! m_response->m_email.ref(new epp_string(email)); ! // cout << "email: " << *m_response->m_email << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":clID")) { ! string clID; ! getNodeData(elNode, clID); ! m_response->m_client_id.ref(new epp_string(clID)); ! // cout << "clID: " << *m_response->m_client_id << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":crID")) { ! string crID; ! getNodeData(elNode, crID); ! m_response->m_created_by.ref(new epp_string(crID)); ! // cout << "crID: " << *m_response->m_created_by << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":crDate")) { ! string crDate; ! getNodeData(elNode, crDate); ! m_response->m_created_date.ref(new epp_datetime(crDate)); ! // cout << "crDate: " << *m_response->m_created_date << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":upID")) { ! string upID; ! getNodeData(elNode, upID); ! m_response->m_updated_by.ref(new epp_string(upID)); ! // cout << "upID: " << *m_response->m_updated_by << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":upDate")) { ! string upDate; ! getNodeData(elNode, upDate); ! m_response->m_updated_date.ref(new epp_datetime(upDate)); ! // cout << "upDate: " << *m_response->m_updated_date << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":trDate")) { ! string trDate; ! getNodeData(elNode, trDate); ! m_response->m_transfer_date.ref(new epp_datetime(trDate)); ! // cout << "trDate: " << *m_response->m_transfer_date << endl; ! } ! else if(elNode.getNodeName().equals(elemPrefix + ":authInfo")) { ! m_response->m_auth_info = createAuthInfoObject(elNode); ! } ! } } --- 103,261 ---- m_response.ref(new epp_ContactInfoRsp()); ! epp_Response_ref res = createGenericResponse(responseNode); m_response->m_rsp = res; ! dom_ptr infDataNode = dom_ptr(getresDataInfo(responseNode, "infData")); ! if(infDataNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find infData-element"); } ! dom_ptr infChildNode = dom_ptr(infDataNode->getFirstChildElement()); ! if(infChildNode->isNull()) ! throw epp_XMLException(__FILE__, __LINE__, "Empty infData-element"); ! string elemPrefix = infDataNode->getPrefix(); ! ! while(!infChildNode->isNull()) { ! string nodeName = infChildNode->getNodeName(); ! if(nodeName == string(elemPrefix + ":roid")) ! { ! m_response->m_roid.ref(new epp_roid(infChildNode->getNodeData())); ! // cout << "roid: " << *m_response->m_roid << endl; ! } // if "roid" ! else if(nodeName == string(elemPrefix + ":id")) ! { ! m_response->m_id.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":status")) ! { ! if(m_response->m_status == NULL) ! m_response->m_status.ref(new epp_contact_status_seq); ! ! epp_ContactStatus cStatus; ! string type = infChildNode->getAttribute("s"); ! if(!type.empty()) { ! try { ! cStatus.m_type.ref(new epp_ContactStatusType(returnStatusEnumType(type))); ! } ! catch(...) { ! throw epp_XMLException(__FILE__, __LINE__, "Unknown StatusType in response"); ! } ! } ! ! string lang = infChildNode->getAttribute("lang"); ! if(!lang.empty()) ! cStatus.m_lang.ref(new epp_string(lang)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! cStatus.m_value.ref(new epp_string(value)); ! ! m_response->m_status->push_back(cStatus); ! // cout << "status: " << type << ", " << lang << ", " << value << endl; ! } // if "status" ! ! else if(nodeName == string(elemPrefix + ":ascii")) ! { ! m_response->m_ascii_address.ref(new epp_ContactNameAddress(parseAddress(infChildNode))); ! } // if "ascii" ! ! else if(nodeName == string(elemPrefix + ":i15d")) ! { ! m_response->m_i15d_address.ref(new epp_ContactNameAddress(parseAddress(infChildNode))); ! } // if "i15d" ! ! else if(nodeName == string(elemPrefix + ":voice")) ! { ! m_response->m_voice.ref(new epp_ContactPhone()); ! ! string extension = infChildNode->getAttribute("x"); ! if(!extension.empty()) ! m_response->m_voice->m_extension.ref(new epp_string(extension)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! m_response->m_voice->m_value.ref(new epp_string(value)); ! ! // cout << "voice: " << extension << ", " << value << endl; ! } // if "voice" ! ! else if(nodeName == string(elemPrefix + ":fax")) ! { ! m_response->m_fax.ref(new epp_ContactPhone()); ! ! string extension = infChildNode->getAttribute("x"); ! if(!extension.empty()) ! m_response->m_fax->m_extension.ref(new epp_string(extension)); ! ! string value = infChildNode->getNodeData(); ! if(!value.empty()) ! m_response->m_fax->m_value.ref(new epp_string(value)); ! // cout << "fax: " << extension << ", " << value << endl; ! } // if "fax" ! ! else if(nodeName == string(elemPrefix + ":email")) ! { ! m_response->m_email.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "email: " << *m_response->m_email << endl; ! } // if "email" ! ! else if(nodeName == string(elemPrefix + ":clID")) ! { ! m_response->m_client_id.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "clID: " << *m_response->m_client_id << endl; ! } // if "clID" ! ! else if(nodeName == string(elemPrefix + ":crID")) ! { ! m_response->m_created_by.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "crID: " << *m_response->m_created_by << endl; ! } // if "crID" ! ! else if(nodeName == string(elemPrefix + ":crDate")) ! { ! m_response->m_created_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "crDate: " << *m_response->m_created_date << endl; ! } // if "crDate" ! ! else if(nodeName == string(elemPrefix + ":upID")) ! { ! m_response->m_updated_by.ref(new epp_string(infChildNode->getNodeData())); ! // cout << "upID: " << *m_response->m_updated_by << endl; ! } // if "upID" ! else if(nodeName == string(elemPrefix + ":upDate")) ! { ! m_response->m_updated_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "upDate: " << *m_response->m_updated_date << endl; ! } // if "upDate" ! ! else if(nodeName == string(elemPrefix + ":trDate")) ! { ! m_response->m_transfer_date.ref(new epp_datetime(infChildNode->getNodeData())); ! // cout << "trDate: " << *m_response->m_transfer_date << endl; ! } // if "trDate" ! ! else if(nodeName == string(elemPrefix + ":authInfo")) ! { ! m_response->m_auth_info = createAuthInfoObject(infChildNode); ! } // if "authInfo" ! ! infChildNode = dom_ptr(infChildNode->getNextSiblingElement()); ! } // while ! ! // <FIXME>Should we check that all mandatory fields present?</fixme> ! } Index: epp_ContactInfo.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactInfo.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_ContactInfo.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_ContactInfo.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_ContactTransfer.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactTransfer.cc,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_ContactTransfer.cc 9 Jul 2001 14:29:21 -0000 1.4 --- epp_ContactTransfer.cc 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_ContactTransfer.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_ContactTransfer.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 54,60 **** { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_roid == NULL || m_request->m_trans == NULL ! || m_request->m_trans->m_op == NULL ! || m_request->m_trans->m_auth_info == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); --- 53,58 ---- { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL || m_request->m_trans == NULL ! || m_request->m_trans->m_op == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); *************** *** 76,83 **** setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:roid",*m_request->m_roid); addAuthInfoElement(xml_request, m_request->m_trans->m_auth_info, "contact:authInfo"); ! ! xml_request.endTag("contact:transfer"); --- 74,80 ---- setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:id",*m_request->m_id); addAuthInfoElement(xml_request, m_request->m_trans->m_auth_info, "contact:authInfo"); ! xml_request.endTag("contact:transfer"); *************** *** 97,106 **** } ! void epp_ContactTransfer::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 94,104 ---- } ! void epp_ContactTransfer::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); *************** *** 109,194 **** m_response.ref(new epp_ContactTransferRsp()); ! epp_Response_ref res = createGenericResponse(resNode); m_response->m_rsp = res; ! DOM_Node creDataNode = getresDataInfo(resNode, "trnData"); ! if(creDataNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find trnData-element"); } ! DOM_Node roidNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "roid").item(0); ! if(roidNode.isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find roid-element"); ! } ! ! string roid; ! getNodeData(roidNode, roid); ! m_response->m_roid.ref(new epp_roid(roid)); ! // cout << "roid: " << *m_response->m_roid << endl; ! ! DOM_Node trStatusNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "trStatus").item(0); ! if(trStatusNode.isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find trStatus-element"); ! } ! ! string trStatus; ! getNodeData(trStatusNode, trStatus); ! try { ! m_response->m_transfer_status.ref(new epp_TransferStatusType(returnTransferStatusType(trStatus))); ! } ! catch(...) { ! throw epp_XMLException(__FILE__, __LINE__, "Unknown TransferStatusType in response"); ! } ! // cout << "trStatus: " << trStatus << endl; ! ! DOM_Node reIDNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "reID").item(0); ! if(reIDNode.isNull()) { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find reID-element"); ! } ! ! string reID; ! getNodeData(reIDNode, reID); ! m_response->m_request_client_id.ref(new epp_string(reID)); ! // cout << "reID: " << *m_response->m_request_client_id << endl; ! DOM_Node reDateNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "reDate").item(0); ! if(reDateNode.isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find reDate-element"); ! } ! ! string reDate; ! getNodeData(reDateNode, reDate); ! m_response->m_request_date.ref(new epp_string(reDate)); ! // cout << "reDate: " << *m_response->m_request_date << endl; ! ! DOM_Node acIDNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "acID").item(0); ! if(acIDNode.isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find acID-element"); ! } ! ! string acID; ! getNodeData(acIDNode, acID); ! m_response->m_action_client_id.ref(new epp_string(acID)); ! // cout << "acID: " << *m_response->m_action_client_id << endl; ! DOM_Node acDateNode = ((DOM_Element*)&creDataNode)->getElementsByTagNameNS(creDataNode.getNamespaceURI(), "acDate").item(0); ! if(acDateNode.isNull()) ! { ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find acDate-element"); } ! string acDate; ! getNodeData(acDateNode, acDate); ! m_response->m_action_date.ref(new epp_string(acDate)); ! // cout << "acDate: " << *m_response->m_action_date << endl; } --- 107,191 ---- m_response.ref(new epp_ContactTransferRsp()); ! epp_Response_ref res = createGenericResponse(responseNode); m_response->m_rsp = res; ! dom_ptr trnDataNode = dom_ptr(getresDataInfo(responseNode, "trnData")); ! if(trnDataNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find trnData-element"); } ! dom_ptr trnChildNode = dom_ptr(trnDataNode->getFirstChildElement()); + string elemPrefix = trnDataNode->getPrefix(); ! while(!trnChildNode->isNull()) { ! string nodeName = trnChildNode->getNodeName(); ! ! if(nodeName == string(elemPrefix + ":id")) ! { ! m_response->m_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "id: " << *m_response->m_id << endl; ! } // if "id" ! ! else if(nodeName == string(elemPrefix + ":trStatus")) ! { ! string trStatus = trnChildNode->getNodeData(); ! try { ! m_response->m_transfer_status.ref(new epp_TransferStatusType(returnTransferStatusType(trStatus))); ! } ! catch(...) { ! throw epp_XMLException(__FILE__, __LINE__, "Unknown TransferStatusType in response"); ! } ! // cout << "trStatus: " << trStatus << endl; ! } // if "trStatus" ! ! else if(nodeName == string(elemPrefix + ":reID")) ! { ! m_response->m_request_client_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "reID: " << *m_response->m_request_client_id << endl; ! } // if "reID" ! else if(nodeName == string(elemPrefix + ":reDate")) ! { ! m_response->m_request_date.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "reDate: " << *m_response->m_request_date << endl; ! } // if "reDate" ! else if(nodeName == string(elemPrefix + ":acID")) ! { ! m_response->m_action_client_id.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "acID: " << *m_response->m_action_client_id << endl; ! } // if "acID" ! ! else if(nodeName == string(elemPrefix + ":acDate")) ! { ! m_response->m_action_date.ref(new epp_string(trnChildNode->getNodeData())); ! // cout << "acDate: " << *m_response->m_action_date << endl; ! } // if "acDate" ! ! trnChildNode = dom_ptr(trnChildNode->getNextSiblingElement()); } ! if(m_response->m_id == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find id-element"); ! ! if(m_response->m_transfer_status == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find trStatus-element"); ! ! if(m_response->m_request_client_id == NULL) ! throw epp_XMLException(__FILE__, __LINE__, "Unable to find reID-element"); + if(m_response->m_request_date == NULL) + throw epp_XMLException(__FILE__, __LINE__, "Unable to find reDate-element"); + + if(m_response->m_action_client_id == NULL) + throw epp_XMLException(__FILE__, __LINE__, "Unable to find acID-element"); + + if(m_response->m_action_date == NULL) + throw epp_XMLException(__FILE__, __LINE__, "Unable to find acDate-element"); + } + Index: epp_ContactTransfer.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactTransfer.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_ContactTransfer.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_ContactTransfer.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_ContactUpdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactUpdate.cc,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_ContactUpdate.cc 7 Feb 2002 18:19:46 -0000 1.6 --- epp_ContactUpdate.cc 23 Feb 2002 04:36:05 -0000 1.6.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_ContactUpdate.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_ContactUpdate.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_contactXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 54,58 **** { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_roid == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); --- 53,57 ---- { if(m_request == NULL || m_request->m_cmd == NULL ! || m_request->m_id == NULL) { throw epp_XMLException(__FILE__, __LINE__, "Missing data in request"); *************** *** 74,78 **** setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:roid",*m_request->m_roid); addRemAddElement(xml_request, m_request->m_add, "add"); --- 73,77 ---- setCommandSchemaAttributes(xml_request); ! xml_request.putTag("contact:id",*m_request->m_id); addRemAddElement(xml_request, m_request->m_add, "add"); *************** *** 96,117 **** } ! void epp_ContactUpdate::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(resNode); m_response.ref(new epp_ContactUpdateRsp(res)); } ! void epp_ContactUpdate::addRemAddElement(EPP_output & outputobject, const epp_ContactUpdateAddRemove_ref element, ! const epp_string & mode) { if(element == NULL) --- 95,117 ---- } ! void epp_ContactUpdate::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(responseNode); m_response.ref(new epp_ContactUpdateRsp(res)); } ! void epp_ContactUpdate::addRemAddElement(eppobject::epp::EPP_output & outputobject, const epp_ContactUpdateAddRemove_ref element, ! const eppobject::epp::epp_string & mode) { if(element == NULL) *************** *** 143,147 **** } ! void epp_ContactUpdate::addChangeElement(EPP_output & outputobject, const epp_ContactUpdateChange_ref element) { --- 143,147 ---- } ! void epp_ContactUpdate::addChangeElement(eppobject::epp::EPP_output & outputobject, const epp_ContactUpdateChange_ref element) { Index: epp_ContactUpdate.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactUpdate.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_ContactUpdate.h 9 Jul 2001 14:29:21 -0000 1.4 --- epp_ContactUpdate.h 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_DomainCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCheck.cc,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** epp_DomainCheck.cc 9 Jul 2001 14:29:21 -0000 1.4 --- epp_DomainCheck.cc 23 Feb 2002 04:36:05 -0000 1.4.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 29,37 **** #include "epp_DomainCheck.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "data/epp_domainXMLbase.h" #include "data/epp_XMLException.h" - #include <dom/DOM.hpp> using namespace domtools; --- 29,36 ---- #include "epp_DomainCheck.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "data/epp_domainXMLbase.h" #include "data/epp_XMLException.h" using namespace domtools; *************** *** 95,151 **** } ! void epp_DomainCheck::fromXML(const epp_string & xml) { ! DOM_Document doc = createDOM_Document(xml); ! DOM_Node resNode = getSingleTag(doc, "response"); ! if(resNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(resNode); m_response.ref(new epp_DomainCheckRsp()); m_response->m_rsp = res; ! DOM_Node chkDataNode = getresDataInfo(resNode, "chkData"); ! ! if(chkDataNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); } - - DOM_NodeList cdNodes = ((DOM_Element*)&chkDataNode)->getElementsByTagNameNS(chkDataNode.getNamespaceURI(), "cd"); - - if(cdNodes.getLength() == 0) - { - throw epp_XMLException(__FILE__, __LINE__, "Unable to find cd-element(s)"); - } ! m_response->m_results.ref(new epp_check_result_seq); ! for(unsigned int i = 0; i < cdNodes.getLength(); i++) { ! DOM_Node cdNode = cdNodes.item(i); ! ! epp_CheckResult chRes; ! ! string exists; ! getAttribute(cdNode, "x", exists); ! // cout << "exists: " << exists << endl; ! ! if(exists == "+") ! chRes.m_exists.ref(new epp_boolean(true)); ! else ! chRes.m_exists.ref(new epp_boolean(false)); ! ! string value; ! getNodeData(cdNode, value); ! chRes.m_value.ref(new epp_string(value)); ! // cout << "value: " << *chRes.m_value << endl; ! m_response->m_results->push_back(chRes); } } --- 94,153 ---- } ! void epp_DomainCheck::fromXML(const eppobject::epp::epp_string & xml) { ! dom_ptr doc = createDOMDocument(xml); ! dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); } ! epp_Response_ref res = createGenericResponse(responseNode); m_response.ref(new epp_DomainCheckRsp()); m_response->m_rsp = res; ! dom_ptr chkDataNode = dom_ptr(getresDataInfo(responseNode, "chkData")); ! if(chkDataNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find chkData-element"); } ! dom_ptr chkChildNode = dom_ptr(chkDataNode->getFirstChildElement()); ! while(!chkChildNode->isNull()) { ! if(chkChildNode->getNodeName() == string(chkDataNode->getPrefix() + ":cd")) ! { ! if(m_response->m_results == NULL) ! m_response->m_results.ref(new epp_check_result_seq); ! ! epp_CheckResult chRes; ! ! string exists = chkChildNode->getAttribute("x"); ! // cout << "exists: " << exists << endl; ! if(exists == "+") ! chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") ! chRes.m_exists.ref(new epp_boolean(false)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); ! ! string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); ! // cout << "value: " << *chRes.m_value << endl; ! ! m_response->m_results->push_back(chRes); ! } // if "cd" ! chkChildNode = dom_ptr(chkChildNode->getNextSiblingElement()); } + if(m_response->m_results == NULL) + throw epp_XMLException(__FILE__, __LINE__, "Unable to find cd-element(s)"); } Index: epp_DomainCheck.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCheck.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** epp_DomainCheck.h 9 Jul 2001 14:29:21 -0000 1.3 --- epp_DomainCheck.h 23 Feb 2002 04:36:05 -0000 1.3.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * ... [truncated message content] |
From: Daniel M. <tub...@us...> - 2002-02-23 04:36:08
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv30343/src/transport Modified Files: Tag: epp-0402 epp_TransportBase.h epp_TransportConn.h epp_TransportIOStream.cc epp_TransportIOStream.h epp_TransportSSL.cc epp_TransportSSL.h Log Message: Back-merging main branch C++ code changes into epp-0402 Index: epp_TransportBase.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportBase.h,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -C2 -d -r1.3 -r1.3.4.1 *** epp_TransportBase.h 3 Jul 2001 11:55:33 -0000 1.3 --- epp_TransportBase.h 23 Feb 2002 04:36:05 -0000 1.3.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_TransportConn.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportConn.h,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** epp_TransportConn.h 9 Jul 2001 17:17:06 -0000 1.2 --- epp_TransportConn.h 23 Feb 2002 04:36:05 -0000 1.2.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_TransportIOStream.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportIOStream.cc,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** epp_TransportIOStream.cc 12 Jul 2001 17:00:51 -0000 1.2 --- epp_TransportIOStream.cc 23 Feb 2002 04:36:05 -0000 1.2.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 33,42 **** void epp_TransportIOStream::writeToServer(const string & xml_string) { ! cout << "<?xml version=\"1.0\" standalone=\"no\"?>\n"; cout << xml_string; cout << endl; #ifdef TEST_OUTPUTTOCERR ! cerr << "<?xml version=\"1.0\" standalone=\"no\"?>\n"; cerr << xml_string << endl; #endif --- 33,42 ---- void epp_TransportIOStream::writeToServer(const string & xml_string) { ! cout << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"; cout << xml_string; cout << endl; #ifdef TEST_OUTPUTTOCERR ! cerr << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n"; cerr << xml_string << endl; #endif Index: epp_TransportIOStream.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportIOStream.h,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** epp_TransportIOStream.h 19 Jun 2001 19:16:38 -0000 1.1 --- epp_TransportIOStream.h 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: epp_TransportSSL.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.cc,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** epp_TransportSSL.cc 26 Jul 2001 18:08:27 -0000 1.7 --- epp_TransportSSL.cc 23 Feb 2002 04:36:05 -0000 1.7.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 51,55 **** // <FIXME>Does not handle whitespace set to true?!?</fixme> try { ! sslserver->bufferedPutS("<?xml version=\"1.0\" standalone=\"no\"?>"); sslserver->bufferedPutS(xml_string); sslserver->flush(); --- 51,55 ---- // <FIXME>Does not handle whitespace set to true?!?</fixme> try { ! sslserver->bufferedPutS("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"); sslserver->bufferedPutS(xml_string); sslserver->flush(); Index: epp_TransportSSL.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.h,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** epp_TransportSSL.h 9 Jul 2001 17:17:06 -0000 1.6 --- epp_TransportSSL.h 23 Feb 2002 04:36:05 -0000 1.6.2.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA |
From: Daniel M. <tub...@us...> - 2002-02-23 04:36:08
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/unspec In directory usw-pr-cvs1:/tmp/cvs-serv30343/src/unspec Modified Files: Tag: epp-0402 epp_UnspecTest.h epp_Weather.h Log Message: Back-merging main branch C++ code changes into epp-0402 Index: epp_UnspecTest.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/unspec/epp_UnspecTest.h,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** epp_UnspecTest.h 20 Jul 2001 15:26:55 -0000 1.1 --- epp_UnspecTest.h 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA *************** *** 31,39 **** #include "config.h" #include <domtools/dom_output.h> ! #include <domtools/dom_tools.h> #include "unspec/epp_Weather.h" #include "data/epp_eppXMLbase.h" #include "data/epp_XMLException.h" namespace eppobject { namespace epp { --- 31,40 ---- #include "config.h" #include <domtools/dom_output.h> ! #include <domtools/dom_wrapper.h> #include "unspec/epp_Weather.h" #include "data/epp_eppXMLbase.h" #include "data/epp_XMLException.h" + namespace eppobject { namespace epp { *************** *** 65,86 **** { m_weather.ref(new epp_Weather()); - DOM_Document doc = createDOM_Document(xml); ! DOM_Node todayNode = domtools::getSingleTag(doc, "today"); ! if(!todayNode.isNull()) { ! string today; ! domtools::getNodeData(todayNode, today); m_weather->m_today.ref(new epp_string(today)); } ! DOM_Node tomorrowNode = domtools::getSingleTag(doc, "tomorrow"); ! if(!tomorrowNode.isNull()) { ! string tomorrow; ! domtools::getNodeData(tomorrowNode, tomorrow); m_weather->m_tomorrow.ref(new epp_string(tomorrow)); } ! }; }; --- 66,87 ---- { m_weather.ref(new epp_Weather()); ! domtools::dom_ptr doc = createDOMDocument(xml); ! ! domtools::dom_ptr todayNode = domtools::dom_ptr(doc->getTag("today")); ! ! if(!todayNode->isNull()) { ! string today = todayNode->getNodeData(); m_weather->m_today.ref(new epp_string(today)); } ! domtools::dom_ptr tomorrowNode = domtools::dom_ptr(doc->getTag("tomorrow")); ! if(!tomorrowNode->isNull()) { ! string tomorrow = tomorrowNode->getNodeData(); m_weather->m_tomorrow.ref(new epp_string(tomorrow)); } ! }; }; Index: epp_Weather.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/unspec/epp_Weather.h,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** epp_Weather.h 20 Jul 2001 15:26:55 -0000 1.1 --- epp_Weather.h 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA |
From: Daniel M. <tub...@us...> - 2002-02-23 04:36:08
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/ssl In directory usw-pr-cvs1:/tmp/cvs-serv30343/src/ssl Modified Files: Tag: epp-0402 npssl.cc npssl.h Log Message: Back-merging main branch C++ code changes into epp-0402 Index: npssl.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/ssl/npssl.cc,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** npssl.cc 19 Jun 2001 19:16:38 -0000 1.1 --- npssl.cc 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA Index: npssl.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/ssl/npssl.h,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** npssl.h 19 Jun 2001 19:16:38 -0000 1.1 --- npssl.h 23 Feb 2002 04:36:05 -0000 1.1.4.1 *************** *** 1,5 **** /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001 Global Name Registry * * This library is free software; you can redistribute it and/or modify it --- 1,5 ---- /************************************************************************ * EPP RTK C++ ! * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it *************** *** 20,24 **** * * EPP RTK ! * GNR Ltd. * 125 High Holborn * London WC1V 6QA --- 20,24 ---- * * EPP RTK ! * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA |
From: Daniel M. <tub...@us...> - 2002-02-23 04:36:08
|
Update of /cvsroot/epp-rtk/epp-rtk/c++ In directory usw-pr-cvs1:/tmp/cvs-serv30343 Modified Files: Tag: epp-0402 INSTALL README configure.in Log Message: Back-merging main branch C++ code changes into epp-0402 Index: INSTALL =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/INSTALL,v retrieving revision 1.1 retrieving revision 1.1.4.1 diff -C2 -d -r1.1 -r1.1.4.1 *** INSTALL 19 Jun 2001 19:16:37 -0000 1.1 --- INSTALL 23 Feb 2002 04:36:04 -0000 1.1.4.1 *************** *** 0 **** --- 1 ---- + Run ./final.sh as root Index: README =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/README,v retrieving revision 1.3 retrieving revision 1.3.4.1 diff -C2 -d -r1.3 -r1.3.4.1 *** README 19 Jun 2001 19:18:03 -0000 1.3 --- README 23 Feb 2002 04:36:04 -0000 1.3.4.1 *************** *** 1,5 **** EPP RTK C++ ! Copyright (C) 2001 Global Name Registry --- 1,5 ---- EPP RTK C++ ! Copyright (C) 2001, 2002 The Global Name Registry, Limited Index: configure.in =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/configure.in,v retrieving revision 1.2 retrieving revision 1.2.4.1 diff -C2 -d -r1.2 -r1.2.4.1 *** configure.in 28 Jun 2001 16:39:55 -0000 1.2 --- configure.in 23 Feb 2002 04:36:04 -0000 1.2.4.1 *************** *** 24,30 **** CXXFLAGS="--ansi -Wall -g -O2" #AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) ! AC_CHECK_HEADERS(dom/DOM.hpp parsers/DOMParser.hpp util/PlatformUtils.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) AC_CHECK_HEADERS(util/XMLString.hpp util/XMLUniDefs.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) - dnl Checks for typedefs, structures, and compiler characteristics. --- 24,31 ---- CXXFLAGS="--ansi -Wall -g -O2" #AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) ! AC_CHECK_HEADERS(parsers/DOMParser.hpp util/PlatformUtils.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) ! #Only here for deprecated functions: ! AC_CHECK_HEADERS(dom/DOM.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) AC_CHECK_HEADERS(util/XMLString.hpp util/XMLUniDefs.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) dnl Checks for typedefs, structures, and compiler characteristics. |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv6979 Modified Files: epp_ContactCheckReq.h epp_ContactCheckRsp.h epp_ContactDeleteReq.h epp_ContactDeleteRsp.h epp_ContactInfoReq.h epp_ContactUpdateRsp.h epp_DomainCheckReq.h epp_DomainCheckRsp.h epp_DomainDeleteReq.h epp_DomainDeleteRsp.h epp_DomainInfoReq.h epp_DomainUpdateRsp.h epp_GenericCheckRsp.h epp_HostCheckReq.h epp_HostCheckRsp.h epp_HostDeleteReq.h epp_HostDeleteRsp.h epp_HostInfoReq.h epp_HostUpdateRsp.h epp_LoginReq.h epp_LoginRsp.h epp_LogoutRsp.h Log Message: Added (Javadoc) documentation to maybe half the *Req and *Rsp classes... Index: epp_ContactCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCheckReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactCheckReq.h 21 Feb 2002 14:06:01 -0000 1.8 --- epp_ContactCheckReq.h 22 Feb 2002 17:14:14 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTCHECKREQ_H + /** @file epp_ContactCheckReq.h + * @brief Definition of epp_ContactCheckReq and epp_ContactCheckReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericReq.h" #include "epp_contactdata.h" *************** *** 34,46 **** namespace eppobject { namespace contact { class epp_ContactCheckReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_seq_ref m_ids; epp_ContactCheckReq() {}; virtual ~epp_ContactCheckReq() {} epp_ContactCheckReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_seq_ref _m_ids) --- 39,56 ---- namespace eppobject { namespace contact { + /// Class containing all elements used in contact check requests + /// @see epp_GenericReq for additional information class epp_ContactCheckReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_seq_ref m_ids; /**< Server-unique ID of the contact objects to be queried */ + /// Null constructor epp_ContactCheckReq() {}; + /// Destructor virtual ~epp_ContactCheckReq() {} + /// Constructor epp_ContactCheckReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_seq_ref _m_ids) *************** *** 51,54 **** --- 61,65 ---- }; + /// Typedef for the ref to the epp_ContactCheckReq class typedef refcnt_ptr<epp_ContactCheckReq> epp_ContactCheckReq_ref; Index: epp_ContactCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCheckRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactCheckRsp.h 21 Feb 2002 14:06:02 -0000 1.7 --- epp_ContactCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTCHECKRSP_H + /** @file epp_ContactCheckRsp.h + * @brief Definition of epp_ContactCheckRsp and epp_ContactCheckRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericCheckRsp.h" #include "epp_CheckResult.h" *************** *** 34,45 **** --- 39,55 ---- namespace eppobject { namespace contact { + /// Class containing all elements used in contact check responses + /// @see epp_GenericCheckRsp for additional information class epp_ContactCheckRsp : public epp::epp_GenericCheckRsp { public: + /// Null constructor epp_ContactCheckRsp() {}; + /// Destructor virtual ~epp_ContactCheckRsp() {} + /// Constructor epp_ContactCheckRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_check_result_seq_ref _m_results) *************** *** 49,52 **** --- 59,63 ---- }; + /// Typedef for the ref to the epp_ContactCheckRsp class typedef refcnt_ptr<epp_ContactCheckRsp> epp_ContactCheckRsp_ref; Index: epp_ContactDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactDeleteReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactDeleteReq.h 21 Feb 2002 14:06:02 -0000 1.8 --- epp_ContactDeleteReq.h 22 Feb 2002 17:14:14 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTDELETEREQ_H + /** @file epp_ContactDeleteReq.h + * @brief Definition of epp_ContactDeleteReq and epp_ContactDeleteReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericReq.h" *************** *** 34,47 **** namespace eppobject { namespace contact { class epp_ContactDeleteReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; epp_ContactDeleteReq() {}; virtual ~epp_ContactDeleteReq() {} ! // Note: Cannot set simple types to NULL epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id) --- 39,57 ---- namespace eppobject { namespace contact { + /// Class containing all elements used in contact delete requests + /// @see epp_GenericReq for additional information class epp_ContactDeleteReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique ID of the contact object to delete */ + /// Null constructor epp_ContactDeleteReq() {}; + /// Destructor virtual ~epp_ContactDeleteReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id) *************** *** 51,54 **** --- 61,65 ---- }; + /// Constructor, using only references epp_ContactDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id) *************** *** 59,63 **** }; ! typedef refcnt_ptr<epp_ContactDeleteReq> epp_ContactDeleteReq_ref; --- 70,75 ---- }; ! ! /// Typedef for the ref to the epp_ContactDeleteReq class typedef refcnt_ptr<epp_ContactDeleteReq> epp_ContactDeleteReq_ref; Index: epp_ContactDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactDeleteRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactDeleteRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_ContactDeleteRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,49 **** #define __EPP_CONTACTDELETERSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace contact { class epp_ContactDeleteRsp : public epp::epp_GenericRsp { public: epp_ContactDeleteRsp() {}; epp_ContactDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; - virtual ~epp_ContactDeleteRsp() {}; - }; ! typedef refcnt_ptr<epp_ContactDeleteRsp> epp_ContactDeleteRsp_ref; --- 29,60 ---- #define __EPP_CONTACTDELETERSP_H + /** @file epp_ContactDeleteRsp.h + * @brief Definition of epp_ContactDeleteRsp and epp_ContactDeleteRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace contact { + /// Class containing all elements used in contact delete responses + /// @see epp_GenericRsp for additional information class epp_ContactDeleteRsp : public epp::epp_GenericRsp { public: + /// Null constructor epp_ContactDeleteRsp() {}; + /// Destructor + virtual ~epp_ContactDeleteRsp() {}; + + /// Constructor epp_ContactDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! ! /// Typedef for the ref to the epp_ContactDeleteRsp class typedef refcnt_ptr<epp_ContactDeleteRsp> epp_ContactDeleteRsp_ref; Index: epp_ContactInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactInfoReq.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_ContactInfoReq.h 22 Feb 2002 17:14:14 -0000 1.9 *************** *** 29,32 **** --- 29,36 ---- #define __EPP_CONTACTINFOREQ_H + /** @file epp_ContactInfoReq.h + * @brief Definition of epp_ContactInfoReq and epp_ContactInfoReq_ref + * @author Asbjorn Steira Mikkelsen + */ #include "epp_contactdata.h" #include "epp_GenericReq.h" *************** *** 34,47 **** namespace eppobject { namespace contact { class epp_ContactInfoReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; epp_ContactInfoReq() {}; virtual ~epp_ContactInfoReq() {} ! // Note: Cannot set simple types to NULL epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id) --- 38,56 ---- namespace eppobject { namespace contact { + /// Class containing all elements used in contact info requests + /// @see epp_GenericReq for additional information class epp_ContactInfoReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique ID of the contact object to be queried */ + /// Null constructor epp_ContactInfoReq() {}; + /// Destructor virtual ~epp_ContactInfoReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id) *************** *** 51,55 **** }; ! epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id) --- 60,64 ---- }; ! /// Constructor, using only references epp_ContactInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_ContactInfoReq> epp_ContactInfoReq_ref; --- 68,73 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactInfoReq class typedef refcnt_ptr<epp_ContactInfoReq> epp_ContactInfoReq_ref; Index: epp_ContactUpdateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactUpdateRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactUpdateRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_ContactUpdateRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,48 **** #define __EPP_CONTACTUPDATERSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace contact { class epp_ContactUpdateRsp : public epp::epp_GenericRsp { public: epp_ContactUpdateRsp() {}; - - epp_ContactUpdateRsp(eppobject::epp::epp_Response_ref _m_rsp) - : epp::epp_GenericRsp(_m_rsp) {}; virtual ~epp_ContactUpdateRsp() {}; }; typedef refcnt_ptr<epp_ContactUpdateRsp> epp_ContactUpdateRsp_ref; --- 29,60 ---- #define __EPP_CONTACTUPDATERSP_H + /** @file epp_ContactUpdateRsp.h + * @brief Definition of epp_ContactUpdateRsp and epp_ContactUpdateRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace contact { + /// Class containing all elements used in contact update responses + /// @see epp_GenericRsp for additional information class epp_ContactUpdateRsp : public epp::epp_GenericRsp { + public: + /// Null constructor epp_ContactUpdateRsp() {}; + /// Destructor virtual ~epp_ContactUpdateRsp() {}; + /// Constructor + epp_ContactUpdateRsp(eppobject::epp::epp_Response_ref _m_rsp) + : epp::epp_GenericRsp(_m_rsp) {}; + }; + /// Typedef for the ref to the epp_ContactUpdateRsp class typedef refcnt_ptr<epp_ContactUpdateRsp> epp_ContactUpdateRsp_ref; Index: epp_DomainCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCheckReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainCheckReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainCheckReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINCHECKREQ_H + /** @file epp_DomainCheckReq.h + * @brief Definition of epp_DomainCheckReq and epp_DomainCheckReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 34,46 **** namespace eppobject { namespace domain { class epp_DomainCheckReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_seq_ref m_names; epp_DomainCheckReq() {}; virtual ~epp_DomainCheckReq() {} epp_DomainCheckReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_seq_ref _m_names) --- 39,56 ---- namespace eppobject { namespace domain { + /// Class containing all elements used in domain check requests + /// @see epp_GenericReq for additional information class epp_DomainCheckReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_seq_ref m_names; /**< Fully qualified names of the domain objects to be queried */ + /// Null constructor epp_DomainCheckReq() {}; + /// Destructor virtual ~epp_DomainCheckReq() {} + /// Constructor epp_DomainCheckReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_seq_ref _m_names) *************** *** 51,54 **** --- 61,65 ---- }; + /// Typedef for the ref to the epp_DomainCheckReq class typedef refcnt_ptr<epp_DomainCheckReq> epp_DomainCheckReq_ref; Index: epp_DomainCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCheckRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainCheckRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINCHECKRSP_H + /** @file epp_DomainCheckRsp.h + * @brief Definition of epp_DomainCheckRsp and epp_DomainCheckRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericCheckRsp.h" #include "epp_CheckResult.h" *************** *** 34,45 **** --- 39,55 ---- namespace eppobject { namespace domain { + /// Class containing all elements used in domain check responses + /// @see epp_GenericCheckRsp for additional information class epp_DomainCheckRsp : public epp::epp_GenericCheckRsp { public: + /// Null constructor epp_DomainCheckRsp() {}; + /// Destructor virtual ~epp_DomainCheckRsp() {} + /// Constructor epp_DomainCheckRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_check_result_seq_ref _m_results) *************** *** 47,51 **** }; ! typedef refcnt_ptr<epp_DomainCheckRsp> epp_DomainCheckRsp_ref; --- 57,62 ---- }; ! ! /// Typedef for the ref to the epp_DomainCheckRsp class typedef refcnt_ptr<epp_DomainCheckRsp> epp_DomainCheckRsp_ref; Index: epp_DomainDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainDeleteReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainDeleteReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainDeleteReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINDELETEREQ_H + /** @file epp_DomainDeleteReq.h + * @brief Definition of epp_DomainDeleteReq and epp_DomainDeleteReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 34,47 **** namespace eppobject { namespace domain { class epp_DomainDeleteReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; epp_DomainDeleteReq() {}; virtual ~epp_DomainDeleteReq() {} ! // Note: Cannot set simple types to NULL epp_DomainDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) --- 39,57 ---- namespace eppobject { namespace domain { + /// Class containing all elements used in domain delete requests + /// @see epp_GenericReq for additional information class epp_DomainDeleteReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to delete */ + /// Null constructor epp_DomainDeleteReq() {}; + /// Destructor virtual ~epp_DomainDeleteReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) *************** *** 51,55 **** }; ! epp_DomainDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) --- 61,65 ---- }; ! /// Constructor, using only references epp_DomainDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_DomainDeleteReq> epp_DomainDeleteReq_ref; --- 69,74 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainDeleteReq class typedef refcnt_ptr<epp_DomainDeleteReq> epp_DomainDeleteReq_ref; Index: epp_DomainDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainDeleteRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainDeleteRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainDeleteRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,49 **** #define __EPP_DOMAINDELETERSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace domain { ! class epp_DomainDeleteRsp : public epp::epp_GenericRsp { public: epp_DomainDeleteRsp() {}; epp_DomainDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; - virtual ~epp_DomainDeleteRsp() {}; - }; ! typedef refcnt_ptr<epp_DomainDeleteRsp> epp_DomainDeleteRsp_ref; --- 29,60 ---- #define __EPP_DOMAINDELETERSP_H + /** @file epp_DomainDeleteRsp.h + * @brief Definition of epp_DomainDeleteRsp and epp_DomainDeleteRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace domain { ! ! /// Class containing all elements used in domain delete responses ! /// @see epp_GenericRsp for additional information class epp_DomainDeleteRsp : public epp::epp_GenericRsp { public: + /// Null constructor epp_DomainDeleteRsp() {}; + /// Destructor + virtual ~epp_DomainDeleteRsp() {}; + + /// Constructor epp_DomainDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! ! /// Typedef for the ref to the epp_DomainDeleteRsp class typedef refcnt_ptr<epp_DomainDeleteRsp> epp_DomainDeleteRsp_ref; Index: epp_DomainInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainInfoReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainInfoReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainInfoReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAININFOREQ_H + /** @file epp_DomainInfoReq.h + * @brief Definition of epp_DomainInfoReq and epp_DomainInfoReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 34,47 **** namespace eppobject { namespace domain { class epp_DomainInfoReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; epp_DomainInfoReq() {}; virtual ~epp_DomainInfoReq() {} ! // Note: Cannot set simple types to NULL epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) --- 39,57 ---- namespace eppobject { namespace domain { + /// Class containing all elements used in domain info requests + /// @see epp_GenericReq for additional information class epp_DomainInfoReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to be queried */ + /// Null constructor epp_DomainInfoReq() {}; + /// Destructor virtual ~epp_DomainInfoReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) *************** *** 51,55 **** }; ! epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) --- 61,65 ---- }; ! /// Constructor, using only references epp_DomainInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_DomainInfoReq> epp_DomainInfoReq_ref; --- 69,74 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainInfoReq class typedef refcnt_ptr<epp_DomainInfoReq> epp_DomainInfoReq_ref; Index: epp_DomainUpdateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainUpdateRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainUpdateRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,49 **** #define __EPP_DOMAINUPDATERSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace domain { ! class epp_DomainUpdateRsp : public epp::epp_GenericRsp { public: epp_DomainUpdateRsp() {}; epp_DomainUpdateRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; - - virtual ~epp_DomainUpdateRsp() {}; }; ! typedef refcnt_ptr<epp_DomainUpdateRsp> epp_DomainUpdateRsp_ref; --- 29,60 ---- #define __EPP_DOMAINUPDATERSP_H + /** @file epp_DomainUpdateRsp.h + * @brief Definition of epp_DomainUpdateRsp and epp_DomainUpdateRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace domain { ! ! /// Class containing all elements used in domain update responses ! /// @see epp_GenericRsp for additional information class epp_DomainUpdateRsp : public epp::epp_GenericRsp { public: + /// Null constructor epp_DomainUpdateRsp() {}; + /// Destructor + virtual ~epp_DomainUpdateRsp() {}; + + /// Constructor epp_DomainUpdateRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! ! /// Typedef for the ref to the epp_DomainUpdateRsp class typedef refcnt_ptr<epp_DomainUpdateRsp> epp_DomainUpdateRsp_ref; Index: epp_GenericCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_GenericCheckRsp.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_GenericCheckRsp.h 22 Feb 2002 15:46:02 -0000 1.2 --- epp_GenericCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.3 *************** *** 40,43 **** --- 40,44 ---- /// Class containing the generic/common elements of the server response to a <check> command + /// @see epp_GenericRsp for additional information class epp_GenericCheckRsp : public epp_GenericRsp { Index: epp_HostCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostCheckReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostCheckReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostCheckReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTCHECKREQ_H + /** @file epp_HostCheckReq.h + * @brief Definition of epp_HostCheckReq and epp_HostCheckReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericReq.h" *************** *** 34,46 **** namespace eppobject { namespace host { class epp_HostCheckReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_seq_ref m_names; epp_HostCheckReq() {}; virtual ~epp_HostCheckReq() {} epp_HostCheckReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_seq_ref _m_names) --- 39,56 ---- namespace eppobject { namespace host { + /// Class containing all elements used in host check requests + /// @see epp_GenericReq for additional information class epp_HostCheckReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_seq_ref m_names; /**< Fully qualified names of the host objects to be queried */ + /// Null constructor epp_HostCheckReq() {}; + /// Destructor virtual ~epp_HostCheckReq() {} + /// Constructor epp_HostCheckReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_seq_ref _m_names) *************** *** 51,54 **** --- 61,65 ---- }; + /// Typedef for the ref to the epp_HostCheckReq class typedef refcnt_ptr<epp_HostCheckReq> epp_HostCheckReq_ref; Index: epp_HostCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostCheckRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostCheckRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTCHECKRSP_H + /** @file epp_HostCheckRsp.h + * @brief Definition of epp_HostCheckRsp and epp_HostCheckRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericCheckRsp.h" #include "epp_CheckResult.h" *************** *** 34,45 **** --- 39,55 ---- namespace eppobject { namespace host { + /// Class containing all elements used in host check responses + /// @see epp_GenericCheckRsp for additional information class epp_HostCheckRsp : public epp::epp_GenericCheckRsp { public: + /// Null constructor epp_HostCheckRsp() {}; + /// Destructor virtual ~epp_HostCheckRsp() {} + /// Constructor epp_HostCheckRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_check_result_seq_ref _m_results) *************** *** 47,51 **** }; ! typedef refcnt_ptr<epp_HostCheckRsp> epp_HostCheckRsp_ref; --- 57,62 ---- }; ! ! /// Typedef for the ref to the epp_HostCheckRsp class typedef refcnt_ptr<epp_HostCheckRsp> epp_HostCheckRsp_ref; Index: epp_HostDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostDeleteReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostDeleteReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostDeleteReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTDELETEREQ_H + /** @file epp_HostDeleteReq.h + * @brief Definition of epp_HostDeleteReq and epp_HostDeleteReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericReq.h" *************** *** 34,47 **** namespace eppobject { namespace host { class epp_HostDeleteReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; epp_HostDeleteReq() {}; virtual ~epp_HostDeleteReq() {} ! // Note: Cannot set simple types to NULL epp_HostDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) --- 39,57 ---- namespace eppobject { namespace host { + /// Class containing all elements used in host delete requests + /// @see epp_GenericReq for additional information class epp_HostDeleteReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the host object to delete */ + /// Null constructor epp_HostDeleteReq() {}; + /// Destructor virtual ~epp_HostDeleteReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) *************** *** 51,55 **** }; ! epp_HostDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) --- 61,65 ---- }; ! /// Constructor, using only references epp_HostDeleteReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) *************** *** 60,63 **** --- 70,74 ---- }; + /// Typedef for the ref to the epp_HostDeleteReq class typedef refcnt_ptr<epp_HostDeleteReq> epp_HostDeleteReq_ref; Index: epp_HostDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostDeleteRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostDeleteRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostDeleteRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,49 **** #define __EPP_HOSTDELETERSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace host { class epp_HostDeleteRsp : public epp::epp_GenericRsp { public: epp_HostDeleteRsp() {}; virtual ~epp_HostDeleteRsp() {} epp_HostDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! typedef refcnt_ptr<epp_HostDeleteRsp> epp_HostDeleteRsp_ref; --- 29,60 ---- #define __EPP_HOSTDELETERSP_H + /** @file epp_HostDeleteRsp.h + * @brief Definition of epp_HostDeleteRsp and epp_HostDeleteRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace host { + /// Class containing all elements used in host delete responses + /// @see epp_GenericRsp for additional information class epp_HostDeleteRsp : public epp::epp_GenericRsp { public: + /// Null constructor epp_HostDeleteRsp() {}; + /// Destructor virtual ~epp_HostDeleteRsp() {} + /// Constructor epp_HostDeleteRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! ! /// Typedef for the ref to the epp_HostDeleteRsp class typedef refcnt_ptr<epp_HostDeleteRsp> epp_HostDeleteRsp_ref; Index: epp_HostInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostInfoReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostInfoReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostInfoReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTINFOREQ_H + /** @file epp_HostInfoReq.h + * @brief Definition of epp_HostInfoReq and epp_HostInfoReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericReq.h" *************** *** 34,47 **** namespace eppobject { namespace host { class epp_HostInfoReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; epp_HostInfoReq() {}; virtual ~epp_HostInfoReq() {} ! // Note: Cannot set simple types to NULL epp_HostInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) --- 39,57 ---- namespace eppobject { namespace host { + /// Class containing all elements used in host info requests + /// @see epp_GenericReq for additional information class epp_HostInfoReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the host object to be queried */ + /// Null constructor epp_HostInfoReq() {}; + /// Destructor virtual ~epp_HostInfoReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name) *************** *** 51,55 **** }; ! epp_HostInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) --- 61,65 ---- }; ! /// Constructor, using only references epp_HostInfoReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_HostInfoReq> epp_HostInfoReq_ref; --- 69,74 ---- }; }; ! ! /// Typedef for the ref to the epp_HostInfoReq class typedef refcnt_ptr<epp_HostInfoReq> epp_HostInfoReq_ref; Index: epp_HostUpdateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostUpdateRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostUpdateRsp.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostUpdateRsp.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,49 **** #define __EPP_HOSTUPDATERSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace host { class epp_HostUpdateRsp : public epp::epp_GenericRsp { public: epp_HostUpdateRsp() {}; virtual ~epp_HostUpdateRsp() {} epp_HostUpdateRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! typedef refcnt_ptr<epp_HostUpdateRsp> epp_HostUpdateRsp_ref; --- 29,60 ---- #define __EPP_HOSTUPDATERSP_H + /** @file epp_HostUpdateRsp.h + * @brief Definition of epp_HostUpdateRsp and epp_HostUpdateRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace host { + /// Class containing all elements used in host update responses + /// @see epp_GenericRsp for additional information class epp_HostUpdateRsp : public epp::epp_GenericRsp { public: + /// Null constructor epp_HostUpdateRsp() {}; + /// Destructor virtual ~epp_HostUpdateRsp() {} + /// Constructor epp_HostUpdateRsp(eppobject::epp::epp_Response_ref _m_rsp) : epp::epp_GenericRsp(_m_rsp) {}; }; ! ! /// Typedef for the ref to the epp_HostUpdateRsp class typedef refcnt_ptr<epp_HostUpdateRsp> epp_HostUpdateRsp_ref; Index: epp_LoginReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_LoginReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_LoginReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_LoginReq.h 22 Feb 2002 17:14:14 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_LOGINREQ_H + /** @file epp_LoginReq.h + * @brief Definition of epp_LoginReq and epp_LoginReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_GenericReq.h" *************** *** 35,48 **** namespace eppobject { namespace epp { class epp_LoginReq : public epp_GenericReq { public: ! epp_service_seq_ref m_services; ! epp_service_seq_ref m_unspec_services; epp_LoginReq() {}; virtual ~epp_LoginReq() {} epp_LoginReq(epp_Command_ref _m_cmd, epp_service_seq_ref _m_services, --- 40,58 ---- namespace eppobject { namespace epp { + /// Class containing all elements used in login requests + /// @see epp_GenericReq for additional information class epp_LoginReq : public epp_GenericReq { public: ! epp_service_seq_ref m_services; /**< Objects to be managed during the session */ ! epp_service_seq_ref m_unspec_services; /**< Custom object extensions to be managed during the session */ + /// Null constructor epp_LoginReq() {}; + /// Destructor virtual ~epp_LoginReq() {} + /// Constructor, using only references epp_LoginReq(epp_Command_ref _m_cmd, epp_service_seq_ref _m_services, *************** *** 54,58 **** }; }; ! typedef refcnt_ptr<epp_LoginReq> epp_LoginReq_ref; --- 64,69 ---- }; }; ! ! /// Typedef for the ref to the epp_LoginReq class typedef refcnt_ptr<epp_LoginReq> epp_LoginReq_ref; Index: epp_LoginRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_LoginRsp.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_LoginRsp.h 21 Feb 2002 14:06:03 -0000 1.6 --- epp_LoginRsp.h 22 Feb 2002 17:14:14 -0000 1.7 *************** *** 29,48 **** #define __EPP_LOGINRSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace epp { class epp_LoginRsp : public epp_GenericRsp { public: epp_LoginRsp() {}; ! epp_LoginRsp(epp_Response_ref _m_rsp) : epp_GenericRsp(_m_rsp) {}; ! virtual ~epp_LoginRsp() {}; }; typedef refcnt_ptr<epp_LoginRsp> epp_LoginRsp_ref; --- 29,60 ---- #define __EPP_LOGINRSP_H + /** @file epp_LoginRsp.h + * @brief Definition of epp_LoginRsp and epp_LoginRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace epp { + /// Class containing all elements used in login responses + /// @see epp_GenericRsp for additional information class epp_LoginRsp : public epp_GenericRsp { public: + /// Null constructor epp_LoginRsp() {}; ! /// Destructor virtual ~epp_LoginRsp() {}; + /// Constructor + epp_LoginRsp(epp_Response_ref _m_rsp) + : epp_GenericRsp(_m_rsp) {}; + }; + /// Typedef for the ref to the epp_LoginRsp class typedef refcnt_ptr<epp_LoginRsp> epp_LoginRsp_ref; Index: epp_LogoutRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_LogoutRsp.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_LogoutRsp.h 21 Feb 2002 14:06:03 -0000 1.6 --- epp_LogoutRsp.h 22 Feb 2002 17:14:14 -0000 1.7 *************** *** 29,48 **** #define __EPP_LOGOUTRSP_H #include "epp_GenericRsp.h" namespace eppobject { namespace epp { class epp_LogoutRsp : public epp_GenericRsp { public: epp_LogoutRsp() {}; ! epp_LogoutRsp(epp_Response_ref _m_rsp) : epp_GenericRsp(_m_rsp) {}; ! virtual ~epp_LogoutRsp() {}; }; typedef refcnt_ptr<epp_LogoutRsp> epp_LogoutRsp_ref; --- 29,60 ---- #define __EPP_LOGOUTRSP_H + /** @file epp_LogoutRsp.h + * @brief Definition of epp_LogoutRsp and epp_LogoutRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" namespace eppobject { namespace epp { + /// Class containing all elements used in logout responses + /// @see epp_GenericRsp for additional information class epp_LogoutRsp : public epp_GenericRsp { public: + /// Null constructor epp_LogoutRsp() {}; ! /// Destructor virtual ~epp_LogoutRsp() {}; + /// Constructor + epp_LogoutRsp(epp_Response_ref _m_rsp) + : epp_GenericRsp(_m_rsp) {}; + }; + /// Typedef for the ref to the epp_LogoutRsp class typedef refcnt_ptr<epp_LogoutRsp> epp_LogoutRsp_ref; |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv30900 Modified Files: epp_AuthInfo.h epp_CheckResult.h epp_Command.h epp_ContactAddress.h epp_ContactNameAddress.h epp_ContactPhone.h epp_ContactStatus.h epp_ContactVoice.h epp_Credentials.h epp_DomainContact.h epp_DomainPeriod.h epp_DomainStatus.h epp_GenericCheckRsp.h epp_GenericReq.h epp_GenericRsp.h epp_Greeting.h epp_HostAddress.h epp_HostStatus.h epp_MessageQueue.h epp_Options.h epp_Response.h epp_Result.h epp_Service.h epp_TransID.h epp_XMLException.h Log Message: Added (Javadoc) documentation to a few more data classes... Index: epp_AuthInfo.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_AuthInfo.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_AuthInfo.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_AuthInfo.h 22 Feb 2002 15:46:02 -0000 1.6 *************** *** 29,48 **** #define __EPP_AUTHINFO_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_AuthInfo { - public: ! epp_AuthInfoType_ref m_type; ! epp_roid_ref m_roid; ! epp_string_ref m_value; epp_AuthInfo() {}; virtual ~epp_AuthInfo() {}; ! // Note: Cannot set simple types to NULL epp_AuthInfo(epp_AuthInfoType _m_type, epp_roid _m_roid, --- 29,57 ---- #define __EPP_AUTHINFO_H + /** @file epp_AuthInfo.h + * @brief Definition of epp_AuthInfo and epp_AuthInfo_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing authorization information associated with an object class epp_AuthInfo { ! public: ! epp_AuthInfoType_ref m_type; /**< Authorization information type */ ! epp_roid_ref m_roid; /**< Repository object ID of associated contact object */ ! epp_string_ref m_value; /**< Authorization string/passphrase */ + /// Null constructor epp_AuthInfo() {}; + /// Destructor virtual ~epp_AuthInfo() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_AuthInfo(epp_AuthInfoType _m_type, epp_roid _m_roid, *************** *** 54,58 **** }; ! epp_AuthInfo(epp_AuthInfoType_ref _m_type, epp_roid_ref _m_roid, --- 63,67 ---- }; ! /// Constructor, using only references epp_AuthInfo(epp_AuthInfoType_ref _m_type, epp_roid_ref _m_roid, *************** *** 65,68 **** --- 74,78 ---- }; + /// Typedef for the ref to the epp_AuthInfo class typedef refcnt_ptr<epp_AuthInfo> epp_AuthInfo_ref; Index: epp_CheckResult.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_CheckResult.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_CheckResult.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_CheckResult.h 22 Feb 2002 15:46:02 -0000 1.6 *************** *** 29,47 **** #define __EPP_CHECKRESULT_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_CheckResult { - public: ! epp_boolean_ref m_exists; ! epp_string_ref m_value; epp_CheckResult() {}; virtual ~epp_CheckResult() {}; ! // Note: Cannot set simple types to NULL epp_CheckResult(epp_boolean _m_exists, epp_string _m_value) --- 29,56 ---- #define __EPP_CHECKRESULT_H + /** @file epp_CheckResult.h + * @brief Definition of epp_CheckResult and epp_CheckResult_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing the true/false response of object check queries class epp_CheckResult { ! public: ! epp_boolean_ref m_exists; /**< Boolean value indicating whether an object is known to the server or not */ ! epp_string_ref m_value; /**< Fully qualified names for the queried objects */ + /// Null constructor epp_CheckResult() {}; + /// Destructor virtual ~epp_CheckResult() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_CheckResult(epp_boolean _m_exists, epp_string _m_value) *************** *** 51,55 **** }; ! epp_CheckResult(epp_boolean_ref _m_exists, epp_string_ref _m_value) --- 60,64 ---- }; ! /// Constructor, using only references epp_CheckResult(epp_boolean_ref _m_exists, epp_string_ref _m_value) *************** *** 60,63 **** --- 69,73 ---- }; + /// Typedef for the ref to the epp_CheckResult class typedef refcnt_ptr<epp_CheckResult> epp_CheckResult_ref; Index: epp_Command.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Command.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Command.h 22 Feb 2002 09:35:42 -0000 1.6 --- epp_Command.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 45,51 **** public: ! epp_Credentials_ref m_creds; /**< Client identity credentials element that provides client identity information*/ ! epp_Unspec_ref m_unspec; /**< Unspecified element used for server-defined command extensions*/ ! epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client*/ /// Null constructor --- 45,51 ---- public: ! epp_Credentials_ref m_creds; /**< Client identity credentials element that provides client identity information */ ! epp_Unspec_ref m_unspec; /**< Unspecified element used for server-defined command extensions */ ! epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client */ /// Null constructor Index: epp_ContactAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactAddress.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_ContactAddress.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_ContactAddress.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,52 **** #define __EPP_CONTACTADDRESS_H #include "epp_contactdata.h" namespace eppobject { namespace contact { class epp_ContactAddress { - public: ! eppobject::epp::epp_string_ref m_street1; ! eppobject::epp::epp_string_ref m_street2; ! eppobject::epp::epp_string_ref m_street3; ! eppobject::epp::epp_string_ref m_city; ! eppobject::epp::epp_string_ref m_state_province; ! eppobject::epp::epp_string_ref m_postal_code; ! eppobject::epp::epp_string_ref m_country_code; epp_ContactAddress() {}; virtual ~epp_ContactAddress() {}; ! // Note: Cannot set simple types to NULL epp_ContactAddress(eppobject::epp::epp_string _m_street1, eppobject::epp::epp_string _m_street2, --- 29,61 ---- #define __EPP_CONTACTADDRESS_H + /** @file epp_ContactAddress.h + * @brief Definition of epp_ContactAddress and epp_ContactAddress_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" namespace eppobject { namespace contact { + /// Class containing elements used to describe the address of a contact class epp_ContactAddress { ! public: ! eppobject::epp::epp_string_ref m_street1; /**< Line 1 of contact street address */ ! eppobject::epp::epp_string_ref m_street2; /**< Line 2 of contact street address */ ! eppobject::epp::epp_string_ref m_street3; /**< Line 3 of contact street address */ ! eppobject::epp::epp_string_ref m_city; /**< Contact city */ ! eppobject::epp::epp_string_ref m_state_province; /**< Contact state/province */ ! eppobject::epp::epp_string_ref m_postal_code; /**< Contact postal code */ ! eppobject::epp::epp_string_ref m_country_code; /**< Contact country code (iso3166) */ + /// Null constructor epp_ContactAddress() {}; + /// Destructor virtual ~epp_ContactAddress() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactAddress(eppobject::epp::epp_string _m_street1, eppobject::epp::epp_string _m_street2, *************** *** 66,70 **** }; ! epp_ContactAddress(eppobject::epp::epp_string_ref _m_street1, eppobject::epp::epp_string_ref _m_street2, --- 75,79 ---- }; ! /// Constructor, using only references epp_ContactAddress(eppobject::epp::epp_string_ref _m_street1, eppobject::epp::epp_string_ref _m_street2, *************** *** 84,88 **** }; }; ! typedef refcnt_ptr<epp_ContactAddress> epp_ContactAddress_ref; --- 93,98 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactAddress class typedef refcnt_ptr<epp_ContactAddress> epp_ContactAddress_ref; Index: epp_ContactNameAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactNameAddress.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_ContactNameAddress.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_ContactNameAddress.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTNAMEADDRESS_H + /** @file epp_ContactNameAddress.h + * @brief Definition of epp_ContactNameAddress and epp_ContactNameAddress_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_ContactAddress.h" *************** *** 34,49 **** namespace eppobject { namespace contact { class epp_ContactNameAddress { - public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_string_ref m_org; ! epp_ContactAddress_ref m_address; epp_ContactNameAddress() {}; virtual ~epp_ContactNameAddress() {}; ! // Note: Cannot set simple types to NULL epp_ContactNameAddress(eppobject::epp::epp_string _m_name, eppobject::epp::epp_string _m_org, --- 39,58 ---- namespace eppobject { namespace contact { + /// Class containing elements used to describe the name and address of a contact class epp_ContactNameAddress { ! public: ! eppobject::epp::epp_string_ref m_name; /**< Name of the contact */ ! eppobject::epp::epp_string_ref m_org; /**< Organization associated with the contact */ ! epp_ContactAddress_ref m_address; /**< Address associated with the contact */ + /// Null constructor epp_ContactNameAddress() {}; + /// Destructor virtual ~epp_ContactNameAddress() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactNameAddress(eppobject::epp::epp_string _m_name, eppobject::epp::epp_string _m_org, *************** *** 55,59 **** }; ! epp_ContactNameAddress(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_string_ref _m_org, --- 64,68 ---- }; ! /// Constructor, using only references epp_ContactNameAddress(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_string_ref _m_org, *************** *** 65,69 **** }; }; ! typedef refcnt_ptr<epp_ContactNameAddress> epp_ContactNameAddress_ref; --- 74,79 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactNameAddress class typedef refcnt_ptr<epp_ContactNameAddress> epp_ContactNameAddress_ref; Index: epp_ContactPhone.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactPhone.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_ContactPhone.h 22 Feb 2002 09:35:42 -0000 1.3 --- epp_ContactPhone.h 22 Feb 2002 15:46:02 -0000 1.4 *************** *** 42,47 **** public: ! eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension*/ ! eppobject::epp::epp_string_ref m_value; /**< Telephone number*/ /// Null constructor --- 42,47 ---- public: ! eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension */ ! eppobject::epp::epp_string_ref m_value; /**< Telephone number */ /// Null constructor Index: epp_ContactStatus.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactStatus.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_ContactStatus.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_ContactStatus.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,48 **** #define __EPP_CONTACTSTATUS_H #include "epp_contactdata.h" namespace eppobject { namespace contact { class epp_ContactStatus { - public: ! epp_ContactStatusType_ref m_type; ! eppobject::epp::epp_string_ref m_lang; ! eppobject::epp::epp_string_ref m_value; epp_ContactStatus() {}; virtual ~epp_ContactStatus() {}; ! // Note: Cannot set simple types to NULL epp_ContactStatus(epp_ContactStatusType _m_type, eppobject::epp::epp_string _m_lang, --- 29,57 ---- #define __EPP_CONTACTSTATUS_H + /** @file epp_ContactStatus.h + * @brief Definition of epp_ContactStatus and epp_ContactStatus_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" namespace eppobject { namespace contact { + /// Class containing elements to describe a status of a contact class epp_ContactStatus { ! public: ! epp_ContactStatusType_ref m_type; /**< Type of contact status */ ! eppobject::epp::epp_string_ref m_lang; /**< Language of the human-readable describing text (iso639) */ ! eppobject::epp::epp_string_ref m_value; /**< Human-readable text describing the rationale for the applied status */ + /// Null constructor epp_ContactStatus() {}; + /// Destructor virtual ~epp_ContactStatus() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactStatus(epp_ContactStatusType _m_type, eppobject::epp::epp_string _m_lang, *************** *** 54,58 **** }; ! epp_ContactStatus(epp_ContactStatusType_ref _m_type, eppobject::epp::epp_string_ref _m_lang, --- 63,67 ---- }; ! /// Constructor, using only references epp_ContactStatus(epp_ContactStatusType_ref _m_type, eppobject::epp::epp_string_ref _m_lang, *************** *** 64,68 **** }; }; ! typedef refcnt_ptr<epp_ContactStatus> epp_ContactStatus_ref; --- 73,78 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactStatus class typedef refcnt_ptr<epp_ContactStatus> epp_ContactStatus_ref; Index: epp_ContactVoice.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactVoice.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactVoice.h 22 Feb 2002 09:35:42 -0000 1.8 --- epp_ContactVoice.h 22 Feb 2002 15:46:02 -0000 1.9 *************** *** 44,49 **** public: ! eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension*/ ! eppobject::epp::epp_string_ref m_value; /**< Telephone number*/ /// Null constructor --- 44,49 ---- public: ! eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension */ ! eppobject::epp::epp_string_ref m_value; /**< Telephone number */ /// Null constructor Index: epp_Credentials.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Credentials.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Credentials.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_Credentials.h 22 Feb 2002 15:46:02 -0000 1.6 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CREDENTIALS_H + /** @file epp_Credentials.h + * @brief Definition of epp_Credentials and epp_Credentials_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_Options.h" *************** *** 34,49 **** namespace eppobject { namespace epp { class epp_Credentials { public: ! epp_string_ref m_client_id; ! epp_string_ref m_password; ! epp_string_ref m_new_password; ! epp_Options_ref m_options; epp_Credentials() {}; virtual ~epp_Credentials() {} ! // Note: Cannot set simple types to NULL epp_Credentials(epp_string _m_client_id, epp_string _m_password, --- 39,59 ---- namespace eppobject { namespace epp { + ///Class containing client identity credentials that provides client identity information class epp_Credentials { + public: ! epp_string_ref m_client_id; /**< Client identifier assigned to the client by the server */ ! epp_string_ref m_password; /**< Client plain text password */ ! epp_string_ref m_new_password; /**< New client plain text password */ ! epp_Options_ref m_options; /**< Client options for the command/session */ + /// Null constructor epp_Credentials() {}; + /// Destructor virtual ~epp_Credentials() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_Credentials(epp_string _m_client_id, epp_string _m_password, *************** *** 57,61 **** }; ! epp_Credentials(epp_string_ref _m_client_id, epp_string_ref _m_password, --- 67,71 ---- }; ! /// Constructor, using only references epp_Credentials(epp_string_ref _m_client_id, epp_string_ref _m_password, *************** *** 70,73 **** --- 80,84 ---- }; + /// Typedef for the ref to the epp_Options class typedef refcnt_ptr<epp_Credentials> epp_Credentials_ref; Index: epp_DomainContact.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainContact.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainContact.h 20 Feb 2002 17:26:02 -0000 1.7 --- epp_DomainContact.h 22 Feb 2002 15:46:02 -0000 1.8 *************** *** 29,47 **** #define __EPP_DOMAINCONTACT_H #include "epp_domaindata.h" namespace eppobject { namespace domain { class epp_DomainContact { - public: ! epp_DomainContactType_ref m_type; ! eppobject::epp::epp_string_ref m_id; epp_DomainContact() {}; virtual ~epp_DomainContact() {}; ! // Note: Cannot set simple types to NULL epp_DomainContact(epp_DomainContactType _m_type, eppobject::epp::epp_string _m_id) --- 29,57 ---- #define __EPP_DOMAINCONTACT_H + /** @file epp_DomainContact.h + * @brief Definition of epp_DomainContact and epp_DomainContact_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" namespace eppobject { namespace domain { + /// Class containing information about the human or organizational + /// social information object associated with a domain object class epp_DomainContact { ! public: ! epp_DomainContactType_ref m_type; /**< Type of domain contact */ ! eppobject::epp::epp_string_ref m_id; /**< ID of domain contact */ + /// Null constructor epp_DomainContact() {}; + /// Destructor virtual ~epp_DomainContact() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainContact(epp_DomainContactType _m_type, eppobject::epp::epp_string _m_id) *************** *** 51,55 **** }; ! epp_DomainContact(epp_DomainContactType_ref _m_type, eppobject::epp::epp_string_ref _m_id) --- 61,65 ---- }; ! /// Constructor, using only references epp_DomainContact(epp_DomainContactType_ref _m_type, eppobject::epp::epp_string_ref _m_id) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_DomainContact> epp_DomainContact_ref; --- 69,74 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainContact class typedef refcnt_ptr<epp_DomainContact> epp_DomainContact_ref; Index: epp_DomainPeriod.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainPeriod.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_DomainPeriod.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_DomainPeriod.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,47 **** #define __EPP_DOMAINPERIOD_H #include "epp_domaindata.h" namespace eppobject { namespace domain { ! class epp_DomainPeriod { public: ! epp_DomainPeriodUnitType_ref m_unit; ! eppobject::epp::epp_short_ref m_value; ! epp_DomainPeriod() {}; virtual ~epp_DomainPeriod() {}; ! // Note: Cannot set simple types to NULL epp_DomainPeriod(epp_DomainPeriodUnitType _m_unit, eppobject::epp::epp_short _m_value) --- 29,56 ---- #define __EPP_DOMAINPERIOD_H + /** @file epp_DomainPeriod.h + * @brief Definition of epp_DomainPeriod and epp_DomainPeriod_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" namespace eppobject { namespace domain { ! ! /// Class describing registration period of the domain object class epp_DomainPeriod { + public: + epp_DomainPeriodUnitType_ref m_unit; /**< Unit type of the domain period */ + eppobject::epp::epp_short_ref m_value; /**< Value of domain period */ ! /// Null constructor epp_DomainPeriod() {}; + /// Destructor virtual ~epp_DomainPeriod() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainPeriod(epp_DomainPeriodUnitType _m_unit, eppobject::epp::epp_short _m_value) *************** *** 51,55 **** }; ! epp_DomainPeriod(epp_DomainPeriodUnitType_ref _m_unit, eppobject::epp::epp_short_ref _m_value) --- 60,64 ---- }; ! /// Constructor, using only references epp_DomainPeriod(epp_DomainPeriodUnitType_ref _m_unit, eppobject::epp::epp_short_ref _m_value) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_DomainPeriod> epp_DomainPeriod_ref; --- 68,73 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainPeriod class typedef refcnt_ptr<epp_DomainPeriod> epp_DomainPeriod_ref; Index: epp_DomainStatus.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainStatus.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_DomainStatus.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_DomainStatus.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,47 **** #define __EPP_DOMAINSTATUS_H #include "epp_domaindata.h" namespace eppobject { namespace domain { class epp_DomainStatus { public: ! epp_DomainStatusType_ref m_type; ! eppobject::epp::epp_string_ref m_lang; ! eppobject::epp::epp_string_ref m_value; epp_DomainStatus() {}; virtual ~epp_DomainStatus() {}; ! // Note: Cannot set simple types to NULL epp_DomainStatus(epp_DomainStatusType _m_type, eppobject::epp::epp_string _m_lang, --- 29,57 ---- #define __EPP_DOMAINSTATUS_H + /** @file epp_DomainStatus.h + * @brief Definition of epp_DomainStatus and epp_DomainStatus_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" namespace eppobject { namespace domain { + /// Class containing elements to describe a status of a domain class epp_DomainStatus { + public: ! epp_DomainStatusType_ref m_type; /**< Type of domain status */ ! eppobject::epp::epp_string_ref m_lang; /**< Language of the human-readable describing text (iso639) */ ! eppobject::epp::epp_string_ref m_value; /**< Human-readable text describing the rationale for the applied status */ + /// Null constructor epp_DomainStatus() {}; + /// Destructor virtual ~epp_DomainStatus() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainStatus(epp_DomainStatusType _m_type, eppobject::epp::epp_string _m_lang, *************** *** 53,57 **** }; ! epp_DomainStatus(epp_DomainStatusType_ref _m_type, eppobject::epp::epp_string_ref _m_lang, --- 63,67 ---- }; ! /// Constructor, using only references epp_DomainStatus(epp_DomainStatusType_ref _m_type, eppobject::epp::epp_string_ref _m_lang, *************** *** 63,67 **** }; }; ! typedef refcnt_ptr<epp_DomainStatus> epp_DomainStatus_ref; --- 73,78 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainStatus class typedef refcnt_ptr<epp_DomainStatus> epp_DomainStatus_ref; Index: epp_GenericCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_GenericCheckRsp.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_GenericCheckRsp.h 21 Feb 2002 14:07:27 -0000 1.1 --- epp_GenericCheckRsp.h 22 Feb 2002 15:46:02 -0000 1.2 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_GENERICCHECKRSP_H + /** @file epp_GenericCheckRsp.h + * @brief Definition of epp_GenericCheckRsp and epp_GenericCheckRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" #include "epp_CheckResult.h" *************** *** 34,46 **** namespace eppobject { namespace epp { class epp_GenericCheckRsp : public epp_GenericRsp { public: ! epp_check_result_seq_ref m_results; epp_GenericCheckRsp() {}; virtual ~epp_GenericCheckRsp() {} epp_GenericCheckRsp(epp_Response_ref _m_rsp, epp_check_result_seq_ref _m_results) --- 39,55 ---- namespace eppobject { namespace epp { + /// Class containing the generic/common elements of the server response to a <check> command class epp_GenericCheckRsp : public epp_GenericRsp { public: ! epp_check_result_seq_ref m_results; /**< Generic <check> response sequence */ + /// Null constructor epp_GenericCheckRsp() {}; + /// Destructor virtual ~epp_GenericCheckRsp() {} + /// Constructor epp_GenericCheckRsp(epp_Response_ref _m_rsp, epp_check_result_seq_ref _m_results) *************** *** 50,54 **** }; }; ! typedef refcnt_ptr<epp_GenericCheckRsp> epp_GenericCheckRsp_ref; --- 59,64 ---- }; }; ! ! /// Typedef for the ref to the epp_GenericCheckRsp class typedef refcnt_ptr<epp_GenericCheckRsp> epp_GenericCheckRsp_ref; Index: epp_GenericReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_GenericReq.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_GenericReq.h 21 Feb 2002 14:07:27 -0000 1.1 --- epp_GenericReq.h 22 Feb 2002 15:46:02 -0000 1.2 *************** *** 29,56 **** #define __EPP_GENERICREQ_H #include "epp_Command.h" namespace eppobject { namespace epp { class epp_GenericReq { public: ! //Data members: ! epp_Command_ref m_cmd; ! ! //Constructors: epp_GenericReq() {}; epp_GenericReq(epp_Command_ref _m_cmd) { m_cmd = _m_cmd; }; ! ! //Destructor: ! virtual ~epp_GenericReq() {}; ! }; ! typedef refcnt_ptr<epp_GenericReq> epp_GenericReq_ref; --- 29,62 ---- #define __EPP_GENERICREQ_H + /** @file epp_GenericReq.h + * @brief Definition of epp_GenericReq and epp_GenericReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_Command.h" namespace eppobject { namespace epp { + /// Class containing the generic and common elements of a client request class epp_GenericReq { public: + epp_Command_ref m_cmd; /**< Generic request element */ ! /// Null constructor epp_GenericReq() {}; + /// Destructor + virtual ~epp_GenericReq() {}; + + /// Constructor epp_GenericReq(epp_Command_ref _m_cmd) { m_cmd = _m_cmd; }; ! }; ! ! /// Typedef for the ref to the epp_GenericReq class typedef refcnt_ptr<epp_GenericReq> epp_GenericReq_ref; Index: epp_GenericRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_GenericRsp.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_GenericRsp.h 21 Feb 2002 14:07:27 -0000 1.1 --- epp_GenericRsp.h 22 Feb 2002 15:46:02 -0000 1.2 *************** *** 29,46 **** #define __EPP_GENERICRSP_H #include "epp_Response.h" namespace eppobject { namespace epp { class epp_GenericRsp { public: ! //Data members: ! epp_Response_ref m_rsp; ! ! //Constructors: epp_GenericRsp() {}; epp_GenericRsp(epp_Response_ref _m_rsp) { --- 29,54 ---- #define __EPP_GENERICRSP_H + /** @file epp_GenericRsp.h + * @brief Definition of epp_GenericRsp and epp_GenericRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_Response.h" namespace eppobject { namespace epp { + /// Class containing the generic and common elements of a server response class epp_GenericRsp { public: + epp_Response_ref m_rsp; /**< Generic response element */ ! /// Null constructor epp_GenericRsp() {}; + /// Destructor + virtual ~epp_GenericRsp() {}; + + /// Constructor epp_GenericRsp(epp_Response_ref _m_rsp) { *************** *** 48,56 **** }; - //Destructor: - virtual ~epp_GenericRsp() {}; - }; ! typedef refcnt_ptr<epp_GenericRsp> epp_GenericRsp_ref; --- 56,62 ---- }; }; ! ! /// Typedef for the ref to the epp_GenericRsp class typedef refcnt_ptr<epp_GenericRsp> epp_GenericRsp_ref; Index: epp_Greeting.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Greeting.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Greeting.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_Greeting.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_GREETING_H + /** @file epp_Greeting.h + * @brief Definition of epp_Greeting and epp_Greeting_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_Service.h" *************** *** 34,51 **** namespace eppobject { namespace epp { class epp_Greeting { public: ! epp_string_ref m_server_id; ! epp_datetime_ref m_server_date; ! epp_string_seq_ref m_versions; ! epp_string_seq_ref m_langs; ! epp_service_seq_ref m_services; ! epp_service_seq_ref m_unspec_services; epp_Greeting() {}; virtual ~epp_Greeting() {} ! // Note: Cannot set simple types to NULL epp_Greeting(epp_string _m_server_id, epp_datetime _m_server_date, --- 39,61 ---- namespace eppobject { namespace epp { + /// Class describing the server and its supported services class epp_Greeting { + public: ! epp_string_ref m_server_id; /**< Name of the server */ ! epp_datetime_ref m_server_date; /**< Current date and time in UTC of the server */ ! epp_string_seq_ref m_versions; /**< Protocol versions supported by the server */ ! epp_string_seq_ref m_langs; /**< ID of languages supported by the server (iso639) */ ! epp_service_seq_ref m_services; /**< Standard EPP objects that the server is capable of managing */ ! epp_service_seq_ref m_unspec_services; /**< Custom EPP object extensions supported by the server */ + /// Null constructor epp_Greeting() {}; + /// Destructor virtual ~epp_Greeting() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_Greeting(epp_string _m_server_id, epp_datetime _m_server_date, *************** *** 63,67 **** }; ! epp_Greeting(epp_string_ref _m_server_id, epp_datetime_ref _m_server_date, --- 73,77 ---- }; ! /// Constructor, using only references epp_Greeting(epp_string_ref _m_server_id, epp_datetime_ref _m_server_date, *************** *** 80,83 **** --- 90,94 ---- }; + /// Typedef for the ref to the epp_Greeting class typedef refcnt_ptr<epp_Greeting> epp_Greeting_ref; Index: epp_HostAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostAddress.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_HostAddress.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_HostAddress.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,47 **** #define __EPP_HOSTADDRESS_H #include "epp_hostdata.h" namespace eppobject { namespace host { class epp_HostAddress { public: ! epp_HostAddressType_ref m_type; ! eppobject::epp::epp_string_ref m_ip; ! epp_HostAddress() {}; virtual ~epp_HostAddress() {}; ! // Note: Cannot set simple types to NULL epp_HostAddress(epp_HostAddressType _m_type, eppobject::epp::epp_string _m_ip) --- 29,56 ---- #define __EPP_HOSTADDRESS_H + /** @file epp_HostAddress.h + * @brief Definition of epp_HostAddress and epp_HostAddress_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" namespace eppobject { namespace host { + /// Class containing information about a host address class epp_HostAddress { + public: + epp_HostAddressType_ref m_type; /**< Type of host address */ + eppobject::epp::epp_string_ref m_ip;/**< Host IP address */ ! /// Null constructor epp_HostAddress() {}; + /// Destructor virtual ~epp_HostAddress() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostAddress(epp_HostAddressType _m_type, eppobject::epp::epp_string _m_ip) *************** *** 51,55 **** }; ! epp_HostAddress(epp_HostAddressType_ref _m_type, eppobject::epp::epp_string_ref _m_ip) --- 60,64 ---- }; ! /// Constructor, using only references epp_HostAddress(epp_HostAddressType_ref _m_type, eppobject::epp::epp_string_ref _m_ip) *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_HostAddress> epp_HostAddress_ref; --- 68,73 ---- }; }; ! ! /// Typedef for the ref to the epp_HostAddress class typedef refcnt_ptr<epp_HostAddress> epp_HostAddress_ref; Index: epp_HostStatus.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostStatus.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_HostStatus.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_HostStatus.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 29,48 **** #define __EPP_HOSTSTATUS_H #include "epp_hostdata.h" namespace eppobject { namespace host { class epp_HostStatus { - public: ! epp_HostStatusType_ref m_type; ! eppobject::epp::epp_string_ref m_lang; ! eppobject::epp::epp_string_ref m_value; epp_HostStatus() {}; virtual ~epp_HostStatus() {}; ! // Note: Cannot set simple types to NULL epp_HostStatus(epp_HostStatusType _m_type, eppobject::epp::epp_string _m_lang, --- 29,57 ---- #define __EPP_HOSTSTATUS_H + /** @file epp_HostStatus.h + * @brief Definition of epp_HostStatus and epp_HostStatus_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" namespace eppobject { namespace host { + /// Class containing elements to describe a status of a host class epp_HostStatus { ! public: ! epp_HostStatusType_ref m_type; /**< Type of host status */ ! eppobject::epp::epp_string_ref m_lang; /**< Language of the human-readable describing text (iso639) */ ! eppobject::epp::epp_string_ref m_value; /**< Human-readable text describing the rationale for the applied status */ + /// Null constructor epp_HostStatus() {}; + /// Destructor virtual ~epp_HostStatus() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostStatus(epp_HostStatusType _m_type, eppobject::epp::epp_string _m_lang, *************** *** 54,58 **** }; ! epp_HostStatus(epp_HostStatusType_ref _m_type, eppobject::epp::epp_string_ref _m_lang, --- 63,67 ---- }; ! /// Constructor, using only references epp_HostStatus(epp_HostStatusType_ref _m_type, eppobject::epp::epp_string_ref _m_lang, *************** *** 65,68 **** --- 74,78 ---- }; + /// Typedef for the ref to the epp_HostStatus class typedef refcnt_ptr<epp_HostStatus> epp_HostStatus_ref; Index: epp_MessageQueue.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_MessageQueue.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_MessageQueue.h 20 Feb 2002 17:26:02 -0000 1.2 --- epp_MessageQueue.h 22 Feb 2002 15:46:02 -0000 1.3 *************** *** 29,46 **** #define __EPP_MESSAGEQUEUE_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_MessageQueue { - public: - epp_long_ref m_count; - epp_datetime_ref m_queue_date; epp_MessageQueue() {}; virtual ~epp_MessageQueue() {} ! ! // Note: Cannot set simple types to NULL epp_MessageQueue(epp_long _m_count, epp_datetime _m_queue_date) --- 29,56 ---- #define __EPP_MESSAGEQUEUE_H + /** @file epp_MessageQueue.h + * @brief Definition of epp_MessageQueue and epp_MessageQueue_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing information about service messages queued for client retrieval class epp_MessageQueue { + public: + epp_long_ref m_count; /**< Number of service messages queued for client retrieval */ + epp_datetime_ref m_queue_date; /**< Date and time that a particular message was enqueued */ + + /// Null constructor epp_MessageQueue() {}; + /// Destructor virtual ~epp_MessageQueue() {} ! ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_MessageQueue(epp_long _m_count, epp_datetime _m_queue_date) *************** *** 50,54 **** }; ! epp_MessageQueue(epp_long_ref _m_count, epp_datetime_ref _m_queue_date) --- 60,64 ---- }; ! /// Constructor, using only references epp_MessageQueue(epp_long_ref _m_count, epp_datetime_ref _m_queue_date) *************** *** 58,62 **** }; }; ! typedef refcnt_ptr<epp_MessageQueue> epp_MessageQueue_ref; --- 68,72 ---- }; }; ! /// Typedef for the ref to the epp_MessageQueue classe typedef refcnt_ptr<epp_MessageQueue> epp_MessageQueue_ref; Index: epp_Options.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Options.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Options.h 22 Feb 2002 09:35:42 -0000 1.6 --- epp_Options.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 42,47 **** public: ! epp_string_ref m_version; /**< Protocol version to be used for the command or ongoing server session*/ ! epp_string_ref m_lang; /**< Text response language to be used for the command or ongoing server session commands*/ /// Null constructor --- 42,47 ---- public: ! epp_string_ref m_version; /**< Protocol version to be used for the command or ongoing server session */ ! epp_string_ref m_lang; /**< Text response language to be used for the command or ongoing server session commands (iso639) */ /// Null constructor Index: epp_Response.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Response.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Response.h 22 Feb 2002 09:35:42 -0000 1.7 --- epp_Response.h 22 Feb 2002 15:46:02 -0000 1.8 *************** *** 46,53 **** public: ! epp_result_seq_ref m_results; /**< Structure to document the success or failure of command execution*/ ! epp_MessageQueue_ref m_message_queue; /**< Information about service messages queued for client retrieval*/ ! epp_xml_string_ref m_unspec_string; /**< Unspecified element used for server-defined response extensions*/ ! epp_TransID_ref m_trans_id; /**< Transaction identifier assigned by the server to the command*/ /// Null constructor --- 46,53 ---- public: ! epp_result_seq_ref m_results; /**< Structure to document the success or failure of command execution */ ! epp_MessageQueue_ref m_message_queue; /**< Information about service messages queued for client retrieval */ ! epp_xml_string_ref m_unspec_string; /**< Unspecified element used for server-defined response extensions */ ! epp_TransID_ref m_trans_id; /**< Transaction identifier assigned by the server to the command */ /// Null constructor Index: epp_Result.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Result.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Result.h 22 Feb 2002 09:35:42 -0000 1.6 --- epp_Result.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 44,52 **** public: ! epp_short_ref m_code; /**< Decimal number that describes the success or failure of the command*/ ! epp_string_ref m_msg; /**< Human-readable description of the response code*/ ! epp_string_ref m_lang; /**< Language of the human-readable response*/ ! epp_string_ref m_id; /**< ID to uniquely identify the message returned (used for the Poll command)*/ ! epp_string_seq_ref m_values; /**< Client-provided values that caused server error conditions*/ /// Null constructor --- 44,52 ---- public: ! epp_short_ref m_code; /**< Decimal number that describes the success or failure of the command */ ! epp_string_ref m_msg; /**< Human-readable description of the response code */ ! epp_string_ref m_lang; /**< Language of the human-readable response (iso639) */ ! epp_string_ref m_id; /**< ID to uniquely identify the message returned (used for the Poll command) */ ! epp_string_seq_ref m_values; /**< Client-provided values that caused server error conditions */ /// Null constructor Index: epp_Service.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Service.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_Service.h 22 Feb 2002 09:35:42 -0000 1.7 --- epp_Service.h 22 Feb 2002 15:46:02 -0000 1.8 *************** *** 42,48 **** public: ! epp_string_ref m_name; /**< Name of the service*/ ! epp_string_ref m_xmlns; /**< Namespace for the service*/ ! epp_string_ref m_schema_location; /**< Location of the schema for the service*/ /// Null constructor --- 42,48 ---- public: ! epp_string_ref m_name; /**< Name of the service */ ! epp_string_ref m_xmlns; /**< Namespace for the service */ ! epp_string_ref m_schema_location; /**< Location of the schema for the service */ /// Null constructor Index: epp_TransID.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_TransID.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_TransID.h 22 Feb 2002 09:35:42 -0000 1.6 --- epp_TransID.h 22 Feb 2002 15:46:02 -0000 1.7 *************** *** 43,48 **** public: ! epp_trid_ref m_client_trid; /**< Client transaction ID associated with the command*/ ! epp_trid_ref m_server_trid; /**< Server transaction ID assigned by and unique to the server*/ /// Null constructor --- 43,48 ---- public: ! epp_trid_ref m_client_trid; /**< Client transaction ID associated with the command */ ! epp_trid_ref m_server_trid; /**< Server transaction ID assigned by and unique to the server */ /// Null constructor Index: epp_XMLException.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_XMLException.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_XMLException.h 22 Feb 2002 09:35:42 -0000 1.7 --- epp_XMLException.h 22 Feb 2002 15:46:02 -0000 1.8 *************** *** 44,48 **** public: ! epp_string_ref m_error_message; /**< Text describing the encountered error*/ /// Null constructor --- 44,48 ---- public: ! epp_string_ref m_error_message; /**< Text describing the encountered error */ /// Null constructor |
From: Asbjorn M. <ste...@us...> - 2002-02-22 09:35:46
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv4756 Modified Files: epp_Command.h epp_ContactPhone.h epp_ContactVoice.h epp_Exception.h epp_Options.h epp_Response.h epp_Result.h epp_Service.h epp_TransID.h epp_XMLException.h Log Message: Documented classes using Javadocs comments... Index: epp_Command.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Command.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Command.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_Command.h 22 Feb 2002 09:35:42 -0000 1.6 *************** *** 29,32 **** --- 29,38 ---- #define __EPP_COMMAND_H + /** @file epp_Command.h + * @brief Definition of epp_Command and epp_Command_ref + * @author Asbjorn Steira Mikkelsen + */ + + #include "epp_eppdata.h" #include "epp_Credentials.h" *************** *** 35,50 **** namespace eppobject { namespace epp { class epp_Command { - public: ! epp_Credentials_ref m_creds; ! epp_Unspec_ref m_unspec; ! epp_trid_ref m_client_trid; epp_Command() {}; virtual ~epp_Command() {}; ! // Note: Cannot set simple types to NULL epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, --- 41,60 ---- namespace eppobject { namespace epp { + /// Class containing generic elements used in a request to the server class epp_Command { ! public: ! epp_Credentials_ref m_creds; /**< Client identity credentials element that provides client identity information*/ ! epp_Unspec_ref m_unspec; /**< Unspecified element used for server-defined command extensions*/ ! epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client*/ + /// Null constructor epp_Command() {}; + /// Destructor virtual ~epp_Command() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, *************** *** 56,60 **** }; ! epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, --- 66,70 ---- }; ! /// Constructor, using only references epp_Command(epp_Credentials_ref _m_creds, epp_Unspec_ref _m_unspec, *************** *** 67,70 **** --- 77,81 ---- }; + /// Typedef for the ref to the epp_Result class typedef refcnt_ptr<epp_Command> epp_Command_ref; Index: epp_ContactPhone.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactPhone.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_ContactPhone.h 20 Feb 2002 17:26:02 -0000 1.2 --- epp_ContactPhone.h 22 Feb 2002 09:35:42 -0000 1.3 *************** *** 29,47 **** #define __EPP_CONTACTPHONE_H #include "epp_contactdata.h" namespace eppobject { namespace contact { class epp_ContactPhone { - public: - - eppobject::epp::epp_string_ref m_extension; - eppobject::epp::epp_string_ref m_value; epp_ContactPhone() {}; virtual ~epp_ContactPhone() {}; ! // Note: Cannot set simple types to NULL epp_ContactPhone(eppobject::epp::epp_string _m_extension, eppobject::epp::epp_string _m_value) --- 29,56 ---- #define __EPP_CONTACTPHONE_H + /** @file epp_ContactPhone.h + * @brief Definition of epp_ContactPhone and epp_ContactPhone_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" namespace eppobject { namespace contact { + /// Class containing elements used to describe a Contact Telephone/Fax Number class epp_ContactPhone { + public: + eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension*/ + eppobject::epp::epp_string_ref m_value; /**< Telephone number*/ + + /// Null constructor epp_ContactPhone() {}; + /// Destructor virtual ~epp_ContactPhone() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactPhone(eppobject::epp::epp_string _m_extension, eppobject::epp::epp_string _m_value) *************** *** 51,55 **** }; ! epp_ContactPhone(eppobject::epp::epp_string_ref _m_extension, eppobject::epp::epp_string_ref _m_value) --- 60,64 ---- }; ! /// Constructor, using only references epp_ContactPhone(eppobject::epp::epp_string_ref _m_extension, eppobject::epp::epp_string_ref _m_value) *************** *** 60,63 **** --- 69,73 ---- }; + /// Typedef for the ref to the epp_ContactPhone class typedef refcnt_ptr<epp_ContactPhone> epp_ContactPhone_ref; Index: epp_ContactVoice.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactVoice.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactVoice.h 20 Feb 2002 17:26:02 -0000 1.7 --- epp_ContactVoice.h 22 Feb 2002 09:35:42 -0000 1.8 *************** *** 39,54 **** namespace eppobject { namespace contact { ! /** @deprecated Replaced by epp_ContactPhone */ class epp_ContactVoice { public: ! eppobject::epp::epp_string_ref m_extension; ! eppobject::epp::epp_string_ref m_value; epp_ContactVoice() {}; virtual ~epp_ContactVoice() {}; ! // Note: Cannot set simple types to NULL epp_ContactVoice(eppobject::epp::epp_string _m_extension, eppobject::epp::epp_string _m_value) --- 39,58 ---- namespace eppobject { namespace contact { ! /// Deprecated! Replaced by epp_ContactPhone class epp_ContactVoice { + public: ! eppobject::epp::epp_string_ref m_extension; /**< Telephone number extension*/ ! eppobject::epp::epp_string_ref m_value; /**< Telephone number*/ + /// Null constructor epp_ContactVoice() {}; + /// Destructor virtual ~epp_ContactVoice() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactVoice(eppobject::epp::epp_string _m_extension, eppobject::epp::epp_string _m_value) *************** *** 58,62 **** }; ! epp_ContactVoice(eppobject::epp::epp_string_ref _m_extension, eppobject::epp::epp_string_ref _m_value) --- 62,66 ---- }; ! /// Constructor, using only references epp_ContactVoice(eppobject::epp::epp_string_ref _m_extension, eppobject::epp::epp_string_ref _m_value) *************** *** 67,70 **** --- 71,75 ---- }; + /// Typedef for the ref to the epp_ContactVoice class typedef refcnt_ptr<epp_ContactVoice> epp_ContactVoice_ref; Index: epp_Exception.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Exception.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_Exception.h 20 Feb 2002 17:26:02 -0000 1.4 --- epp_Exception.h 22 Feb 2002 09:35:42 -0000 1.5 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_EXCEPTION_H + /** @file epp_Exception.h + * @brief Definition of epp_Exception + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_Result.h" *************** *** 37,49 **** namespace eppobject { namespace epp { class epp_Exception : public exception { - public: ! epp_result_seq_ref m_details; epp_Exception() {}; virtual ~epp_Exception() {}; epp_Exception(const epp_result_seq & data) throw() { --- 42,60 ---- namespace eppobject { namespace epp { + /// Exception class containing information about errors returned from the EPP server + /// or, if in the range 2600-2699, communication errors + /// @see epp_Session for more information about error codes class epp_Exception : public exception { ! public: ! epp_result_seq_ref m_details; /**< Object describing the encountered error(s)*/ + /// Null constructor epp_Exception() {}; + /// Destructor virtual ~epp_Exception() {}; + /// Constructor with error data epp_Exception(const epp_result_seq & data) throw() { *************** *** 51,55 **** }; ! // Kept for backwords compatibility: virtual epp_result_seq_ref getDetails() { --- 62,67 ---- }; ! /// Returns the error details ! /// @note Kept for backwards compatibility virtual epp_result_seq_ref getDetails() { Index: epp_Options.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Options.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Options.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_Options.h 22 Feb 2002 09:35:42 -0000 1.6 *************** *** 29,46 **** #define __EPP_OPTIONS_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_Options { public: ! epp_string_ref m_version; ! epp_string_ref m_lang; epp_Options() {}; virtual ~epp_Options() {} ! // Note: Cannot set simple types to NULL epp_Options(epp_string _m_version, epp_string _m_lang) --- 29,56 ---- #define __EPP_OPTIONS_H + /** @file epp_Options.h + * @brief Definition of epp_Options and epp_Options_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing elements used to describe client options for a command/session class epp_Options { + public: ! epp_string_ref m_version; /**< Protocol version to be used for the command or ongoing server session*/ ! epp_string_ref m_lang; /**< Text response language to be used for the command or ongoing server session commands*/ + /// Null constructor epp_Options() {}; + /// Destructor virtual ~epp_Options() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_Options(epp_string _m_version, epp_string _m_lang) *************** *** 50,54 **** }; ! epp_Options(epp_string_ref _m_version, epp_string_ref _m_lang) --- 60,64 ---- }; ! /// Constructor, using only references epp_Options(epp_string_ref _m_version, epp_string_ref _m_lang) *************** *** 59,62 **** --- 69,73 ---- }; + /// Typedef for the ref to the epp_Options class typedef refcnt_ptr<epp_Options> epp_Options_ref; Index: epp_Response.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Response.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Response.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_Response.h 22 Feb 2002 09:35:42 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_RESPONSE_H + /** @file epp_Response.h + * @brief Definition of epp_Response and epp_Response_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_Result.h" *************** *** 36,51 **** namespace eppobject { namespace epp { class epp_Response { public: ! epp_result_seq_ref m_results; ! epp_MessageQueue_ref m_message_queue; ! epp_xml_string_ref m_unspec_string; ! epp_TransID_ref m_trans_id; epp_Response() {}; virtual ~epp_Response() {}; epp_Response(epp_result_seq_ref _m_results, epp_MessageQueue_ref _m_message_queue, --- 41,61 ---- namespace eppobject { namespace epp { + /// Class containing elements used in the response from the server class epp_Response { + public: ! epp_result_seq_ref m_results; /**< Structure to document the success or failure of command execution*/ ! epp_MessageQueue_ref m_message_queue; /**< Information about service messages queued for client retrieval*/ ! epp_xml_string_ref m_unspec_string; /**< Unspecified element used for server-defined response extensions*/ ! epp_TransID_ref m_trans_id; /**< Transaction identifier assigned by the server to the command*/ + /// Null constructor epp_Response() {}; + /// Destructor virtual ~epp_Response() {}; + /// Constructor, using only references epp_Response(epp_result_seq_ref _m_results, epp_MessageQueue_ref _m_message_queue, *************** *** 59,63 **** }; }; ! typedef refcnt_ptr<epp_Response> epp_Response_ref; --- 69,74 ---- }; }; ! ! /// Typedef for the ref to the epp_Response class typedef refcnt_ptr<epp_Response> epp_Response_ref; Index: epp_Result.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Result.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Result.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_Result.h 22 Feb 2002 09:35:42 -0000 1.6 *************** *** 29,50 **** #define __EPP_RESULT_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_Result { public: ! epp_short_ref m_code; ! epp_string_ref m_msg; ! epp_string_ref m_lang; ! epp_string_ref m_id; ! epp_string_seq_ref m_values; epp_Result() {}; virtual ~epp_Result() {}; ! // Note: Cannot set simple types to NULL epp_Result(epp_short _m_code, epp_string _m_msg, --- 29,61 ---- #define __EPP_RESULT_H + /** @file epp_Result.h + * @brief Definition of epp_Result and epp_Result_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing elements used to describe success/failure of + /// a command in server responses class epp_Result { + public: ! epp_short_ref m_code; /**< Decimal number that describes the success or failure of the command*/ ! epp_string_ref m_msg; /**< Human-readable description of the response code*/ ! epp_string_ref m_lang; /**< Language of the human-readable response*/ ! epp_string_ref m_id; /**< ID to uniquely identify the message returned (used for the Poll command)*/ ! epp_string_seq_ref m_values; /**< Client-provided values that caused server error conditions*/ + /// Null constructor epp_Result() {}; + /// Destructor virtual ~epp_Result() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_Result(epp_short _m_code, epp_string _m_msg, *************** *** 60,64 **** }; ! epp_Result(epp_short_ref _m_code, epp_string_ref _m_msg, --- 71,75 ---- }; ! /// Constructor, using only references epp_Result(epp_short_ref _m_code, epp_string_ref _m_msg, *************** *** 75,78 **** --- 86,90 ---- }; + /// Typedef for the ref to the epp_Result class typedef refcnt_ptr<epp_Result> epp_Result_ref; Index: epp_Service.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Service.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Service.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_Service.h 22 Feb 2002 09:35:42 -0000 1.7 *************** *** 38,47 **** namespace eppobject { namespace epp { ! /// Information about a particular service offered through EPP class epp_Service { public: ! epp_string_ref m_name; /**< Name of the service */ ! epp_string_ref m_xmlns; /**< Namespace for the service */ ! epp_string_ref m_schema_location; /**< Location of the schema for the service */ /// Null constructor --- 38,48 ---- namespace eppobject { namespace epp { ! /// Class containing elements used to describe an EPP service class epp_Service { + public: ! epp_string_ref m_name; /**< Name of the service*/ ! epp_string_ref m_xmlns; /**< Namespace for the service*/ ! epp_string_ref m_schema_location; /**< Location of the schema for the service*/ /// Null constructor *************** *** 62,66 **** }; ! /// Constructor, using only ref's epp_Service(epp_string_ref _m_name, epp_string_ref _m_xmlns, --- 63,67 ---- }; ! /// Constructor, using only references epp_Service(epp_string_ref _m_name, epp_string_ref _m_xmlns, *************** *** 72,76 **** }; }; ! /// Typedef for the ref to the epp_Service class typedef refcnt_ptr<epp_Service> epp_Service_ref; --- 73,77 ---- }; }; ! /// Typedef for the ref to the epp_Service class typedef refcnt_ptr<epp_Service> epp_Service_ref; Index: epp_TransID.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_TransID.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_TransID.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_TransID.h 22 Feb 2002 09:35:42 -0000 1.6 *************** *** 29,47 **** #define __EPP_TRANSID_H #include "epp_eppdata.h" namespace eppobject { namespace epp { class epp_TransID { - public: ! epp_trid_ref m_client_trid; ! epp_trid_ref m_server_trid; epp_TransID() {}; ! virtual ~epp_TransID() {}; ! // Note: Cannot set simple types to NULL epp_TransID(epp_trid _m_client_trid, epp_trid _m_server_trid) --- 29,57 ---- #define __EPP_TRANSID_H + /** @file epp_TransID.h + * @brief Definition of epp_TransID and epp_TransID_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" namespace eppobject { namespace epp { + /// Class containing transaction ID elements assigned by the server + /// to the command for which the response is being returned class epp_TransID { ! public: ! epp_trid_ref m_client_trid; /**< Client transaction ID associated with the command*/ ! epp_trid_ref m_server_trid; /**< Server transaction ID assigned by and unique to the server*/ + /// Null constructor epp_TransID() {}; ! /// Destructor ! virtual ~epp_TransID() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_TransID(epp_trid _m_client_trid, epp_trid _m_server_trid) *************** *** 51,55 **** }; ! epp_TransID(epp_trid_ref _m_client_trid, epp_trid_ref _m_server_trid) --- 61,65 ---- }; ! /// Constructor, using only references epp_TransID(epp_trid_ref _m_client_trid, epp_trid_ref _m_server_trid) *************** *** 60,63 **** --- 70,74 ---- }; + /// Typedef for the ref to the epp_Result class typedef refcnt_ptr<epp_TransID> epp_TransID_ref; Index: epp_XMLException.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_XMLException.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_XMLException.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_XMLException.h 22 Feb 2002 09:35:42 -0000 1.7 *************** *** 29,48 **** #define __EPP_XMLEXCEPTION_H #include "epp_eppdata.h" #include <exception> #include <string> - namespace eppobject { namespace epp { ! class epp_XMLException : public exception { public: ! epp_string_ref m_error_message; ! epp_XMLException() {}; virtual ~epp_XMLException() {}; epp_XMLException(const epp_string & data) throw() { --- 29,56 ---- #define __EPP_XMLEXCEPTION_H + /** @file epp_XMLException.h + * @brief Definition of epp_XMLException + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include <exception> #include <string> namespace eppobject { namespace epp { ! ! /// Exception class containing information about an error occuring while parsing XML class epp_XMLException : public exception { + public: + epp_string_ref m_error_message; /**< Text describing the encountered error*/ ! /// Null constructor epp_XMLException() {}; + /// Destructor virtual ~epp_XMLException() {}; + /// Constructor with error data epp_XMLException(const epp_string & data) throw() { *************** *** 50,54 **** }; ! // Kept for backwords compatibility: virtual epp_string getString() { --- 58,63 ---- }; ! /// Returns the error string ! /// @note Kept for backwards compatibility virtual epp_string getString() { *************** *** 59,62 **** --- 68,72 ---- }; + /// Constructor with error data, file name, and line number epp_XMLException(const string file, const int lineno, const epp_string & data) throw() { |
From: Asbjorn M. <ste...@us...> - 2002-02-21 19:36:46
|
Update of /cvsroot/epp-rtk/epp-rtk/c++ In directory usw-pr-cvs1:/tmp/cvs-serv31752 Modified Files: configure.in Log Message: Reinstated deprecated functions, and they are of course marked deprecated. Index: configure.in =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/configure.in,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** configure.in 20 Feb 2002 16:27:24 -0000 1.3 --- configure.in 21 Feb 2002 18:28:07 -0000 1.4 *************** *** 25,29 **** #AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) AC_CHECK_HEADERS(parsers/DOMParser.hpp util/PlatformUtils.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) ! dnl Checks for typedefs, structures, and compiler characteristics. --- 25,31 ---- #AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) AC_CHECK_HEADERS(parsers/DOMParser.hpp util/PlatformUtils.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) ! #Only here for deprecated functions: ! AC_CHECK_HEADERS(dom/DOM.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) ! AC_CHECK_HEADERS(util/XMLString.hpp util/XMLUniDefs.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) dnl Checks for typedefs, structures, and compiler characteristics. |
From: Asbjorn M. <ste...@us...> - 2002-02-21 18:29:32
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv31752/src/data Modified Files: epp_contactXMLbase.cc epp_contactXMLbase.h epp_eppXMLbase.cc epp_eppXMLbase.h Log Message: Reinstated deprecated functions, and they are of course marked deprecated. Index: epp_contactXMLbase.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_contactXMLbase.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_contactXMLbase.cc 21 Feb 2002 17:20:22 -0000 1.8 --- epp_contactXMLbase.cc 21 Feb 2002 18:28:07 -0000 1.9 *************** *** 266,267 **** --- 266,363 ---- return contactStatusTypeMap[statusType]; } + + // Warning: This function is deprecated, use the dom_ptr version instead! + epp_ContactNameAddress eppobject::contact::parseAddress(const DOM_Node & adrNode) + { + epp_ContactNameAddress adrStruct; + + DOMString NS = adrNode.getNamespaceURI(); + + DOM_Node nodeName = ((DOM_Element*)&adrNode)->getElementsByTagNameNS(NS, "name").item(0); + if(nodeName.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing name-element in address"); + } + + string name; + getNodeData(nodeName, name); + adrStruct.m_name.ref(new epp_string(name)); + // cout << "name: " << *adrStruct.m_name << endl; + + DOM_Node nodeOrg = ((DOM_Element*)&adrNode)->getElementsByTagNameNS(NS, "org").item(0); + if(!nodeOrg.isNull()) + { + string org; + getNodeData(nodeOrg, org); + adrStruct.m_org.ref(new epp_string(org)); + // cout << "org: " << *adrStruct.m_org << endl; + } + + DOM_Node nodeAddr = ((DOM_Element*)&adrNode)->getElementsByTagNameNS(NS, "addr").item(0); + if(nodeAddr.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing addr-element in address"); + } + + adrStruct.m_address.ref(new epp_ContactAddress()); + + DOM_NodeList elemNodes = nodeAddr.getChildNodes(); + + if(elemNodes.getLength() == 0) + { + throw epp_XMLException(__FILE__, __LINE__, "Empty addr-element in address"); + } + + DOMString elemPrefix = nodeAddr.getPrefix(); + // <FIXME>This might not always work in all namespaces... (host:, obj:, osv)...</fixme> + + // <FIXME>Should we check that all mandatory fields present?</fixme> + for(unsigned int i = 0; i < elemNodes.getLength(); i++) + { + DOM_Node elNode = elemNodes.item(i); + + if(elNode.getNodeName().equals(elemPrefix + ":street")) { + string street; + getNodeData(elNode, street); + + if(adrStruct.m_address->m_street1 == NULL) + adrStruct.m_address->m_street1.ref(new epp_string(street)); + else if(adrStruct.m_address->m_street2 == NULL) + adrStruct.m_address->m_street2.ref(new epp_string(street)); + else if(adrStruct.m_address->m_street3 == NULL) + adrStruct.m_address->m_street3.ref(new epp_string(street)); + else + throw epp_XMLException(__FILE__, __LINE__, "Too many street-elements in addr-element"); + + // cout << "street: " << street << endl; + } + else if(elNode.getNodeName().equals(elemPrefix + ":city")) { + string city; + getNodeData(elNode, city); + adrStruct.m_address->m_city.ref(new epp_string(city)); + // cout << "city: " << *adrStruct.m_address->m_city << endl; + } + else if(elNode.getNodeName().equals(elemPrefix + ":sp")) { + string sp; + getNodeData(elNode, sp); + adrStruct.m_address->m_state_province.ref(new epp_string(sp)); + // cout << "sp: " << *adrStruct.m_address->m_state_province << endl; + } + else if(elNode.getNodeName().equals(elemPrefix + ":pc")) { + string pc; + getNodeData(elNode, pc); + adrStruct.m_address->m_postal_code.ref(new epp_string(pc)); + // cout << "pc: " << *adrStruct.m_address->m_postal_code << endl; + } + else if(elNode.getNodeName().equals(elemPrefix + ":cc")) { + string cc; + getNodeData(elNode, cc); + adrStruct.m_address->m_country_code.ref(new epp_string(cc)); + // cout << "cc: " << *adrStruct.m_address->m_country_code << endl; + } + + } + + return adrStruct; + } + Index: epp_contactXMLbase.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_contactXMLbase.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_contactXMLbase.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_contactXMLbase.h 21 Feb 2002 18:28:07 -0000 1.7 *************** *** 81,85 **** * @throw epp_XMLException If statusType is not a valid epp_ContactStatusType */ ! epp_ContactStatusType returnStatusEnumType(const eppobject::epp::epp_string & statusType); }}; #endif --- 81,94 ---- * @throw epp_XMLException If statusType is not a valid epp_ContactStatusType */ ! epp_ContactStatusType returnStatusEnumType(const eppobject::epp::epp_string & statusType); ! ! /** Parses an address DOM_Node and creates the corresonding epp_ContactNameAddress object ! * @param adrNode The address DOM_Node ! * @return The corresponding epp_ContactNameAddress object ! * @throw epp_XMLException If it is unable find the correct XML-elements in the Node ! * @deprecated Replaced by parseAddress(const domtools::dom_ptr & adrNode); ! */ ! epp_ContactNameAddress parseAddress(const DOM_Node & adrNode); ! }}; #endif Index: epp_eppXMLbase.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_eppXMLbase.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_eppXMLbase.cc 21 Feb 2002 17:20:22 -0000 1.11 --- epp_eppXMLbase.cc 21 Feb 2002 18:28:07 -0000 1.12 *************** *** 557,558 **** --- 557,938 ---- return eService; } + + + //Only deprecated functions below this, please... + + + // Warning: This function is deprecated, use the dom_ptr version instead! + epp_AuthInfo_ref eppobject::epp::createAuthInfoObject(DOM_Node authNode) + { + epp_AuthInfo_ref authObj(new epp_AuthInfo()); + + string type, roid, value; + getAttribute(authNode, "type", type); + getAttribute(authNode, "roid", roid); + getNodeData(authNode, value); + + if(!type.empty()) + authObj->m_type.ref(new epp_AuthInfoType(returnAuthInfoType(type))); + if(!roid.empty()) + authObj->m_roid.ref(new epp_roid(roid)); + if(!value.empty()) + authObj->m_value.ref(new epp_string(value)); + // cout << "authinfo: " << type << ", " << roid << ", " << value << endl; + + return authObj; + } + + + // Warning: This function is deprecated, use the dom_ptr version instead! + DOM_Document eppobject::epp::createDOM_Document(const epp_string & xml) + { + // <FIXME>For testing purposes only: + cout << "<Returned_XML>\n"; + cout << xml << endl; + cout << "\n</Returned_XML>\n"; + // </fixme> + + // Initialize Xerces + try { + XMLPlatformUtils::Initialize(); + } catch(...) { + throw epp_XMLException(__FILE__, __LINE__, "Unable to initialise Xerces-c"); + } + + domtools::xml_string_output out; + + DOMParser parser; + + MemBufInputSource * myXML = new MemBufInputSource + ( + (const XMLByte*)xml.c_str() + , strlen(xml.c_str()) + , "nothing" + , false + ); + + parser.setDoNamespaces(true); + parser.setToCreateXMLDeclTypeNode(true); + + try { + parser.parse(*myXML); + } + catch (...) { + delete myXML; + throw epp_XMLException(__FILE__, __LINE__, "Unable to parse string"); + } + + DOM_Document ret = parser.getDocument(); + + delete myXML; + + return ret; + } + + + // Warning: This function is deprecated, use the dom_ptr version instead! + DOM_Node eppobject::epp::getresDataInfo(const DOM_Node & responseNode, const string & tag) + { + if(responseNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); + } + + DOM_Node resDataNode = ((DOM_Element*)&responseNode)->getElementsByTagName("resData").item(0); + if(resDataNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Unable to find resData-element"); + } + + DOM_NodeList elemNodes = resDataNode.getChildNodes(); + + if(elemNodes.getLength() == 0) + { + throw epp_XMLException(__FILE__, __LINE__, "Empty resData-element"); + } + + DOM_Node elNode; + + for(unsigned int i = 0; i < elemNodes.getLength(); i++) + { + elNode = elemNodes.item(i); + + if(toString(elNode.getNodeName()).find(":" + tag) != string::npos) + return elNode; + } + + // Return empty element if it does not find the tag + return DOM_Node(); + } + + + // Warning: This function is deprecated, use the dom_ptr version instead! + // "resData" will not be handled here, since it will + // be different for different requests + epp_Response_ref eppobject::epp::createGenericResponse(DOM_Node & node) + { + epp_Response_ref res(new epp_Response); + + DOM_Node unspecNode = getSingleTag(node, "unspec"); + if(!unspecNode.isNull()) { + + DOM_NodeList elemNodes = unspecNode.getChildNodes(); + EPP_output outObject; + DomPrint dp(outObject); + + for(unsigned int i = 0; i < elemNodes.getLength(); i++) + { + dom_ptr unspecDPtr(new XercesNode(elemNodes.item(i))); + dp.putDOMTree(unspecDPtr); + } + + res->m_unspec_string.ref(new epp_xml_string(outObject.getString())); + // cout << "unspec: " << *res->m_unspec_string << endl; + } + + DOM_Node trIDNode = getSingleTag(node, "trID"); + + if(trIDNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing trID-element in response"); + } + + res->m_trans_id.ref(new epp_TransID()); + + DOM_Node svTRIDNode = ((DOM_Element*)&trIDNode)->getElementsByTagName("svTRID").item(0); + if(svTRIDNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing svTRID-element in response"); + } + + string svTRID; + getNodeData(svTRIDNode, svTRID); + res->m_trans_id->m_server_trid.ref(new epp_trid(svTRID)); + // cout << "svTRID: " << *res->m_trans_id->m_server_trid << endl; + + DOM_Node clTRIDNode = ((DOM_Element*)&trIDNode)->getElementsByTagName("clTRID").item(0); + if(!clTRIDNode.isNull()) + { + string clTRID; + getNodeData(clTRIDNode, clTRID); + res->m_trans_id->m_client_trid.ref(new epp_trid(clTRID)); + // cout << "clTRID: " << *res->m_trans_id->m_client_trid << endl; + } + + DOM_NodeList resultNodes = ((DOM_Element*)&node)->getElementsByTagName("result"); + if(resultNodes.getLength() == 0) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing result-element(s) in response"); + } + + res->m_results.ref(new epp_result_seq); + + for(unsigned int i = 0; i < resultNodes.getLength(); i++) + { + DOM_Node item = resultNodes.item(i); + epp_Result result; + + string code; + getAttribute(item,"code", code); + if(code.empty()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing code-attribute in result-element"); + } + + result.m_code.ref(new epp_short(atol(code.c_str()))); + // cout << "code: " << *result.m_code << endl; + + + DOM_Node msgNode = ((DOM_Element*)&item)->getElementsByTagName("msg").item(0); + if(msgNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing msg-element in result-element"); + } + + string msg; + getNodeData(msgNode,msg); + result.m_msg.ref(new epp_string(msg)); + // cout << "msg: " << *result.m_msg << endl; + + string lang; + getAttribute(msgNode,"lang", lang); + if(!lang.empty()) + { + result.m_lang.ref(new epp_string(lang)); + // cout << "lang: " << *result.m_lang << endl; + } + + string id; + getAttribute(msgNode, "id", id); + if(!id.empty()) + { + result.m_id.ref(new epp_string(id)); + // cout << "id: " << *result.m_id << endl; + } + + DOM_NodeList valueNodes = ((DOM_Element*)&item)->getElementsByTagName("value"); + + if(valueNodes.getLength() > 0) + { + + result.m_values.ref(new epp_string_seq); + + for(unsigned int i = 0; i < valueNodes.getLength(); i++) + { + DOM_Node valueNode = valueNodes.item(i); + string value; + getNodeData(valueNode, value); + result.m_values->push_back(epp_string(value)); + // cout << "value: " << value << endl; + } + } + res->m_results->push_back(result); + } // for + + DOM_Node msgQNode = getSingleTag(node, "msgQ"); + if(!msgQNode.isNull()) { + + res->m_message_queue.ref(new epp_MessageQueue()); + + string count; + getAttribute(msgQNode, "count", count); + res->m_message_queue->m_count.ref(new epp_long(atol(count.c_str()))); + // cout << "msgQ, count: " << count << endl; + + DOM_Node qDateNode = ((DOM_Element*)&msgQNode)->getElementsByTagName("qDate").item(0); + + if(!qDateNode.isNull()) + { + string qDate; + getNodeData(qDateNode, qDate); + res->m_message_queue->m_queue_date.ref(new epp_datetime(qDate)); + // cout << "msgQ, qDate: " << qDate << endl; + } + } + + // Throw exception if there is an error-condition... + if(*((res->m_results->front()).m_code) >= epp_Session::EPP_UNKNOWN_COMMAND) { + + epp_Exception throwMe = epp_Exception(*res->m_results); + + throw throwMe; + } + + return res; + } + + + // Warning: This function is deprecated, use the dom_ptr version instead! + epp_Greeting_ref eppobject::epp::createGreetingResponse(DOM_Node & node) + { + epp_Greeting_ref gr(new epp_Greeting()); + + DOM_Node svIDNode = getSingleTag(node, "svID"); + if(svIDNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing svID-element in response"); + } + else + { + string svID; + getNodeData(svIDNode, svID); + gr->m_server_id.ref(new epp_string(svID)); + // cout << "svID: " << *gr->m_server_id << endl; + } + + DOM_Node svDateNode = getSingleTag(node, "svDate"); + if(svDateNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing svDate-element in response"); + } + else + { + string svDate; + getNodeData(svDateNode, svDate); + gr->m_server_date.ref(new epp_datetime(svDate)); + // cout << "svDate: " << *gr->m_server_date << endl; + } + + DOM_Node svcMenuNode = getSingleTag(node, "svcMenu"); + if(svcMenuNode.isNull()) + { + throw epp_XMLException(__FILE__, __LINE__, "Missing svcMenu-element in response"); + } + + DOM_NodeList elemNodes = svcMenuNode.getChildNodes(); + + if(elemNodes.getLength() == 0) + { + throw epp_XMLException(__FILE__, __LINE__, "Empty svcMenu-element"); + } + + for(unsigned int i = 0; i < elemNodes.getLength(); i++) + { + DOM_Node elNode = elemNodes.item(i); + + if(elNode.getNodeName().equals("version")) { + if(gr->m_versions == NULL) + gr->m_versions.ref(new epp_string_seq); + + string value; + getNodeData(elNode, value); + + gr->m_versions->push_back(epp_string(value)); + // cout << "version: " << value << endl; + } + else if(elNode.getNodeName().equals("lang")) { + if(gr->m_langs == NULL) + gr->m_langs.ref(new epp_string_seq); + + string value; + getNodeData(elNode, value); + + gr->m_langs->push_back(epp_string(value)); + // cout << "lang: " << value << endl; + } + else if(toString(elNode.getNodeName()).find(":svc") != string::npos) { + if(gr->m_services == NULL) { + gr->m_services.ref(new epp_service_seq); + } + + epp_Service_ref eSer = createServiceObject(elNode); + if(eSer != NULL) { + // cout << *eSer.m_name << ": \n ns: " << *eSer.m_xmlns << "\n loc: " << sLocation << "\n"; + gr->m_services->push_back(*eSer); + } + } + else if(elNode.getNodeName().equals("unspec")) { + gr->m_unspec_services.ref(new epp_service_seq); + + DOM_NodeList serviceNodes = elNode.getChildNodes(); + + for(unsigned int i = 0; i < serviceNodes.getLength(); i++) + { + DOM_Node svcNode = serviceNodes.item(i); + if(toString(svcNode.getNodeName()).find(":svc") != string::npos) { + epp_Service_ref eSer = createServiceObject(svcNode); + if(eSer != NULL) { + // cout << *eSer.m_name << ": \n ns: " << *eSer.m_xmlns << "\n loc: " << sLocation << "\n"; + gr->m_unspec_services->push_back(*eSer); + } + } + } + } + } + return gr; + }; + + + // Warning: This function is deprecated, use the dom_ptr version instead! + epp_Service_ref eppobject::epp::createServiceObject(DOM_Node & node) + { + epp_Service_ref eService(new epp_Service()); + + eService->m_name.ref(new epp_string(toString(node.getPrefix()))); + eService->m_xmlns.ref(new epp_string(toString(node.getNamespaceURI()))); + string sLocation; + getAttribute(node, "xsi:schemaLocation", sLocation); + eService->m_schema_location.ref(new epp_string(sLocation)); + + return eService; + } Index: epp_eppXMLbase.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_eppXMLbase.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_eppXMLbase.h 20 Feb 2002 17:26:02 -0000 1.9 --- epp_eppXMLbase.h 21 Feb 2002 18:28:07 -0000 1.10 *************** *** 160,163 **** --- 160,217 ---- */ epp_Service_ref createServiceObject(domtools::dom_ptr & node); + + + //Only deprecated functions below this, please... + + /** Parses an authInfo DOM_Node and creates the corresponding epp_AuthInfo object + * @param authNode The authInfo DOM_Node + * @return The corresponding epp_AuthInfo object + * @deprecated Replaced by createAuthInfoObject(const domtools::dom_ptr & authNode); + */ + epp_AuthInfo_ref createAuthInfoObject(DOM_Node authNode); + + /** Parses an XML epp_string and generates a DOM_Document (DOM-tree) of it + * @param xml The XML epp_string to build a tree from + * @return The generated DOM_Document + * @throw epp_XMLException If it is unable to initialise the XML-parser + * @throw epp_XMLException If it is unable to parse the epp_string + * @deprecated Replaced by createDOMDocument(const epp_string & xml); + */ + DOM_Document createDOM_Document(const epp_string & xml); + + /** Parses a DOM_Node and returns the requested resData-tag + * @param responseNode The DOM_Node to investigate + * @param tag The resData-tag to look for and return + * @return The requested resData Dom_Node, or an empty DOM_Node if it cannot be found + * @throw epp_XMLException If it is unable find the correct XML-elements in the Node + * @deprecated Replaced by getresDataInfo(const domtools::dom_ptr & responseNode, const string & tag); + */ + DOM_Node getresDataInfo(const DOM_Node & responseNode, const string & tag); + + /** Parses a response DOM_Node and creates the corresponding epp_Response object + * @param node The response DOM_Node + * @return The corresponding epp_Response object + * @throw epp_XMLException If it is unable find the correct XML-elements in the Node + * @throw epp_Exception If there response node reports an error condition + * @deprecated Replaced by createGenericResponse(domtools::dom_ptr & node); + */ + epp_Response_ref createGenericResponse(DOM_Node & node); + + /** Parses a greeting DOM_Node and creates the corresponding epp_Greeting object + * @param node The greeting DOM_Node + * @return The corresponding epp_Greeting object + * @throw epp_XMLException If it is unable find the correct XML-elements in the Node + * @deprecated Replaced by createGreetingResponse(domtools::dom_ptr & node); + */ + epp_Greeting_ref createGreetingResponse(DOM_Node & node); + + /** Parses a service (svc) DOM_Node and creates the corresponding epp_Service object + * @param node The service (svc) DOM_Node + * @return The corresponding epp_Service object + * @throw epp_XMLException If it is unable find the correct XML-elements in the Node + * @deprecated Replaced by createServiceObject(domtools::dom_ptr & node); + */ + epp_Service_ref createServiceObject(DOM_Node & node); + }}; |
From: Asbjorn M. <ste...@us...> - 2002-02-21 18:08:39
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv6868 Modified Files: epp_ContactCheck.cc epp_DomainCheck.cc epp_HostCheck.cc Log Message: Better parsing of ":cd"-elements. Index: epp_ContactCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCheck.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_ContactCheck.cc 20 Feb 2002 17:26:01 -0000 1.6 --- epp_ContactCheck.cc 21 Feb 2002 17:08:20 -0000 1.7 *************** *** 135,143 **** if(exists == "+") chRes.m_exists.ref(new epp_boolean(true)); ! else chRes.m_exists.ref(new epp_boolean(false)); string value = chkChildNode->getNodeData(); ! chRes.m_value.ref(new epp_string(value)); // cout << "value: " << *chRes.m_value << endl; --- 135,148 ---- if(exists == "+") chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") chRes.m_exists.ref(new epp_boolean(false)); + else + throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); // cout << "value: " << *chRes.m_value << endl; Index: epp_DomainCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCheck.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_DomainCheck.cc 20 Feb 2002 17:26:01 -0000 1.6 --- epp_DomainCheck.cc 21 Feb 2002 17:08:20 -0000 1.7 *************** *** 131,139 **** if(exists == "+") chRes.m_exists.ref(new epp_boolean(true)); ! else chRes.m_exists.ref(new epp_boolean(false)); string value = chkChildNode->getNodeData(); ! chRes.m_value.ref(new epp_string(value)); // cout << "value: " << *chRes.m_value << endl; --- 131,144 ---- if(exists == "+") chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") chRes.m_exists.ref(new epp_boolean(false)); + else + throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); // cout << "value: " << *chRes.m_value << endl; Index: epp_HostCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_HostCheck.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_HostCheck.cc 20 Feb 2002 17:26:02 -0000 1.6 --- epp_HostCheck.cc 21 Feb 2002 17:08:20 -0000 1.7 *************** *** 134,142 **** if(exists == "+") chRes.m_exists.ref(new epp_boolean(true)); ! else chRes.m_exists.ref(new epp_boolean(false)); string value = chkChildNode->getNodeData(); ! chRes.m_value.ref(new epp_string(value)); // cout << "value: " << *chRes.m_value << endl; --- 134,147 ---- if(exists == "+") chRes.m_exists.ref(new epp_boolean(true)); ! else if(exists == "-") chRes.m_exists.ref(new epp_boolean(false)); + else + throw epp_XMLException(__FILE__, __LINE__, "Empty or unknown x-attribute"); string value = chkChildNode->getNodeData(); ! if(!value.empty()) ! chRes.m_value.ref(new epp_string(value)); ! else ! throw epp_XMLException(__FILE__, __LINE__, "Empty cd-element"); // cout << "value: " << *chRes.m_value << endl; |
From: Asbjorn M. <ste...@us...> - 2002-02-21 18:08:39
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv8612 Modified Files: epp_ContactDelete.cc epp_ContactUpdate.cc epp_DomainDelete.cc epp_DomainUpdate.cc epp_HostDelete.cc Log Message: Small bug in if-statements (nothing serious, though...)... Index: epp_ContactDelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactDelete.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactDelete.cc 20 Feb 2002 17:26:01 -0000 1.7 --- epp_ContactDelete.cc 21 Feb 2002 17:09:29 -0000 1.8 *************** *** 96,100 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 96,100 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); Index: epp_ContactUpdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactUpdate.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactUpdate.cc 20 Feb 2002 17:26:01 -0000 1.8 --- epp_ContactUpdate.cc 21 Feb 2002 17:09:29 -0000 1.9 *************** *** 101,105 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 101,105 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); Index: epp_DomainDelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainDelete.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainDelete.cc 20 Feb 2002 17:26:01 -0000 1.7 --- epp_DomainDelete.cc 21 Feb 2002 17:09:29 -0000 1.8 *************** *** 95,99 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 95,99 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); Index: epp_DomainUpdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainUpdate.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainUpdate.cc 20 Feb 2002 17:26:01 -0000 1.7 --- epp_DomainUpdate.cc 21 Feb 2002 17:09:29 -0000 1.8 *************** *** 99,103 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 99,103 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); Index: epp_HostDelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_HostDelete.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostDelete.cc 20 Feb 2002 17:26:02 -0000 1.7 --- epp_HostDelete.cc 21 Feb 2002 17:09:29 -0000 1.8 *************** *** 96,100 **** dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode.isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); --- 96,100 ---- dom_ptr responseNode = dom_ptr(doc->getTag("response")); ! if(responseNode->isNull()) { throw epp_XMLException(__FILE__, __LINE__, "Unable to find response-element"); |