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: Daniel M. <tub...@us...> - 2003-06-02 19:13:22
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv6414 Modified Files: main_domaintransfer.cc Log Message: updated the domain transfer example Index: main_domaintransfer.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaintransfer.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** main_domaintransfer.cc 28 Apr 2003 20:50:30 -0000 1.13 --- main_domaintransfer.cc 2 Jun 2003 19:13:18 -0000 1.14 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <string> #include <iostream> *************** *** 92,106 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 94,110 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:name=abc.tld:authinfo=123123:period=1"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 114,119 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 118,123 ---- string trID; ! if ( extraDataMap.find("trid") == extraDataMap.end() ) trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 124,187 **** epp_DomainTransferRsp_ref l_rsp; ! if(testDataMap.empty()) { ! ! // REQ-test: ! l_req->m_name.ref(new epp_string("example.com")); ! l_req->m_trans.ref(new epp_TransferRequest()); ! l_req->m_trans->m_op.ref(new epp_TransferOpType(REQUEST)); l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); - l_req->m_trans->m_auth_info->m_roid.ref(new epp_roid("JD1234-VRSN")); l_req->m_trans->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! l_req->m_period.ref(new epp_DomainPeriod(YEAR, 1)); ! ! ! l_obj->setRequestData(*l_req); ! ! test.processAction(l_obj); ! ! l_rsp = l_obj->getResponseData(); ! ! #ifndef TEST_IO_REQUEST2CERR ! printRsp(l_rsp); ! #endif ! ! cout << "\n----------------------------------\n"; ! ! ! // QUERY-test: ! *l_req->m_trans->m_op = QUERY; ! l_req->m_trans->m_auth_info.ref(NULL); ! l_req->m_period.ref(NULL); } - else { - if(testDataMap[2] != "-1") l_req->m_name.ref(new epp_string(testDataMap[2])); - - if(testDataMap[3] != "-1") { - l_req->m_trans.ref(new epp_TransferRequest()); - l_req->m_trans->m_op.ref(new epp_TransferOpType(returnTransferType(testDataMap[3]))); - } - - if(testDataMap[4] != "" && testDataMap[4] != "-1") { - l_req->m_period.ref(new epp_DomainPeriod(YEAR, atol(testDataMap[4].c_str()))); - } - - if(testDataMap[5] != "" && testDataMap[5] != "-1") { - l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); - l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); - l_req->m_trans->m_auth_info->m_value.ref(new epp_string(testDataMap[5])); - } } ! l_obj->setRequestData(*l_req); ! test.processAction(l_obj); ! l_rsp = l_obj->getResponseData(); ! #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); #endif return 0; --- 128,172 ---- epp_DomainTransferRsp_ref l_rsp; ! l_req->m_trans.ref(new epp_TransferRequest()); ! ! if ( extraDataMap.find("domain") == extraDataMap.end() ) { ! l_req->m_name.ref(new epp_string("example.com")); ! } else if ( ! extraDataMap["domain"].empty() ) { ! l_req->m_name.ref(new epp_string(extraDataMap["domain"])); ! } ! ! if ( extraDataMap.find("op") == extraDataMap.end() ) { ! l_req->m_trans->m_op.ref(new epp_TransferOpType(QUERY)); ! } else if ( ! extraDataMap["op"].empty() ) { ! l_req->m_trans->m_op.ref(new epp_TransferOpType(returnTransferType(extraDataMap["op"]))); ! } ! ! if ( extraDataMap.find("authinfo") == extraDataMap.end() ) { l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_trans->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } else if ( ! extraDataMap["authinfo"].empty() ) { ! l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); ! l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! l_req->m_trans->m_auth_info->m_value.ref(new epp_string(extraDataMap["authinfo"])); } + if ( extraDataMap.find("period") != extraDataMap.end() ) { + l_req->m_period.ref(new epp_DomainPeriod(YEAR, atoi(extraDataMap["period"].c_str()))); } ! l_obj->setRequestData(*l_req); ! test.processAction(l_obj); ! l_rsp = l_obj->getResponseData(); ! #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); #endif + + cout << "\n----------------------------------\n"; + + return 0; |
From: Daniel M. <tub...@us...> - 2003-06-02 19:13:03
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv6126 Modified Files: main_contacttransfer.cc Log Message: rework the checks for parameters to allow the user to specify blank params Index: main_contacttransfer.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contacttransfer.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** main_contacttransfer.cc 30 May 2003 19:11:00 -0000 1.15 --- main_contacttransfer.cc 2 Jun 2003 19:12:59 -0000 1.16 *************** *** 126,146 **** l_req->m_trans.ref(new epp_TransferRequest()); ! if(extraDataMap["id"].empty()) { l_req->m_id.ref(new epp_string("sh8013")); ! } else { l_req->m_id.ref(new epp_string(extraDataMap["id"])); } ! if(extraDataMap["op"].empty()) { l_req->m_trans->m_op.ref(new epp_TransferOpType(QUERY)); ! } else { l_req->m_trans->m_op.ref(new epp_TransferOpType(returnTransferType(extraDataMap["op"]))); } ! if(extraDataMap["authinfo"].empty()) { l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_trans->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } else { l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); --- 126,146 ---- l_req->m_trans.ref(new epp_TransferRequest()); ! if ( extraDataMap.find("id") == extraDataMap.end() ) { l_req->m_id.ref(new epp_string("sh8013")); ! } else if ( ! extraDataMap["id"].empty() ) { l_req->m_id.ref(new epp_string(extraDataMap["id"])); } ! if ( extraDataMap.find("op") == extraDataMap.end() ) { l_req->m_trans->m_op.ref(new epp_TransferOpType(QUERY)); ! } else if ( ! extraDataMap["op"].empty() ) { l_req->m_trans->m_op.ref(new epp_TransferOpType(returnTransferType(extraDataMap["op"]))); } ! if ( extraDataMap.find("authinfo") == extraDataMap.end() ) { l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_trans->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } else if ( ! extraDataMap["authinfo"].empty() ) { l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); |
From: Daniel M. <tub...@us...> - 2003-06-02 18:51:10
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv23835 Modified Files: main_domainrenew.cc Log Message: updated domain renew Index: main_domainrenew.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domainrenew.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** main_domainrenew.cc 28 Apr 2003 20:50:29 -0000 1.13 --- main_domainrenew.cc 2 Jun 2003 18:51:04 -0000 1.14 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <vector> #include <iostream> *************** *** 71,85 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 73,89 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:name=abc.tld:period=1"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 93,98 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 97,102 ---- string trID; ! if(extraDataMap.empty()) trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 100,115 **** epp_trid(trID))); ! if(testDataMap.empty()) { ! l_req->m_name.ref(new epp_string("example.com")); ! l_req->m_current_expiration_date.ref(new epp_date("2000-04-03")); ! l_req->m_period.ref(new epp_DomainPeriod(YEAR, 5)); ! } ! else { ! if(testDataMap[2] != "-1") l_req->m_name.ref(new epp_string(testDataMap[2])); ! ! if(testDataMap[3] != "-1") l_req->m_period.ref(new epp_DomainPeriod(YEAR, atol(testDataMap[3].c_str()))); ! ! if(testDataMap[4] != "-1") l_req->m_current_expiration_date.ref(new epp_date(testDataMap[4])); ! } epp_DomainRenew_ref l_obj(new epp_DomainRenew()); --- 104,113 ---- epp_trid(trID))); ! if(extraDataMap.find("domain") == extraDataMap.end()) l_req->m_name.ref(new epp_string("example.com")); ! else l_req->m_name.ref(new epp_string(extraDataMap["domain"])); ! if(extraDataMap.find("exp") == extraDataMap.end()) l_req->m_current_expiration_date.ref(new epp_date("2000-04-03")); ! else l_req->m_current_expiration_date.ref(new epp_date(extraDataMap["exp"])); ! if(extraDataMap.find("period") == extraDataMap.end()) l_req->m_period.ref(new epp_DomainPeriod(YEAR, 5)); ! else if ( ! extraDataMap["period"].empty() ) l_req->m_period.ref(new epp_DomainPeriod(YEAR, atoi(extraDataMap["period"].c_str()))); epp_DomainRenew_ref l_obj(new epp_DomainRenew()); |
From: Daniel M. <tub...@us...> - 2003-06-02 18:41:29
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv17504 Modified Files: main_domaininfo.cc Log Message: updated domain info example Index: main_domaininfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaininfo.cc,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** main_domaininfo.cc 28 Apr 2003 20:50:29 -0000 1.14 --- main_domaininfo.cc 2 Jun 2003 18:41:24 -0000 1.15 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <string> #include <iostream> *************** *** 71,79 **** } 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; } } --- 73,82 ---- } if(i->m_lang != NULL) ! cerr << " lang=\"" << *i->m_lang << "\""; ! if(i->m_value != NULL) { ! cerr << ">"<<*i->m_value<<"</domain:status>"<<endl; ! } else { ! cerr << "/>" << endl; ! } } } *************** *** 145,166 **** 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; } --- 148,172 ---- cerr << "<domain:authInfo"; 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) { ! string type; ! ! if(req->m_auth_info->m_type != NULL) { ! switch(*req->m_auth_info->m_type) { ! case eppobject::epp::PW: type = "pw"; break; ! case eppobject::epp::EXT: type = "ext"; break; ! default: type = "**UNKNOWN**"; ! } ! } ! ! cerr << "\n\t<domain:"<<type<<">"<<*req->m_auth_info->m_value<<"</domain:"<<type<<">\n"; ! } ! cerr << "</domain/:authInfo>" << endl; } *************** *** 180,194 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 186,202 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:name=abc.tld"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 202,207 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new eppobject::epp::epp_Command(NULL, --- 210,215 ---- string trID; ! if(extraDataMap.empty()) trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new eppobject::epp::epp_Command(NULL, *************** *** 209,217 **** eppobject::epp::epp_trid(trID))); ! if(testDataMap.empty()) { l_req->m_name.ref(new eppobject::epp::epp_string("example.com")); } else { ! l_req->m_name.ref(new eppobject::epp::epp_string(testDataMap[2])); } --- 217,225 ---- eppobject::epp::epp_trid(trID))); ! if(extraDataMap.find("domain") == extraDataMap.end()) { l_req->m_name.ref(new eppobject::epp::epp_string("example.com")); } else { ! l_req->m_name.ref(new eppobject::epp::epp_string(extraDataMap["domain"])); } |
From: Daniel M. <tub...@us...> - 2003-06-02 17:56:36
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv28118 Modified Files: main_domaincreate.cc Log Message: updated domain create example for new params and better example logic Index: main_domaincreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaincreate.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** main_domaincreate.cc 28 Apr 2003 20:50:28 -0000 1.13 --- main_domaincreate.cc 2 Jun 2003 17:46:16 -0000 1.14 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <vector> #include <iostream> *************** *** 75,89 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 77,93 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:name=abc.tld:period=1:ns1=asdf:ns2=asdf{:...}:reg=abc:contact1=t;abc{:...}:authinfo=pw;38239]"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 97,102 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 101,106 ---- string trID; ! if(extraDataMap.empty()) trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 104,155 **** epp_trid(trID))); ! if(testDataMap.empty()) { ! l_req->m_name.ref(new epp_string("example.com")); ! l_req->m_period.ref(new epp_DomainPeriod(YEAR, 2)); ! l_req->m_name_servers.ref(new epp_string_seq()); ! l_req->m_name_servers->push_back("ns1.example.com"); ! l_req->m_name_servers->push_back("ns2.example.com"); ! l_req->m_registrant.ref(new epp_string("jd1234")); ! ! l_req->m_contacts.ref(new epp_domain_contact_seq()); ! epp_DomainContact Cont1(ADMIN, epp_string("sh8013")); ! epp_DomainContact Cont2(TECH, epp_string ("sh8013")); ! l_req->m_contacts->push_back(Cont1); l_req->m_contacts->push_back(Cont2); ! l_req->m_auth_info.ref(new epp_AuthInfo()); l_req->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } ! else { ! if(testDataMap[2] != "-1") l_req->m_name.ref(new epp_string(testDataMap[2])); ! ! if(testDataMap[3] != "-1") l_req->m_period.ref(new epp_DomainPeriod(YEAR, atol(testDataMap[3].c_str()))); ! ! if(testDataMap[4] != "-1") { l_req->m_auth_info.ref(new epp_AuthInfo()); ! l_req->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! l_req->m_auth_info->m_value.ref(new epp_string(testDataMap[4])); ! } ! ! if(testDataMap[5] != "-1") l_req->m_registrant.ref(new epp_string(testDataMap[5])); ! ! l_req->m_contacts.ref(new epp_domain_contact_seq()); ! ! if(testDataMap[6] != "-1") l_req->m_contacts->push_back(epp_DomainContact(ADMIN, epp_string(testDataMap[6]))); ! if(testDataMap[7] != "-1") l_req->m_contacts->push_back(epp_DomainContact(TECH, epp_string(testDataMap[7]))); ! if(testDataMap[8] != "-1") l_req->m_contacts->push_back(epp_DomainContact(BILLING, epp_string(testDataMap[8]))); ! ! if(!testDataMap[9].empty()) { ! l_req->m_name_servers.ref(new epp_string_seq()); ! ! for(unsigned int n = 9; n <= testDataMap.size(); n++) { ! l_req->m_name_servers->push_back(testDataMap[n]); ! } ! } ! ! } epp_DomainCreate_ref l_obj(new epp_DomainCreate()); --- 108,178 ---- epp_trid(trID))); ! if ( extraDataMap.find("domain") == extraDataMap.end() ) l_req->m_name.ref(new epp_string("example.com")); ! else l_req->m_name.ref(new epp_string(extraDataMap["domain"])); ! if ( extraDataMap.find("period") == extraDataMap.end() ) l_req->m_period.ref(new epp_DomainPeriod(YEAR, 2)); ! else if ( ! extraDataMap["period"].empty() ) l_req->m_period.ref(new epp_DomainPeriod(YEAR,atoi(extraDataMap["period"].c_str()))); ! ! l_req->m_name_servers.ref(new epp_string_seq()); ! if ( extraDataMap.find("ns1") == extraDataMap.end() ) { ! l_req->m_name_servers->push_back("ns1.example.com"); ! l_req->m_name_servers->push_back("ns2.example.com"); ! } else { ! char key[5]; ! for(unsigned int n = 1; n <= 14; n++) { ! sprintf(key,"ns%d",n); ! if ( extraDataMap.find(key) == extraDataMap.end() ) break; ! if ( extraDataMap[key] == "-1" ) break; ! l_req->m_name_servers->push_back(extraDataMap[key]); ! } ! } ! if ( extraDataMap.find("reg") == extraDataMap.end() ) l_req->m_registrant.ref(new epp_string("jd1234")); ! else l_req->m_registrant.ref(new epp_string(extraDataMap["reg"])); ! ! l_req->m_contacts.ref(new epp_domain_contact_seq()); ! if ( extraDataMap.find("contact1") == extraDataMap.end() ) { ! epp_DomainContact Cont1(ADMIN, epp_string("sh8013")); l_req->m_contacts->push_back(Cont1); + epp_DomainContact Cont2(TECH, epp_string("sh8013")); l_req->m_contacts->push_back(Cont2); ! } else { ! char key[10]; // contactxx ! for(unsigned int n = 1; n <= 10; n++) { ! sprintf(key,"contact%d",n); ! if ( extraDataMap.find(key) == extraDataMap.end() ) break; ! epp_DomainContact contact; ! string type, value; ! if ( ! extraDataMap[key].empty() ) { ! // contact1=t/abc ! // contact2=a/qwerty ! // etc... ! type = extraDataMap[key].substr(0,1); ! value = extraDataMap[key].substr(2); ! if ( type == "t" ) contact.m_type.ref(new epp_DomainContactType(TECH)); ! if ( type == "a" ) contact.m_type.ref(new epp_DomainContactType(ADMIN)); ! if ( type == "b" ) contact.m_type.ref(new epp_DomainContactType(BILLING)); ! contact.m_id.ref(new epp_string(value)); ! l_req->m_contacts->push_back(contact); ! } ! } ! } ! ! if ( extraDataMap.find("authinfo") == extraDataMap.end() ) { l_req->m_auth_info.ref(new epp_AuthInfo()); l_req->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } else { ! string authinfo = extraDataMap["authinfo"]; ! string type, value; ! unsigned int sep = authinfo.find("/"); ! if ( sep != string::npos ) { ! type = authinfo.substr(0,sep); ! value = authinfo.substr(sep+1); l_req->m_auth_info.ref(new epp_AuthInfo()); ! if ( type == "pw" ) l_req->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! if ( type == "ext" ) l_req->m_auth_info->m_type.ref(new epp_AuthInfoType(EXT)); ! l_req->m_auth_info->m_value.ref(new epp_string(value)); ! } } + epp_DomainCreate_ref l_obj(new epp_DomainCreate()); |
From: Daniel M. <tub...@us...> - 2003-06-02 17:50:07
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv29544 Modified Files: main_domaindelete.cc Log Message: domain delete updated Index: main_domaindelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaindelete.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** main_domaindelete.cc 28 Apr 2003 20:50:28 -0000 1.12 --- main_domaindelete.cc 2 Jun 2003 17:50:02 -0000 1.13 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <string> #include <iostream> *************** *** 59,73 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 61,77 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:name=abc.tld"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 81,86 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 85,90 ---- string trID; ! if(extraDataMap.empty()) trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 88,96 **** epp_trid(trID))); ! if(testDataMap.empty()) { l_req->m_name.ref(new epp_string("example.com")); } else { ! l_req->m_name.ref(new epp_string(testDataMap[2])); } --- 92,100 ---- epp_trid(trID))); ! if(extraDataMap.find("domain") == extraDataMap.end()) { l_req->m_name.ref(new epp_string("example.com")); } else { ! l_req->m_name.ref(new epp_string(extraDataMap["domain"])); } |
From: Daniel M. <tub...@us...> - 2003-06-02 17:41:11
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv24767 Modified Files: main_domaincheck.cc Log Message: make the domain check example allow the user to specify no domain names Index: main_domaincheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaincheck.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** main_domaincheck.cc 2 Jun 2003 15:42:45 -0000 1.13 --- main_domaincheck.cc 2 Jun 2003 17:41:04 -0000 1.14 *************** *** 125,129 **** epp_string_seq_ref names(new epp_string_seq()); ! if(extraDataMap["name1"].empty()) { names->push_back("example1.com"); names->push_back("example2.com"); --- 125,129 ---- epp_string_seq_ref names(new epp_string_seq()); ! if(extraDataMap.find("name1") == extraDataMap.end()) { names->push_back("example1.com"); names->push_back("example2.com"); |
From: Daniel M. <tub...@us...> - 2003-06-02 17:35:37
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv22230 Modified Files: main_contactcreate.cc Log Message: made the extra params a little easier to use Index: main_contactcreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactcreate.cc,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** main_contactcreate.cc 30 May 2003 15:50:26 -0000 1.17 --- main_contactcreate.cc 2 Jun 2003 17:35:33 -0000 1.18 *************** *** 75,79 **** string username, password; ! string extra_usage = "[-extradata=trid=xxx:contact=id;auth_info;name;org;street1;street2;street3;city;state;country;postal;phone;ext;email;fax;ext]"; if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; --- 75,80 ---- string username, password; ! string extra_usage("[-extradata=trid=xxx:contact=id;auth_info;name;org;street1;street2;street3;city;state;country;postal;phone;ext;email;fax;ext]\n"); ! extra_usage.append("\tIf you included space in the contact name, org or address element,\n\tyou need to quote the entire 'contact' param"); if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; *************** *** 140,150 **** unsigned int end; ! while((end = contactDataStr.find(';')) != string::npos) { string tmp = contactDataStr.substr(0,end); ! cout << "The extradata string token ["<< tmp <<"]" << endl; ! if( ! tmp.empty() ) { ! contactData.push_back(tmp); ! } contactDataStr.erase(0,end+1); --- 141,149 ---- unsigned int end; ! while((end = contactDataStr.find('/')) != string::npos) { string tmp = contactDataStr.substr(0,end); ! cout << "The contact data string token ["<< tmp <<"]" << endl; ! contactData.push_back(tmp); contactDataStr.erase(0,end+1); *************** *** 152,161 **** } // while ! if ( ! contactDataStr.empty() ) { ! contactData.push_back(contactDataStr); ! } ! if(contactData[0] != "-1") l_req->m_id.ref(new epp_string(contactData[0])); --- 151,159 ---- } // while ! contactData.push_back(contactDataStr); ! while ( contactData.size() != 16 ) contactData.push_back(""); ! cout << "building the contact...\n"; if(contactData[0] != "-1") l_req->m_id.ref(new epp_string(contactData[0])); *************** *** 198,201 **** --- 196,201 ---- } + + cout << "Creating the contact create request...\n"; epp_ContactCreate_ref l_obj(new epp_ContactCreate()); |
From: Daniel M. <tub...@us...> - 2003-06-02 15:42:50
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv28123 Modified Files: epp_DomainCheck.cc main_domaincheck.cc Log Message: brought domain check into the new millenium Index: epp_DomainCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_DomainCheck.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_DomainCheck.cc 13 May 2003 22:55:50 -0000 1.11 --- epp_DomainCheck.cc 2 Jun 2003 15:42:45 -0000 1.12 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include "config.h" #include "epp_DomainCheck.h" Index: main_domaincheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_domaincheck.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** main_domaincheck.cc 28 Apr 2003 20:50:28 -0000 1.12 --- main_domaincheck.cc 2 Jun 2003 15:42:45 -0000 1.13 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <vector> #include <iostream> *************** *** 90,104 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 92,108 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:name1=abc:name2=def:...]"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 112,117 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 116,121 ---- string trID; ! if(extraDataMap.empty()) trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 121,125 **** epp_string_seq_ref names(new epp_string_seq()); ! if(testDataMap.empty()) { names->push_back("example1.com"); names->push_back("example2.com"); --- 125,129 ---- epp_string_seq_ref names(new epp_string_seq()); ! if(extraDataMap["name1"].empty()) { names->push_back("example1.com"); names->push_back("example2.com"); *************** *** 127,132 **** } else { ! for(unsigned int n = 2; n <= testDataMap.size(); n++) { ! names->push_back(testDataMap[n]); } } --- 131,139 ---- } else { ! char key[7]; ! for(unsigned int n = 1; n <= 30; n++) { ! sprintf(key,"name%d",n); ! if ( extraDataMap[key].empty() ) break; ! names->push_back(extraDataMap[key]); } } |
From: Daniel M. <tub...@us...> - 2003-06-02 15:42:30
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv26666/data Modified Files: epp_Command.h Log Message: fixed null pointer problems in the backward compatible constructors Index: epp_Command.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Command.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_Command.h 13 May 2003 22:55:51 -0000 1.11 --- epp_Command.h 2 Jun 2003 15:42:26 -0000 1.12 *************** *** 46,49 **** --- 46,50 ---- public: epp_extension_seq_ref m_extentions; /**< Extension elements used for server-defined command extensions */ + epp_Extension_ref m_ext; /**< DEPRECATED 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 */ *************** *** 56,80 **** /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL ! /// @deprecated Credentials are no longer present epp_Command(const epp_Credentials_ref & _m_creds, const epp_Extension_ref & _m_ext, const epp_trid & _m_client_trid) { ! m_extentions = new(epp_extension_seq); ! epp_Extension ext(*_m_ext); ! m_extentions->push_back(ext); m_client_trid.ref(new epp_trid(_m_client_trid)); }; /// Constructor, using only references ! /// @deprecated Credentials are no longer present epp_Command(const epp_Credentials_ref & _m_creds, const epp_Extension_ref & _m_ext, const epp_trid_ref & _m_client_trid) { ! m_extentions = new(epp_extension_seq); ! epp_Extension ext(*_m_ext); ! m_extentions->push_back(ext); ! m_client_trid = _m_client_trid; }; --- 57,77 ---- /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL ! /// @deprecated Credentials are no longer present and extension is an array epp_Command(const epp_Credentials_ref & _m_creds, const epp_Extension_ref & _m_ext, const epp_trid & _m_client_trid) { ! m_ext = _m_ext; m_client_trid.ref(new epp_trid(_m_client_trid)); }; /// Constructor, using only references ! /// @deprecated Credentials are no longer present and extension is an array epp_Command(const epp_Credentials_ref & _m_creds, const epp_Extension_ref & _m_ext, const epp_trid_ref & _m_client_trid) { ! m_ext = _m_ext; ! m_client_trid = _m_client_trid; }; |
From: Daniel M. <tub...@us...> - 2003-05-30 21:56:32
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv14937/data Modified Files: epp_ContactCreateReq.h epp_ContactInfoRsp.h epp_ContactUpdateChange.h Log Message: got contact update working. also made the m_addresses def's in the classes consistent and added cvs header lines Index: epp_ContactCreateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCreateReq.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** epp_ContactCreateReq.h 27 May 2003 22:05:13 -0000 1.12 --- epp_ContactCreateReq.h 30 May 2003 21:56:28 -0000 1.13 *************** *** 50,54 **** public: eppobject::epp::epp_string_ref m_id; /**< Desired server-unique identifier for the contact to be created */ ! epp_ContactNameAddress_seq_ref m_addresses; /**< Address elements, has both localized and internationalize */ epp_ContactNameAddress_ref m_ascii_address; /**< deprecated: Address element, using the 7-bit US-ASCII character set */ epp_ContactNameAddress_ref m_i15d_address; /**< deprecated: Internationalized address element, using unrestricted UTF-8 */ --- 50,54 ---- public: eppobject::epp::epp_string_ref m_id; /**< Desired server-unique identifier for the contact to be created */ ! epp_ContactNameAddress_seq_ref m_addresses; /**< Address elements, using either UTF8 or 7-bit US-ASCII character sets */ epp_ContactNameAddress_ref m_ascii_address; /**< deprecated: Address element, using the 7-bit US-ASCII character set */ epp_ContactNameAddress_ref m_i15d_address; /**< deprecated: Internationalized address element, using unrestricted UTF-8 */ Index: epp_ContactInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoRsp.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** epp_ContactInfoRsp.h 30 May 2003 17:58:19 -0000 1.13 --- epp_ContactInfoRsp.h 30 May 2003 21:56:28 -0000 1.14 *************** *** 52,56 **** eppobject::epp::epp_string_ref m_id; /**< Server-unique identifier for the created contact */ eppobject::epp::epp_roid_ref m_roid; /**< Repository Object IDentifier assigned to the contact */ ! epp_ContactNameAddress_seq_ref m_addresses; /**< Address element, using the 7-bit US-ASCII character set */ epp_ContactNameAddress_ref m_ascii_address; /**< DEPRECATED Address element, using the 7-bit US-ASCII character set */ epp_ContactNameAddress_ref m_i15d_address; /**< DEPRECATED Internationalized address element, using unrestricted UTF-8 */ --- 52,56 ---- eppobject::epp::epp_string_ref m_id; /**< Server-unique identifier for the created contact */ eppobject::epp::epp_roid_ref m_roid; /**< Repository Object IDentifier assigned to the contact */ ! epp_ContactNameAddress_seq_ref m_addresses; /**< Address elements, using either UTF8 or 7-bit US-ASCII character sets */ epp_ContactNameAddress_ref m_ascii_address; /**< DEPRECATED Address element, using the 7-bit US-ASCII character set */ epp_ContactNameAddress_ref m_i15d_address; /**< DEPRECATED Internationalized address element, using unrestricted UTF-8 */ Index: epp_ContactUpdateChange.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactUpdateChange.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactUpdateChange.h 17 Jul 2002 13:18:47 -0000 1.9 --- epp_ContactUpdateChange.h 30 May 2003 21:56:29 -0000 1.10 *************** *** 45,50 **** public: ! epp_ContactNameAddress_ref m_ascii_address; /**< Address element, using the 7-bit US-ASCII character set */ ! epp_ContactNameAddress_ref m_i15d_address; /**< Internationalized address element, using unrestricted UTF-8 */ epp_ContactPhone_ref m_voice; /**< Voice telephone number of contact */ epp_ContactPhone_ref m_fax; /**< Facsimile telephone number of contact */ --- 45,51 ---- public: ! epp_ContactNameAddress_seq_ref m_addresses; /**< Address elements, using either UTF8 or 7-bit US-ASCII character sets */ ! epp_ContactNameAddress_ref m_ascii_address; /**< DEPRECATED Address element, using the 7-bit US-ASCII character set */ ! epp_ContactNameAddress_ref m_i15d_address; /**< DEPRECATED Internationalized address element, using unrestricted UTF-8 */ epp_ContactPhone_ref m_voice; /**< Voice telephone number of contact */ epp_ContactPhone_ref m_fax; /**< Facsimile telephone number of contact */ *************** *** 60,63 **** --- 61,65 ---- /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL + /// @deprecated epp_ContactUpdateChange(const epp_ContactNameAddress_ref & _m_ascii_address, const epp_ContactNameAddress_ref & _m_i15d_address, *************** *** 68,72 **** --- 70,84 ---- { m_ascii_address = _m_ascii_address; + if ( _m_ascii_address != NULL ) { + epp_ContactNameAddress i(*_m_ascii_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } m_i15d_address = _m_i15d_address; + if ( _m_i15d_address != NULL ) { + epp_ContactNameAddress i(*_m_i15d_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } m_voice = _m_voice; m_fax = _m_fax; *************** *** 76,79 **** --- 88,92 ---- /// Constructor, using only references + /// @deprecated epp_ContactUpdateChange(const epp_ContactNameAddress_ref & _m_ascii_address, const epp_ContactNameAddress_ref & _m_i15d_address, *************** *** 84,88 **** --- 97,162 ---- { m_ascii_address = _m_ascii_address; + if ( _m_ascii_address != NULL ) { + epp_ContactNameAddress i(*_m_ascii_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } m_i15d_address = _m_i15d_address; + if ( _m_i15d_address != NULL ) { + epp_ContactNameAddress i(*_m_i15d_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } + m_voice = _m_voice; + m_fax = _m_fax; + m_email = _m_email; + m_auth_info = _m_auth_info; + }; + + /// Constructor, using simple types when it can + /// @note Cannot set simple types to NULL + epp_ContactUpdateChange(const epp_ContactNameAddress_seq_ref & _m_addresses, + const epp_ContactPhone_ref & _m_voice, + const epp_ContactPhone_ref & _m_fax, + const eppobject::epp::epp_string & _m_email, + const eppobject::epp::epp_AuthInfo_ref & _m_auth_info) + { + m_addresses = _m_addresses; + if ( m_addresses != NULL ) { + for ( epp_ContactNameAddress_seq::iterator i = m_addresses->begin(); + i != m_addresses->end(); + i++ ) { + if ( *i->m_type == LOC ) { + m_i15d_address.ref(new epp_ContactNameAddress(*i)); + } else { + m_ascii_address.ref(new epp_ContactNameAddress(*i)); + } + } + } + m_voice = _m_voice; + m_fax = _m_fax; + m_email.ref(new eppobject::epp::epp_string(_m_email)); + m_auth_info = _m_auth_info; + }; + + /// Constructor, using only references + epp_ContactUpdateChange(const epp_ContactNameAddress_seq_ref & _m_addresses, + const epp_ContactPhone_ref & _m_voice, + const epp_ContactPhone_ref & _m_fax, + const eppobject::epp::epp_string_ref & _m_email, + const eppobject::epp::epp_AuthInfo_ref & _m_auth_info) + { + m_addresses = _m_addresses; + if ( m_addresses != NULL ) { + for ( epp_ContactNameAddress_seq::iterator i = m_addresses->begin(); + i != m_addresses->end(); + i++ ) { + if ( *i->m_type == LOC ) { + m_i15d_address.ref(new epp_ContactNameAddress(*i)); + } else { + m_ascii_address.ref(new epp_ContactNameAddress(*i)); + } + } + } m_voice = _m_voice; m_fax = _m_fax; |
From: Daniel M. <tub...@us...> - 2003-05-30 21:56:32
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv14937 Modified Files: epp_ContactCreate.cc epp_ContactUpdate.cc main_contactupdate.cc Log Message: got contact update working. also made the m_addresses def's in the classes consistent and added cvs header lines Index: epp_ContactCreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCreate.cc,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** epp_ContactCreate.cc 30 May 2003 15:50:25 -0000 1.14 --- epp_ContactCreate.cc 30 May 2003 21:56:27 -0000 1.15 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include "config.h" #include "epp_ContactCreate.h" Index: epp_ContactUpdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactUpdate.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** epp_ContactUpdate.cc 13 May 2003 22:55:50 -0000 1.13 --- epp_ContactUpdate.cc 30 May 2003 21:56:28 -0000 1.14 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include "config.h" #include "epp_ContactUpdate.h" *************** *** 151,156 **** outputobject.beginTag("contact:chg"); ! addAddressElement(outputobject, element->m_ascii_address, "contact:ascii", true); ! addAddressElement(outputobject, element->m_i15d_address, "contact:i15d", true); if(element->m_voice != NULL) { --- 153,171 ---- outputobject.beginTag("contact:chg"); ! if( element->m_ascii_address != NULL || ! element->m_i15d_address != NULL ) { ! addAddressElement(outputobject, element->m_ascii_address, "contact:postalInfo", true); ! addAddressElement(outputobject, element->m_i15d_address, "contact:postalInfo", true); ! } else if ( element->m_addresses != NULL && ! element->m_addresses->size() > 0 ) { ! for(epp_ContactNameAddress_seq::iterator i = element->m_addresses->begin(); ! i != element->m_addresses->end(); i++) ! { ! epp_ContactNameAddress_ref cnar; ! cnar.ref(new epp_ContactNameAddress(*i)); ! addAddressElement(outputobject, cnar, "contact:postalInfo", true); ! } ! ! } if(element->m_voice != NULL) { Index: main_contactupdate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactupdate.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** main_contactupdate.cc 13 May 2003 22:55:50 -0000 1.15 --- main_contactupdate.cc 30 May 2003 21:56:28 -0000 1.16 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <vector> #include <iostream> *************** *** 61,75 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 63,100 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:id=abc -add=status1=aaa:status2=bbb -remove=status1=ccc:status2=ddd -change=name=John Doe:org=ACME]"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! map<string,string> extraDataMap; ! map<string,string> addDataMap; ! map<string,string> changeDataMap; ! map<string,string> removeDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); ! } ! ! if (!strncmp(argv[parm], "-add=", 5)) { ! cout << "Found 'add' data param..." << endl; ! string td = &argv[parm][5]; ! addDataMap = getExtraDataMap(td); ! } ! ! if (!strncmp(argv[parm], "-change=", 9)) { ! cout << "Found 'change' data param..." << endl; ! string td = &argv[parm][9]; ! changeDataMap = getExtraDataMap(td); ! } ! ! if (!strncmp(argv[parm], "-remove=", 8)) { ! cout << "Found 'remove' data param..." << endl; ! string td = &argv[parm][8]; ! removeDataMap = getExtraDataMap(td); } } *************** *** 83,95 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, epp_trid(trID))); ! if(testDataMap.empty()) { epp_ContactNameAddress_ref addr(new epp_ContactNameAddress()); addr->m_org.ref(new epp_string("")); addr->m_address.ref(new epp_ContactAddress()); --- 108,123 ---- string trID; ! if(extraDataMap["trid"] == "") trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, epp_trid(trID))); ! if( addDataMap.empty() && ! removeDataMap.empty() && ! changeDataMap.empty() ) { epp_ContactNameAddress_ref addr(new epp_ContactNameAddress()); + addr->m_type.ref(new epp_ContactPostalInfoType(INT)); addr->m_org.ref(new epp_string("")); addr->m_address.ref(new epp_ContactAddress()); *************** *** 114,117 **** --- 142,146 ---- epp_ContactStatus status; status.m_type.ref(new epp_ContactStatusType(CLIENT_DELETE_PROHIBITED)); + status.m_value.ref(new epp_string("don't ever leave me")); l_req->m_id.ref(new epp_string("sh8013")); *************** *** 122,163 **** } else { ! if(testDataMap[2] != "-1") l_req->m_id.ref(new epp_string(testDataMap[2])); ! if(testDataMap[3] == "add") { l_req->m_add.ref(new epp_ContactUpdateAddRemove()); ! if(testDataMap[4] != "-1") { ! string statuses = testDataMap[4]; l_req->m_add->m_status.ref(new epp_contact_status_seq()); ! int begin = 0; ! int end = 0; ! ! while(end != string::npos) { ! end = statuses.find(' ', begin); ! string tmp = statuses.substr(begin,end-begin); epp_ContactStatus status; status.m_type.ref(new epp_ContactStatusType(returnStatusEnumType(tmp))); l_req->m_add->m_status->push_back(status); ! ! begin = end+1; } } } ! if(testDataMap[5] == "rem") { l_req->m_remove.ref(new epp_ContactUpdateAddRemove()); ! if(testDataMap[6] != "-1") { ! string statuses = testDataMap[6]; l_req->m_remove->m_status.ref(new epp_contact_status_seq()); ! int begin = 0; ! int end = 0; ! ! while(end != string::npos) { ! end = statuses.find(' ', begin); ! string tmp = statuses.substr(begin,end-begin); epp_ContactStatus status; --- 151,195 ---- } else { ! if ( extraDataMap["id"].empty() ) { ! l_req->m_id.ref(new epp_string("sh8013")); ! } else { ! l_req->m_id.ref(new epp_string(extraDataMap["id"])); ! } ! if( ! addDataMap.empty() ) { l_req->m_add.ref(new epp_ContactUpdateAddRemove()); ! if( ! addDataMap["status1"].empty() ) { ! char status_name[10]; ! int status_number = 1; ! sprintf(status_name, "status%d", status_number); ! l_req->m_add->m_status.ref(new epp_contact_status_seq()); ! while( ! addDataMap[status_name].empty() ) { ! string tmp = addDataMap[status_name]; epp_ContactStatus status; status.m_type.ref(new epp_ContactStatusType(returnStatusEnumType(tmp))); l_req->m_add->m_status->push_back(status); ! ! status_number++; ! sprintf(status_name, "status%d", status_number); } } } ! if( ! removeDataMap.empty() ) { l_req->m_remove.ref(new epp_ContactUpdateAddRemove()); ! if( ! removeDataMap["status1"].empty() ) { ! char status_name[10]; ! int status_number = 1; ! sprintf(status_name, "status%d", status_number); ! l_req->m_remove->m_status.ref(new epp_contact_status_seq()); ! while( ! removeDataMap[status_name].empty() ) { ! string tmp = removeDataMap[status_name]; epp_ContactStatus status; *************** *** 165,181 **** l_req->m_remove->m_status->push_back(status); ! begin = end+1; } } } ! if(testDataMap[7] == "chg") { epp_ContactUpdateChange_ref chg(new epp_ContactUpdateChange()); ! if(testDataMap[8] != "-1") { chg->m_auth_info.ref(new epp_AuthInfo()); chg->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! chg->m_auth_info->m_value.ref(new epp_string(testDataMap[8])); } --- 197,214 ---- l_req->m_remove->m_status->push_back(status); ! status_number++; ! sprintf(status_name, "status%d", status_number); } } } ! if( ! changeDataMap.empty() ) { epp_ContactUpdateChange_ref chg(new epp_ContactUpdateChange()); ! if(changeDataMap.find("authinfo") != changeDataMap.end()) { chg->m_auth_info.ref(new epp_AuthInfo()); chg->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! chg->m_auth_info->m_value.ref(new epp_string(changeDataMap["authinfo"])); } *************** *** 183,219 **** addr->m_address.ref(new epp_ContactAddress()); ! if(testDataMap[9] != "-1") addr->m_name.ref(new epp_string(testDataMap[9])); ! if(testDataMap[10] != "-1") addr->m_org.ref(new epp_string(testDataMap[10])); ! if(testDataMap[11] != "-1") addr->m_address->m_street1.ref(new epp_string(testDataMap[11])); ! if(testDataMap[12] != "-1") addr->m_address->m_street2.ref(new epp_string(testDataMap[12])); ! if(testDataMap[13] != "-1") addr->m_address->m_street3.ref(new epp_string(testDataMap[13])); ! if(testDataMap[14] != "-1") addr->m_address->m_city.ref(new epp_string(testDataMap[14])); ! if(testDataMap[15] != "-1") addr->m_address->m_state_province.ref(new epp_string(testDataMap[15])); ! if(testDataMap[16] != "-1") addr->m_address->m_country_code.ref(new epp_string(testDataMap[16])); ! if(testDataMap[17] != "-1") addr->m_address->m_postal_code.ref(new epp_string(testDataMap[17])); ! if(testDataMap[18] != "-1" || testDataMap[19] != "-1") { chg->m_voice.ref(new epp_ContactPhone()); ! if(testDataMap[18] != "-1") chg->m_voice->m_value.ref(new epp_string(testDataMap[18])); ! if(testDataMap[19] != "-1") chg->m_voice->m_extension.ref(new epp_string(testDataMap[19])); } ! if(testDataMap[20] != "-1") chg->m_email.ref(new epp_string(testDataMap[20])); ! if(testDataMap[21] != "-1" || testDataMap[22] != "-1") { chg->m_fax.ref(new epp_ContactPhone()); ! if(testDataMap[21] != "-1") chg->m_fax->m_value.ref(new epp_string(testDataMap[21])); ! if(testDataMap[22] != "-1") chg->m_fax->m_extension.ref(new epp_string(testDataMap[22])); } ! chg->m_ascii_address = addr; l_req->m_change = chg; } --- 216,267 ---- addr->m_address.ref(new epp_ContactAddress()); ! if(changeDataMap.find("name") != changeDataMap.end()) addr->m_name.ref(new epp_string(changeDataMap["name"])); ! if(changeDataMap.find("org") != changeDataMap.end()) addr->m_org.ref(new epp_string(changeDataMap["org"])); ! if(changeDataMap.find("street1") != changeDataMap.end()) addr->m_address->m_street1.ref(new epp_string(changeDataMap["street1"])); ! if(changeDataMap.find("street2") != changeDataMap.end()) addr->m_address->m_street2.ref(new epp_string(changeDataMap["street2"])); ! if(changeDataMap.find("street3") != changeDataMap.end()) addr->m_address->m_street3.ref(new epp_string(changeDataMap["street3"])); ! if(changeDataMap.find("city") != changeDataMap.end()) addr->m_address->m_city.ref(new epp_string(changeDataMap["city"])); ! if(changeDataMap.find("state") != changeDataMap.end()) addr->m_address->m_state_province.ref(new epp_string(changeDataMap["state"])); ! if(changeDataMap.find("country") != changeDataMap.end()) addr->m_address->m_country_code.ref(new epp_string(changeDataMap["country"])); ! if(changeDataMap.find("postal") != changeDataMap.end()) addr->m_address->m_postal_code.ref(new epp_string(changeDataMap["postal"])); ! if( changeDataMap.find("phone") != changeDataMap.end() ) { chg->m_voice.ref(new epp_ContactPhone()); ! string phone = changeDataMap["phone"]; ! string extension = ""; ! unsigned int x_location = phone.find("x"); ! if ( x_location != string::npos ) { ! extension = phone.substr(x_location+1); ! phone = phone.substr(0,x_location); ! chg->m_voice->m_extension.ref(new epp_string(extension)); ! } ! chg->m_voice->m_value.ref(new epp_string(phone)); } ! if(changeDataMap.find("email") != changeDataMap.end()) chg->m_email.ref(new epp_string(changeDataMap["email"])); ! if( changeDataMap.find("fax") != changeDataMap.end() ) { chg->m_fax.ref(new epp_ContactPhone()); ! string phone = changeDataMap["phone"]; ! string extension = ""; ! unsigned int x_location = phone.find("x"); ! if ( x_location != string::npos ) { ! extension = phone.substr(x_location+1); ! phone = phone.substr(0,x_location); ! chg->m_fax->m_extension.ref(new epp_string(extension)); ! } ! chg->m_fax->m_value.ref(new epp_string(phone)); } ! chg->m_addresses.ref(new epp_ContactNameAddress_seq()); ! chg->m_addresses->push_back(*addr); l_req->m_change = chg; } |
From: Daniel M. <tub...@us...> - 2003-05-30 19:11:24
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv6233 Modified Files: main_contactdelete.cc main_contactinfo.cc Log Message: added cvs header lines Index: main_contactdelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactdelete.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** main_contactdelete.cc 28 May 2003 19:57:21 -0000 1.15 --- main_contactdelete.cc 30 May 2003 19:11:20 -0000 1.16 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <string> #include <iostream> Index: main_contactinfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactinfo.cc,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** main_contactinfo.cc 30 May 2003 17:59:39 -0000 1.17 --- main_contactinfo.cc 30 May 2003 19:11:21 -0000 1.18 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <string> #include <vector> |
From: Daniel M. <tub...@us...> - 2003-05-30 19:11:03
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv5908 Modified Files: main_contacttransfer.cc Log Message: upgrade contact transfer example to use -extradata=... also added support for the EXT authinfo type Index: main_contacttransfer.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contacttransfer.cc,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** main_contacttransfer.cc 13 May 2003 22:55:50 -0000 1.14 --- main_contacttransfer.cc 30 May 2003 19:11:00 -0000 1.15 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include <string> #include <iostream> *************** *** 89,103 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 91,107 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:id=abc:op=(query|request|cancel|approve|reject):authinfo:xyz]"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 111,116 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 115,120 ---- string trID; ! if(extraDataMap["trid"] == "") trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 119,166 **** epp_ContactTransfer_ref l_obj(new epp_ContactTransfer()); epp_ContactTransferRsp_ref l_rsp; ! ! if(testDataMap.empty()) { ! ! // REQ-test: ! l_req->m_id.ref(new epp_string("sh8013")); ! l_req->m_trans.ref(new epp_TransferRequest()); ! l_req->m_trans->m_op.ref(new epp_TransferOpType(REQUEST)); l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_trans->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! ! ! l_obj->setRequestData(*l_req); ! ! test.processAction(l_obj); ! ! l_rsp = l_obj->getResponseData(); ! ! #ifndef TEST_IO_REQUEST2CERR ! printRsp(l_rsp); ! #endif ! ! cout << "\n----------------------------------\n"; ! ! // QUERY-test: ! *l_req->m_trans->m_op = QUERY; ! l_req->m_trans->m_auth_info.ref(NULL); ! ! } ! else { ! if(testDataMap[2] != "-1") l_req->m_id.ref(new epp_string(testDataMap[2])); ! ! if(testDataMap[3] != "-1") { ! l_req->m_trans.ref(new epp_TransferRequest()); ! l_req->m_trans->m_op.ref(new epp_TransferOpType(returnTransferType(testDataMap[3]))); ! } ! ! if(testDataMap[4] != "-1") { ! l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); ! l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! l_req->m_trans->m_auth_info->m_value.ref(new epp_string(testDataMap[4])); ! } } ! l_obj->setRequestData(*l_req); --- 123,151 ---- epp_ContactTransfer_ref l_obj(new epp_ContactTransfer()); epp_ContactTransferRsp_ref l_rsp; ! ! l_req->m_trans.ref(new epp_TransferRequest()); ! ! if(extraDataMap["id"].empty()) { ! l_req->m_id.ref(new epp_string("sh8013")); ! } else { ! l_req->m_id.ref(new epp_string(extraDataMap["id"])); ! } ! ! if(extraDataMap["op"].empty()) { ! l_req->m_trans->m_op.ref(new epp_TransferOpType(QUERY)); ! } else { ! l_req->m_trans->m_op.ref(new epp_TransferOpType(returnTransferType(extraDataMap["op"]))); ! } ! ! if(extraDataMap["authinfo"].empty()) { l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); l_req->m_trans->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } else { ! l_req->m_trans->m_auth_info.ref(new epp_AuthInfo()); ! l_req->m_trans->m_auth_info->m_type.ref(new epp_AuthInfoType(PW)); ! l_req->m_trans->m_auth_info->m_value.ref(new epp_string(extraDataMap["authinfo"])); } ! l_obj->setRequestData(*l_req); |
From: Daniel M. <tub...@us...> - 2003-05-30 18:38:54
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv11830 Modified Files: main_contactinfo.cc Log Message: fixed xml output to better represent the structur (authInfo) and to show the m_addresses sequence Index: main_contactinfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactinfo.cc,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** main_contactinfo.cc 13 May 2003 22:55:50 -0000 1.16 --- main_contactinfo.cc 30 May 2003 17:59:39 -0000 1.17 *************** *** 79,143 **** } ! 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"; --- 79,121 ---- } ! if ( req->m_addresses != NULL ) { ! for ( epp_ContactNameAddress_seq::iterator i = req->m_addresses->begin(); ! i != req->m_addresses->end(); ! i++ ) { ! map<epp_ContactPostalInfoType, string> postalInfoMap; ! postalInfoMap[INT] = "int"; ! postalInfoMap[LOC] = "loc"; ! cerr << "<contact:postalInfo type=\""<<postalInfoMap[*i->m_type]<<"\">" << endl; ! if(i->m_name != NULL) ! cerr << "\t<contact:name>" << *i->m_name << "</contact:name>" << endl; ! if(i->m_org != NULL) ! cerr << "\t<contact:org>" << *i->m_org << "</contact:org>" << endl; ! ! if(i->m_address != NULL) { ! cerr << "\t<contact:addr>" << endl; ! if(i->m_address->m_street1 != NULL) ! cerr << "\t\t<contact:street>" << *i->m_address->m_street1 << "</contact:street>" << endl; ! if(i->m_address->m_street2 != NULL) ! cerr << "\t\t<contact:street>" << *i->m_address->m_street2 << "</contact:street>" << endl; ! if(i->m_address->m_street3 != NULL) ! cerr << "\t\t<contact:street>" << *i->m_address->m_street3 << "</contact:street>" << endl; ! if(i->m_address->m_city != NULL) ! cerr << "\t\t<contact:city>" << *i->m_address->m_city << "</contact:city>" << endl; ! if(i->m_address->m_state_province != NULL) ! cerr << "\t\t<contact:sp>" << *i->m_address->m_state_province << "</contact:sp>" << endl; ! if(i->m_address->m_postal_code != NULL) ! cerr << "\t\t<contact:pc>" << *i->m_address->m_postal_code << "</contact:pc>" << endl; ! if(i->m_address->m_country_code != NULL) ! cerr << "\t\t<contact:cc>" << *i->m_address->m_country_code << "</contact:cc>" << endl; ! ! cerr << "\t</contact:addr>" << endl; ! } ! ! cerr << "</contact:postalInfo>" << endl; ! } } if(req->m_voice != NULL) { cerr << "<contact:voice"; *************** *** 189,208 **** 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; --- 167,189 ---- cerr << "<contact:authInfo"; 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) { ! ! string type; ! ! if(req->m_auth_info->m_type != NULL) { ! switch(*req->m_auth_info->m_type) { ! case PW: type = "pw"; break; ! case EXT: type = "ext"; break; ! default: type = "**UNKNOWN**"; ! } ! } ! ! cerr << "\n\t<contact:"<<type<<">"<<*req->m_auth_info->m_value<<"</contact:"<<type<<">\n"; ! } cerr << "</contact:authInfo>" << endl; |
From: Daniel M. <tub...@us...> - 2003-05-30 18:14:58
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv11745 Modified Files: epp_ContactInfo.cc Log Message: added cvs header line Index: epp_ContactInfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactInfo.cc,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** epp_ContactInfo.cc 30 May 2003 15:50:25 -0000 1.16 --- epp_ContactInfo.cc 30 May 2003 17:59:10 -0000 1.17 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include "config.h" #include "epp_ContactInfo.h" |
From: Daniel M. <tub...@us...> - 2003-05-30 18:14:25
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv11431 Modified Files: epp_ContactInfoRsp.h Log Message: added CVS header Index: epp_ContactInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoRsp.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** epp_ContactInfoRsp.h 30 May 2003 15:47:39 -0000 1.12 --- epp_ContactInfoRsp.h 30 May 2003 17:58:19 -0000 1.13 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_CONTACTINFORSP_H + /* $Header$ */ + /** @file epp_ContactInfoRsp.h * @brief Definition of epp_ContactInfoRsp and epp_ContactInfoRsp_ref |
From: Daniel M. <tub...@us...> - 2003-05-30 18:05:11
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv11493 Modified Files: epp_eppXMLbase.cc Log Message: fixed parsing of authInfo tags Index: epp_eppXMLbase.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_eppXMLbase.cc,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** epp_eppXMLbase.cc 28 May 2003 19:54:16 -0000 1.25 --- epp_eppXMLbase.cc 30 May 2003 17:58:32 -0000 1.26 *************** *** 216,224 **** if(!authNode->isNull()) { ! string type = authNode->getAttribute("type"); ! if(!type.empty()) { ! authObj->m_type.ref(new epp_AuthInfoType(returnAuthInfoType(type))); ! } ! string roid = authNode->getAttribute("roid"); if(!roid.empty()) { --- 216,222 ---- if(!authNode->isNull()) { ! ! dom_ptr authChild = dom_ptr(authNode->getFirstChildElement()); ! string roid = authNode->getAttribute("roid"); if(!roid.empty()) { *************** *** 226,232 **** } ! string value = authNode->getNodeData(); ! if(!value.empty()) { ! authObj->m_value.ref(new epp_string(value)); } --- 224,244 ---- } ! if ( ! authChild->isNull() ) { ! ! string authChildName = authChild->getNodeName(); ! ! unsigned int colonLocation = authChildName.find(":"); ! string type = authChildName; ! if ( colonLocation != string::npos ) { ! type = authChildName.substr(colonLocation+1); ! } ! if(!type.empty()) { ! authObj->m_type.ref(new epp_AuthInfoType(returnAuthInfoType(type))); ! } ! ! string value = authChild->getNodeData(); ! if(!value.empty()) { ! authObj->m_value.ref(new epp_string(value)); ! } } *************** *** 315,318 **** --- 327,331 ---- authInfoMap["pw"] = PW; + authInfoMap["ext"] = EXT; if(authInfoMap.find(infoType) == authInfoMap.end()) { |
From: Daniel M. <tub...@us...> - 2003-05-30 18:02:33
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv11128 Modified Files: Makefile.am epp_ContactNameAddress.h Added Files: epp_ContactNameAddress.cc Log Message: added operator<<() methods to the contact name address class added .cc for this code -- output is not yet complete, but it works --- NEW FILE: epp_ContactNameAddress.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactNameAddress.cc,v 1.1 2003/05/30 17:57:46 tubadanm Exp $ */ /** @file epp_ContactNameAddress.cc * @brief Definition of epp_ContactNameAddress and epp_ContactNameAddress_ref * @author Daniel Manley */ #include <map> #include "epp_ContactNameAddress.h" using namespace eppobject::epp; using namespace eppobject::contact; using namespace std; ostream & eppobject::contact::operator<<(ostream &stream, const epp_ContactNameAddress_ref &cna) { return stream << *cna; } ostream & eppobject::contact::operator<<(ostream &stream, const epp_ContactNameAddress &cna) { map<epp_ContactPostalInfoType, string> postalInfoMap; postalInfoMap[INT] = "int"; postalInfoMap[LOC] = "loc"; stream << "m_type ["<<postalInfoMap[*cna.m_type]<<"] m_name ["<<*cna.m_name<<"] m_org ["<<*cna.m_org<<"]"; return stream; } Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/Makefile.am,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Makefile.am 28 May 2003 19:55:07 -0000 1.7 --- Makefile.am 30 May 2003 17:57:46 -0000 1.8 *************** *** 125,128 **** --- 125,129 ---- epp_ExtResultValue.cc \ epp_TransID.cc \ + epp_ContactNameAddress.cc \ epp_Result.cc Index: epp_ContactNameAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactNameAddress.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_ContactNameAddress.h 30 May 2003 15:47:39 -0000 1.10 --- epp_ContactNameAddress.h 30 May 2003 17:57:46 -0000 1.11 *************** *** 87,90 **** --- 87,93 ---- typedef refcnt_ptr<epp_ContactNameAddress_seq> epp_ContactNameAddress_seq_ref; + std::ostream &operator<<(std::ostream &stream, const epp_ContactNameAddress_ref &cna); + std::ostream &operator<<(std::ostream &stream, const epp_ContactNameAddress &cna); + }} |
From: Daniel M. <tub...@us...> - 2003-05-30 16:09:42
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv6684 Modified Files: epp_ContactCreate.cc epp_ContactInfo.cc main_contactcreate.cc Log Message: fix usage of m_addresses in term of the type of the vector upgraded contact info code and example Index: epp_ContactCreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCreate.cc,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** epp_ContactCreate.cc 27 May 2003 22:05:45 -0000 1.13 --- epp_ContactCreate.cc 30 May 2003 15:50:25 -0000 1.14 *************** *** 94,98 **** i != m_request->m_addresses->end(); i++) { ! addAddressElement(xml_request, *i); } --- 94,100 ---- i != m_request->m_addresses->end(); i++) { ! epp_ContactNameAddress_ref cnar; ! cnar.ref(new epp_ContactNameAddress(*i)); ! addAddressElement(xml_request, cnar); } Index: epp_ContactInfo.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactInfo.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** epp_ContactInfo.cc 13 May 2003 22:55:50 -0000 1.15 --- epp_ContactInfo.cc 30 May 2003 15:50:25 -0000 1.16 *************** *** 156,167 **** } // 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()); --- 156,174 ---- } // if "status" ! else if(nodeName == string(elemPrefix + ":postalInfo")) { ! if ( m_response->m_addresses == NULL ) { ! m_response->m_addresses.ref(new epp_ContactNameAddress_seq()); ! } ! epp_ContactNameAddress cna(parseAddress(infChildNode)); ! m_response->m_addresses->push_back(cna); ! if ( cna.m_type != NULL ) { ! if ( *cna.m_type == LOC ) { ! m_response->m_i15d_address.ref(new epp_ContactNameAddress(cna)); ! } else { ! m_response->m_ascii_address.ref(new epp_ContactNameAddress(cna)); ! } ! } ! } // if "postalInfo" else if(nodeName == string(elemPrefix + ":voice")) { m_response->m_voice.ref(new epp_ContactPhone()); Index: main_contactcreate.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactcreate.cc,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** main_contactcreate.cc 27 May 2003 22:05:46 -0000 1.16 --- main_contactcreate.cc 30 May 2003 15:50:26 -0000 1.17 *************** *** 122,126 **** addr->m_type.ref(new epp_ContactPostalInfoType(INT)); l_req->m_addresses.ref(new epp_ContactNameAddress_seq()); ! l_req->m_addresses->push_back(addr); l_req->m_voice.ref(new epp_ContactPhone(epp_string("1234"), --- 122,126 ---- addr->m_type.ref(new epp_ContactPostalInfoType(INT)); l_req->m_addresses.ref(new epp_ContactNameAddress_seq()); ! l_req->m_addresses->push_back(*addr); l_req->m_voice.ref(new epp_ContactPhone(epp_string("1234"), *************** *** 134,139 **** l_req->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } ! else { string contactDataStr = extraDataMap["contact"]; vector<string> contactData; --- 134,139 ---- l_req->m_auth_info->m_value.ref(new epp_string("2fooBAR")); ! } else { ! string contactDataStr = extraDataMap["contact"]; vector<string> contactData; *************** *** 181,185 **** addr->m_type.ref(new epp_ContactPostalInfoType(INT)); l_req->m_addresses.ref(new epp_ContactNameAddress_seq()); ! l_req->m_addresses->push_back(addr); if(contactData[11] != "-1" || contactData[12] != "-1") { --- 181,185 ---- addr->m_type.ref(new epp_ContactPostalInfoType(INT)); l_req->m_addresses.ref(new epp_ContactNameAddress_seq()); ! l_req->m_addresses->push_back(*addr); if(contactData[11] != "-1" || contactData[12] != "-1") { |
From: Daniel M. <tub...@us...> - 2003-05-30 15:53:02
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv3844/data Modified Files: epp_ContactInfoRsp.h epp_ContactNameAddress.h epp_contactXMLbase.cc Log Message: added m_addresses to the contact name address class added backward compatibility to contact info rsp for ascii and i15d addresses added parsing of these values in contact xml base Index: epp_ContactInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoRsp.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_ContactInfoRsp.h 17 Jul 2002 13:18:47 -0000 1.11 --- epp_ContactInfoRsp.h 30 May 2003 15:47:39 -0000 1.12 *************** *** 50,55 **** eppobject::epp::epp_string_ref m_id; /**< Server-unique identifier for the created contact */ eppobject::epp::epp_roid_ref m_roid; /**< Repository Object IDentifier assigned to the contact */ ! epp_ContactNameAddress_ref m_ascii_address; /**< Address element, using the 7-bit US-ASCII character set */ ! epp_ContactNameAddress_ref m_i15d_address; /**< Internationalized address element, using unrestricted UTF-8 */ epp_ContactPhone_ref m_voice; /**< Voice telephone number of contact */ epp_ContactPhone_ref m_fax; /**< Facsimile telephone number of contact */ --- 50,56 ---- eppobject::epp::epp_string_ref m_id; /**< Server-unique identifier for the created contact */ eppobject::epp::epp_roid_ref m_roid; /**< Repository Object IDentifier assigned to the contact */ ! epp_ContactNameAddress_seq_ref m_addresses; /**< Address element, using the 7-bit US-ASCII character set */ ! epp_ContactNameAddress_ref m_ascii_address; /**< DEPRECATED Address element, using the 7-bit US-ASCII character set */ ! epp_ContactNameAddress_ref m_i15d_address; /**< DEPRECATED Internationalized address element, using unrestricted UTF-8 */ epp_ContactPhone_ref m_voice; /**< Voice telephone number of contact */ epp_ContactPhone_ref m_fax; /**< Facsimile telephone number of contact */ *************** *** 72,75 **** --- 73,77 ---- /// Constructor, using simple types when it can /// @note Cannot set simple types to NULL + /// @deprecated epp_ContactInfoRsp(const eppobject::epp::epp_Response_ref & _m_rsp, const eppobject::epp::epp_string & _m_id, *************** *** 92,97 **** --- 94,110 ---- m_id.ref(new eppobject::epp::epp_string(_m_id)); m_roid.ref(new eppobject::epp::epp_roid(_m_roid)); + m_addresses.ref(new epp_ContactNameAddress_seq()); m_ascii_address = _m_ascii_address; + if ( _m_ascii_address != NULL ) { + epp_ContactNameAddress i(*_m_ascii_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } m_i15d_address = _m_i15d_address; + if ( _m_i15d_address != NULL ) { + epp_ContactNameAddress i(*_m_i15d_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } m_voice = _m_voice; m_fax = _m_fax; *************** *** 108,111 **** --- 121,125 ---- /// Constructor, using only references + /// @deprecated epp_ContactInfoRsp(const eppobject::epp::epp_Response_ref & _m_rsp, const eppobject::epp::epp_string_ref & _m_id, *************** *** 128,133 **** --- 142,249 ---- m_id = _m_id; m_roid = _m_roid; + m_addresses.ref(new epp_ContactNameAddress_seq()); m_ascii_address = _m_ascii_address; + if ( _m_ascii_address != NULL ) { + epp_ContactNameAddress i(*_m_ascii_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } m_i15d_address = _m_i15d_address; + if ( _m_i15d_address != NULL ) { + epp_ContactNameAddress i(*_m_i15d_address); + i.m_type.ref(new epp_ContactPostalInfoType(INT)); + m_addresses->push_back(i); + } + m_voice = _m_voice; + m_fax = _m_fax; + m_email = _m_email; + m_status = _m_status; + m_client_id = _m_client_id; + m_created_by = _m_created_by; + m_created_date = _m_created_date; + m_updated_by = _m_updated_by; + m_updated_date = _m_updated_date; + m_transfer_date = _m_transfer_date; + m_auth_info = _m_auth_info; + }; + + /// Constructor, using simple types when it can + /// @note Cannot set simple types to NULL + epp_ContactInfoRsp(const eppobject::epp::epp_Response_ref & _m_rsp, + const eppobject::epp::epp_string & _m_id, + const eppobject::epp::epp_roid & _m_roid, + const epp_ContactNameAddress_seq_ref & _m_addresses, + const epp_ContactPhone_ref & _m_voice, + const epp_ContactPhone_ref & _m_fax, + const eppobject::epp::epp_string & _m_email, + const epp_contact_status_seq_ref & _m_status, + const eppobject::epp::epp_string & _m_client_id, + const eppobject::epp::epp_string & _m_created_by, + const eppobject::epp::epp_datetime & _m_created_date, + const eppobject::epp::epp_string & _m_updated_by, + const eppobject::epp::epp_datetime & _m_updated_date, + const eppobject::epp::epp_datetime & _m_transfer_date, + const 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_addresses = _m_addresses; + if ( m_addresses != NULL ) { + for ( epp_ContactNameAddress_seq::iterator i = m_addresses->begin(); + i != m_addresses->end(); + i++ ) { + if ( *i->m_type == LOC ) { + m_i15d_address.ref(new epp_ContactNameAddress(*i)); + } else { + m_ascii_address.ref(new epp_ContactNameAddress(*i)); + } + } + } + m_voice = _m_voice; + m_fax = _m_fax; + m_email.ref(new eppobject::epp::epp_string(_m_email)); + m_status = _m_status; + m_client_id.ref(new eppobject::epp::epp_string(_m_client_id)); + 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_updated_by.ref(new eppobject::epp::epp_string(_m_updated_by)); + m_updated_date.ref(new eppobject::epp::epp_datetime(_m_updated_date)); + m_transfer_date.ref(new eppobject::epp::epp_datetime(_m_transfer_date)); + m_auth_info = _m_auth_info; + }; + + /// Constructor, using only references + epp_ContactInfoRsp(const eppobject::epp::epp_Response_ref & _m_rsp, + const eppobject::epp::epp_string_ref & _m_id, + const eppobject::epp::epp_roid_ref & _m_roid, + const epp_ContactNameAddress_seq_ref & _m_addresses, + const epp_ContactPhone_ref & _m_voice, + const epp_ContactPhone_ref & _m_fax, + const eppobject::epp::epp_string_ref & _m_email, + const epp_contact_status_seq_ref & _m_status, + const eppobject::epp::epp_string_ref & _m_client_id, + const eppobject::epp::epp_string_ref & _m_created_by, + const eppobject::epp::epp_datetime_ref & _m_created_date, + const eppobject::epp::epp_string_ref & _m_updated_by, + const eppobject::epp::epp_datetime_ref & _m_updated_date, + const eppobject::epp::epp_datetime_ref & _m_transfer_date, + const eppobject::epp::epp_AuthInfo_ref & _m_auth_info) + : epp::epp_GenericRsp(_m_rsp) + { + m_id = _m_id; + m_roid = _m_roid; + m_addresses = _m_addresses; + if ( m_addresses != NULL ) { + for ( epp_ContactNameAddress_seq::iterator i = m_addresses->begin(); + i != m_addresses->end(); + i++ ) { + if ( *i->m_type == LOC ) { + m_i15d_address.ref(new epp_ContactNameAddress(*i)); + } else { + m_ascii_address.ref(new epp_ContactNameAddress(*i)); + } + } + } m_voice = _m_voice; m_fax = _m_fax; Index: epp_ContactNameAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactNameAddress.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactNameAddress.h 27 May 2003 22:05:13 -0000 1.9 --- epp_ContactNameAddress.h 30 May 2003 15:47:39 -0000 1.10 *************** *** 84,88 **** /// Typedef for the ref to the epp_ContactNameAddress class typedef refcnt_ptr<epp_ContactNameAddress> epp_ContactNameAddress_ref; ! typedef std::vector<epp_ContactNameAddress_ref> epp_ContactNameAddress_seq; typedef refcnt_ptr<epp_ContactNameAddress_seq> epp_ContactNameAddress_seq_ref; --- 84,88 ---- /// Typedef for the ref to the epp_ContactNameAddress class typedef refcnt_ptr<epp_ContactNameAddress> epp_ContactNameAddress_ref; ! typedef std::vector<epp_ContactNameAddress> epp_ContactNameAddress_seq; typedef refcnt_ptr<epp_ContactNameAddress_seq> epp_ContactNameAddress_seq_ref; Index: epp_contactXMLbase.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_contactXMLbase.cc,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** epp_contactXMLbase.cc 27 May 2003 22:05:13 -0000 1.15 --- epp_contactXMLbase.cc 30 May 2003 15:47:39 -0000 1.16 *************** *** 124,127 **** --- 124,133 ---- epp_ContactNameAddress adrStruct; + string addr_type = adrNode->getAttribute("type"); + map<string, epp_ContactPostalInfoType> postal_info_type_map; + postal_info_type_map["loc"] = LOC; + postal_info_type_map["int"] = INT; + adrStruct.m_type.ref(new epp_ContactPostalInfoType(postal_info_type_map[addr_type])); + dom_ptr CNAChildNode = dom_ptr(adrNode->getFirstChildElement()); |
From: Daniel M. <tub...@us...> - 2003-05-28 19:57:26
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv18660 Modified Files: main_contactdelete.cc Log Message: updated contact delete for the new millenium Index: main_contactdelete.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_contactdelete.cc,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** main_contactdelete.cc 13 May 2003 22:55:50 -0000 1.14 --- main_contactdelete.cc 28 May 2003 19:57:21 -0000 1.15 *************** *** 59,73 **** string username, password; ! if(!handleArgs(test, argc, argv, username, password)) return 1; ! ! map<unsigned int,string> testDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-testdata=", 10)) { ! string td = &argv[parm][10]; ! testDataMap = getTestDataMap(td); } } --- 59,75 ---- string username, password; ! string extra_usage = "[-extradata=trid=xxx:id=abc]"; ! if(!handleArgs(test, argc, argv, username, password, extra_usage)) return 1; ! ! map<string,string> extraDataMap; if(argc > 1) { for(int parm = 1; parm < argc; parm++) { ! if (!strncmp(argv[parm], "-extradata=", 11)) { ! cout << "Found extra data param..." << endl; ! string td = &argv[parm][11]; ! extraDataMap = getExtraDataMap(td); } } *************** *** 81,86 **** string trID; ! if(testDataMap.empty()) trID = "ABC-12345"; ! else trID = testDataMap[1]; l_req->m_cmd.ref(new epp_Command(NULL, --- 83,88 ---- string trID; ! if(extraDataMap["trid"] == "") trID = "ABC-12345"; ! else trID = extraDataMap["trid"]; l_req->m_cmd.ref(new epp_Command(NULL, *************** *** 88,96 **** ! if(testDataMap.empty()) { l_req->m_id.ref(new epp_string("sh8013")); } else { ! l_req->m_id.ref(new epp_string(testDataMap[2])); } --- 90,98 ---- ! if(extraDataMap["id"].empty()) { l_req->m_id.ref(new epp_string("sh8013")); } else { ! l_req->m_id.ref(new epp_string(extraDataMap["id"])); } *************** *** 105,109 **** #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; --- 107,112 ---- #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif ! cout << l_rsp->m_rsp; return 0; *************** *** 115,118 **** --- 118,122 ---- cout << "Exception: " << endl; #ifndef TEST_IO_REQUEST2CERR + cerr << ex << endl; cerr << "<response>" << endl; printResultsSeq(ex.m_details); |
From: Daniel M. <tub...@us...> - 2003-05-28 19:56:50
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv18373 Modified Files: testTools.cc Log Message: fixed debug output of result value sequence Index: testTools.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.cc,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** testTools.cc 22 May 2003 20:27:07 -0000 1.21 --- testTools.cc 28 May 2003 19:56:46 -0000 1.22 *************** *** 40,44 **** #include "data/epp_LoginReq.h" #include "data/epp_LoginRsp.h" - #include "data/epp_XMLException.h" #include "epp_Action.h" #include "epp_Login.h" --- 40,43 ---- *************** *** 83,87 **** // DANDAN // XXX fix this to properly show the struct ! cerr << "<value>" << *(j->m_element_value) << "</value>" << endl; } } // if "m_values" --- 82,95 ---- // DANDAN // XXX fix this to properly show the struct ! cerr << "<value"; ! if ( j->m_namespace != NULL ) cerr << " xmlns=\"" << *j->m_namespace << "\""; ! cerr << ">"; ! if ( j->m_element_name != NULL ) { ! cerr << "<"<<*j->m_element_name<<">"; ! if ( j->m_element_value != NULL ) cerr << *j->m_element_value; ! cerr << "</"<<*j->m_element_name<<">"; ! } ! cerr << "</value>" << endl; ! if ( j->m_xml_string != NULL ) cerr << "value xml: ["<<*j->m_xml_string<<"]" << endl; } } // if "m_values" |
From: Daniel M. <tub...@us...> - 2003-05-28 19:56:24
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory sc8-pr-cvs1:/tmp/cvs-serv18284 Modified Files: epp_ContactCheck.cc Log Message: added cvs header Index: epp_ContactCheck.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_ContactCheck.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_ContactCheck.cc 13 May 2003 22:55:50 -0000 1.11 --- epp_ContactCheck.cc 28 May 2003 19:56:20 -0000 1.12 *************** *** 26,29 **** --- 26,31 ---- ************************************************************************/ + /* $Header$ */ + #include "config.h" #include "epp_ContactCheck.h" |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory sc8-pr-cvs1:/tmp/cvs-serv17518 Modified Files: Makefile.am epp_DataCollectionPolicy.cc epp_DataCollectionPolicy.h epp_Exception.h epp_ExtResultValue.h epp_MessageQueue.h epp_Response.h epp_Result.h epp_ResultValue.h epp_TransID.h Added Files: epp_Exception.cc epp_ExtResultValue.cc epp_MessageQueue.cc epp_Response.cc epp_Result.cc epp_ResultValue.cc epp_TransID.cc Log Message: added more operator<<() methods for displaying contents of EPP objects (mostly in response) : Modified Files: : Makefile.am epp_DataCollectionPolicy.cc : epp_DataCollectionPolicy.h epp_Exception.h : epp_ExtResultValue.h epp_MessageQueue.h epp_Response.h : epp_Result.h epp_ResultValue.h epp_TransID.h : Added Files: : epp_Exception.cc epp_ExtResultValue.cc epp_MessageQueue.cc : epp_Response.cc epp_Result.cc epp_ResultValue.cc : epp_TransID.cc --- NEW FILE: epp_Exception.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Exception.cc,v 1.1 2003/05/28 19:55:10 tubadanm Exp $ */ /** @file epp_Exception.cc * @brief Definition of epp_Exception * @author Daniel Manley */ #include "epp_Exception.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(ostream &stream, const epp_Exception & exception) { stream << "m_details: ["; // iterate... for ( epp_result_seq::iterator i = exception.m_details->begin(); i != exception.m_details->end(); i++ ) { stream << "["<<*i<<"]"; } stream << "] m_ext_strings: ["; if ( exception.m_ext_strings != NULL ) { // iterate... for ( epp_xml_string_seq::iterator j = exception.m_ext_strings->begin(); j != exception.m_ext_strings->end(); j++ ) { stream << "["<<*j<<"]"; } } stream << "] m_trans_id: ["; if ( exception.m_trans_id != NULL ) stream << exception.m_trans_id; stream << "]"; return stream; } --- NEW FILE: epp_ExtResultValue.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ExtResultValue.cc,v 1.1 2003/05/28 19:55:13 tubadanm Exp $ */ /** @file epp_ExtResultValue.cc * @brief Definition of epp_ExtResultValue and epp_ExtResultValue_ref * @author Daniel Manley */ #include "epp_ExtResultValue.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(std::ostream &stream, const epp_ExtResultValue_ref & extresvalue) { return stream << *extresvalue; } ostream& eppobject::epp::operator<<(std::ostream &stream, const epp_ExtResultValue & extresvalue) { stream << "m_value ["<<extresvalue.m_value<<"] m_reason ["<<*extresvalue.m_reason<<"]"; return stream; } --- NEW FILE: epp_MessageQueue.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_MessageQueue.cc,v 1.1 2003/05/28 19:55:14 tubadanm Exp $ */ /** @file epp_MessageQueue.cc * @brief Definition of epp_MessageQueue and epp_MessageQueue_ref * @author Daniel Manley */ #include "epp_MessageQueue.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(ostream &stream, const epp_MessageQueue_ref & msgq) { return stream << *msgq; } ostream& eppobject::epp::operator<<(ostream &stream, const epp_MessageQueue & msgq) { stream << "m_count ["<<*msgq.m_count<<"] m_queue_date ["<<*msgq.m_queue_date<<"] m_msg [FIXME] m_id ["<<*msgq.m_id<<"]"; return stream; } --- NEW FILE: epp_Response.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002, 2003 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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Response.cc,v 1.1 2003/05/28 19:55:15 tubadanm Exp $ */ /** @file epp_Response.cc * @brief Methods for sending the response to a stream for debug * @author Daniel Manley */ #include "epp_Response.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(ostream &stream, const epp_Response_ref & response) { return stream << *response; } ostream& eppobject::epp::operator<<(ostream &stream, const epp_Response & response) { stream << "m_results: ["; // iterate... for ( epp_result_seq::iterator i = response.m_results->begin(); i != response.m_results->end(); i++ ) { stream << "["<<*i<<"]"; } stream << "] m_message_queue: ["; if ( response.m_message_queue != NULL ) stream << response.m_message_queue; stream << "] m_ext_strings: ["; if ( response.m_ext_strings != NULL ) { // iterate... for ( epp_xml_string_seq::iterator j = response.m_ext_strings->begin(); j != response.m_ext_strings->end(); j++ ) { stream << "["<<*j<<"]"; } } stream << "] m_trans_id: ["; if ( response.m_trans_id != NULL ) stream << response.m_trans_id; stream << "]"; return stream; } --- NEW FILE: epp_Result.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Result.cc,v 1.1 2003/05/28 19:55:17 tubadanm Exp $ */ /** @file epp_Result.cc * @brief Definition of epp_Result and epp_Result_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_Result.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(ostream &stream, const epp_Result_ref & result) { return stream << *result; } ostream& eppobject::epp::operator<<(ostream &stream, const epp_Result & result) { stream << "m_code ["<<*result.m_code<<"] m_msg ["<<*result.m_msg<<"] m_lang ["<<*result.m_lang<<"] "; stream << "m_values ["; if ( result.m_values != NULL ) { for ( epp_resultvalue_seq::iterator i = result.m_values->begin(); i != result.m_values->end(); i++ ) { stream <<"["<<*i<<"]"; } } stream << "] "; stream << "m_ext_values ["; if ( result.m_ext_values != NULL ) { for ( epp_extresultvalue_seq::iterator j = result.m_ext_values->begin(); j != result.m_ext_values->end(); j++ ) { stream <<"["<<*j<<"]"; } } stream << "]"; return stream; } --- NEW FILE: epp_ResultValue.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ResultValue.cc,v 1.1 2003/05/28 19:55:18 tubadanm Exp $ */ /** @file epp_ResultValue.cc * @brief Definition of epp_ResultValue and epp_ResultValue_ref * @author Daniel Manley */ #include "epp_ResultValue.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(ostream &stream, const epp_ResultValue_ref & resvalue) { return stream << *resvalue; } ostream& eppobject::epp::operator<<(ostream &stream, const epp_ResultValue & resvalue) { stream << "m_namespace ["<<*resvalue.m_namespace<<"] m_xml_string ["<<*resvalue.m_xml_string<<"] m_element_name ["<<*resvalue.m_element_name<<"] m_element_value ["<<*resvalue.m_element_value<<"]"; return stream; } --- NEW FILE: epp_TransID.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 ************************************************************************/ /* $Header: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_TransID.cc,v 1.1 2003/05/28 19:55:18 tubadanm Exp $ */ /** @file epp_TransID.cc * @brief Definition of epp_TransID and epp_TransID_ref * @author Asbjorn Steira Mikkelsen */ #include "epp_TransID.h" using namespace eppobject::epp; using namespace std; ostream& eppobject::epp::operator<<(ostream &stream, const epp_TransID_ref & transid) { return stream << *transid; } ostream& eppobject::epp::operator<<(ostream &stream, const epp_TransID & transid) { stream << "m_client_trid ["<<*transid.m_client_trid<<"] m_server_trid ["<<*transid.m_server_trid<<"]"; return stream; } Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile.am 22 May 2003 20:26:12 -0000 1.6 --- Makefile.am 28 May 2003 19:55:07 -0000 1.7 *************** *** 118,122 **** epp_domainXMLbase.cc \ epp_eppXMLbase.cc \ ! epp_hostXMLbase.cc CLEANFILES = *~ --- 118,129 ---- epp_domainXMLbase.cc \ epp_eppXMLbase.cc \ ! epp_hostXMLbase.cc \ ! epp_MessageQueue.cc \ ! epp_Response.cc \ ! epp_Exception.cc \ ! epp_ResultValue.cc \ ! epp_ExtResultValue.cc \ ! epp_TransID.cc \ ! epp_Result.cc CLEANFILES = *~ Index: epp_DataCollectionPolicy.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DataCollectionPolicy.cc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_DataCollectionPolicy.cc 27 May 2003 19:33:52 -0000 1.2 --- epp_DataCollectionPolicy.cc 28 May 2003 19:55:09 -0000 1.3 *************** *** 38,42 **** using namespace std; ! ostream& eppobject::epp::operator<<(ostream &stream, epp_DataCollectionPolicy & dcp) { stream << "epp_DataCollectionPolicy: "<<dcp.m_access<<" "<<dcp.m_statements<<" "<<dcp.m_expiry; --- 38,42 ---- using namespace std; ! ostream& eppobject::epp::operator<<(ostream &stream, const epp_DataCollectionPolicy & dcp) { stream << "epp_DataCollectionPolicy: "<<dcp.m_access<<" "<<dcp.m_statements<<" "<<dcp.m_expiry; *************** *** 46,50 **** } ! ostream& eppobject::epp::operator<<(ostream &stream, epp_DataCollectionPolicy_ref & dcp) { stream << *dcp; --- 46,50 ---- } ! ostream& eppobject::epp::operator<<(ostream &stream, const epp_DataCollectionPolicy_ref & dcp) { stream << *dcp; *************** *** 54,58 **** } ! ostream& eppobject::epp::operator<<(ostream &stream, epp_dcpAccessType_ref & access) { stream << "m_access ["; --- 54,58 ---- } ! ostream& eppobject::epp::operator<<(ostream &stream, const epp_dcpAccessType_ref & access) { stream << "m_access ["; *************** *** 75,79 **** } ! ostream& eppobject::epp::operator<<(ostream &stream, epp_dcpStatement_seq_ref & statements) { stream << "m_statements ["; --- 75,79 ---- } ! ostream& eppobject::epp::operator<<(ostream &stream, const epp_dcpStatement_seq_ref & statements) { stream << "m_statements ["; *************** *** 161,165 **** ! ostream& eppobject::epp::operator<<(ostream &stream, epp_dcpExpiry_ref & expiry) { stream << "m_expiry ["; --- 161,165 ---- ! ostream& eppobject::epp::operator<<(ostream &stream, const epp_dcpExpiry_ref & expiry) { stream << "m_expiry ["; Index: epp_DataCollectionPolicy.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DataCollectionPolicy.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_DataCollectionPolicy.h 22 May 2003 20:26:13 -0000 1.5 --- epp_DataCollectionPolicy.h 28 May 2003 19:55:10 -0000 1.6 *************** *** 68,72 **** }; ! friend std::ostream& operator<<(std::ostream &stream, epp_DataCollectionPolicy & dcp); }; --- 68,72 ---- }; ! friend std::ostream& operator<<(std::ostream &stream, const epp_DataCollectionPolicy & dcp); }; *************** *** 74,81 **** /// Typedef for the ref to the epp_DataCollectionPolicy class typedef refcnt_ptr<epp_DataCollectionPolicy> epp_DataCollectionPolicy_ref; ! std::ostream& operator<<(std::ostream &stream, epp_DataCollectionPolicy_ref & dcp); ! std::ostream& operator<<(std::ostream &stream, epp_dcpAccessType_ref & access); ! std::ostream& operator<<(std::ostream &stream, epp_dcpStatement_seq_ref & statements); ! std::ostream& operator<<(std::ostream &stream, epp_dcpExpiry_ref & expiry); }} --- 74,81 ---- /// Typedef for the ref to the epp_DataCollectionPolicy class typedef refcnt_ptr<epp_DataCollectionPolicy> epp_DataCollectionPolicy_ref; ! std::ostream& operator<<(std::ostream &stream, const epp_DataCollectionPolicy_ref & dcp); ! std::ostream& operator<<(std::ostream &stream, const epp_dcpAccessType_ref & access); ! std::ostream& operator<<(std::ostream &stream, const epp_dcpStatement_seq_ref & statements); ! std::ostream& operator<<(std::ostream &stream, const epp_dcpExpiry_ref & expiry); }} Index: epp_Exception.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Exception.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_Exception.h 13 May 2003 22:55:51 -0000 1.11 --- epp_Exception.h 28 May 2003 19:55:10 -0000 1.12 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_EXCEPTION_H + /* $Header$ */ + /** @file epp_Exception.h * @brief Definition of epp_Exception *************** *** 77,80 **** --- 79,85 ---- }; + + std::ostream& operator<<(std::ostream &stream, const epp_Exception & exception); + }} Index: epp_ExtResultValue.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ExtResultValue.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ExtResultValue.h 13 May 2003 22:55:51 -0000 1.1 --- epp_ExtResultValue.h 28 May 2003 19:55:13 -0000 1.2 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_EXT_RESULT_VALUE_H + /* $Header$ */ + /** @file epp_ExtResultValue.h * @brief Definition of epp_ExtResultValue and epp_ExtResultValue_ref *************** *** 74,77 **** --- 76,81 ---- /// Typedef for the ref to the epp_ExtResultValue class typedef refcnt_ptr<epp_ExtResultValue> epp_ExtResultValue_ref; + std::ostream& operator<<(std::ostream &stream, const epp_ExtResultValue_ref & extresvalue); + std::ostream& operator<<(std::ostream &stream, const epp_ExtResultValue & extresvalue); }} Index: epp_MessageQueue.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_MessageQueue.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_MessageQueue.h 13 May 2003 22:55:51 -0000 1.5 --- epp_MessageQueue.h 28 May 2003 19:55:14 -0000 1.6 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_MESSAGEQUEUE_H + /* $Header$ */ + /** @file epp_MessageQueue.h * @brief Definition of epp_MessageQueue and epp_MessageQueue_ref *************** *** 81,84 **** --- 83,88 ---- /// Typedef for the ref to the epp_MessageQueue classe typedef refcnt_ptr<epp_MessageQueue> epp_MessageQueue_ref; + std::ostream& operator<<(std::ostream &stream, const epp_MessageQueue_ref & msgq); + std::ostream& operator<<(std::ostream &stream, const epp_MessageQueue & msgq); }} Index: epp_Response.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Response.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_Response.h 13 May 2003 22:55:51 -0000 1.11 --- epp_Response.h 28 May 2003 19:55:15 -0000 1.12 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_RESPONSE_H + /* $Header$ */ + /** @file epp_Response.h * @brief Definition of epp_Response and epp_Response_ref *************** *** 72,75 **** --- 74,80 ---- /// Typedef for the ref to the epp_Response class typedef refcnt_ptr<epp_Response> epp_Response_ref; + /// stream output of a response reference pointer + std::ostream& operator<<(std::ostream &stream, const epp_Response_ref & response); + std::ostream& operator<<(std::ostream &stream, const epp_Response & response); }} Index: epp_Result.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Result.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_Result.h 13 May 2003 22:55:51 -0000 1.11 --- epp_Result.h 28 May 2003 19:55:17 -0000 1.12 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_RESULT_H + /* $Header$ */ + /** @file epp_Result.h * @brief Definition of epp_Result and epp_Result_ref *************** *** 93,96 **** --- 95,100 ---- /// Typedef for the ref to the epp_Result class typedef refcnt_ptr<epp_Result> epp_Result_ref; + std::ostream& operator<<(std::ostream &stream, const epp_Result_ref & result); + std::ostream& operator<<(std::ostream &stream, const epp_Result & result); }} Index: epp_ResultValue.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ResultValue.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ResultValue.h 13 May 2003 22:55:51 -0000 1.1 --- epp_ResultValue.h 28 May 2003 19:55:18 -0000 1.2 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_RESULT_VALUE_H + /* $Header$ */ + /** @file epp_ResultValue.h * @brief Definition of epp_ResultValue and epp_ResultValue_ref *************** *** 83,86 **** --- 85,90 ---- /// Typedef for the ref to the epp_ResultValue class typedef refcnt_ptr<epp_ResultValue> epp_ResultValue_ref; + std::ostream& operator<<(std::ostream &stream, const epp_ResultValue_ref & resvalue); + std::ostream& operator<<(std::ostream &stream, const epp_ResultValue & resvalue); }} Index: epp_TransID.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_TransID.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_TransID.h 17 Jul 2002 13:44:48 -0000 1.9 --- epp_TransID.h 28 May 2003 19:55:18 -0000 1.10 *************** *** 29,32 **** --- 29,34 ---- #define __EPP_TRANSID_H + /* $Header$ */ + /** @file epp_TransID.h * @brief Definition of epp_TransID and epp_TransID_ref *************** *** 72,75 **** --- 74,79 ---- /// Typedef for the ref to the epp_TransID class typedef refcnt_ptr<epp_TransID> epp_TransID_ref; + std::ostream& operator<<(std::ostream &stream, const epp_TransID_ref & transid); + std::ostream& operator<<(std::ostream &stream, const epp_TransID & transid); }} |