You can subscribe to this list here.
2002 |
Jan
|
Feb
(44) |
Mar
(51) |
Apr
(11) |
May
(5) |
Jun
(1) |
Jul
(19) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(3) |
Feb
|
Mar
|
Apr
(24) |
May
(37) |
Jun
(23) |
Jul
(14) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(17) |
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
2005 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(3) |
Nov
|
Dec
|
2007 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(7) |
Dec
|
From: Asbjorn M. <ste...@us...> - 2002-03-14 18:37:57
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv14959 Modified Files: epp_TransportBase.h epp_TransportConn.h epp_TransportIOStream.cc epp_TransportIOStream.h epp_TransportSSL.cc epp_TransportSSL.h epp_TransportTCP.cc epp_TransportTCP.h transports.h Log Message: Added JavaDocs documentation to all files, and minor cleanups. Index: epp_TransportBase.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportBase.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_TransportBase.h 13 Mar 2002 13:55:19 -0000 1.5 --- epp_TransportBase.h 14 Mar 2002 18:37:50 -0000 1.6 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_TRANSPORTBASE_H + /** @file epp_TransportBase.h + * @brief Definition of epp_TransportBase and epp_TrException + * @author Asbjorn Steira Mikkelsen + */ + #include <domtools/refcount.h> #include <string> *************** *** 35,46 **** namespace epptransport { ! class epp_TransportBase { protected: ! string m_type; public: epp_TransportBase() { --- 40,53 ---- namespace epptransport { ! ! /// Abstract class defining common methods and attributes used in all transport classes class epp_TransportBase { protected: ! string m_type; /**< Transport type */ public: + /// Null constructor epp_TransportBase() { *************** *** 48,64 **** --- 55,93 ---- }; + /// Destructor virtual ~epp_TransportBase() {}; + /// Abstract function, writing data to server + /// @param xml_string Data to write to server virtual void writeToServer(const string & xml_string) = 0; + + /// Abstract function, reading data from server + /// @return Data read from server virtual string readFromServer() = 0; + /// Connects to server virtual void connect() {}; + + /// Disconnects from server virtual void disconnect() {}; + /// Returning the port of the server + /// @return Server port virtual unsigned long getServerPort() { return 0;}; + + /// Setting the port of the server + /// @param serverPort Server port virtual void setServerPort(const unsigned long & serverPort) {}; + + /// Returning the name of the server + /// @return Server name virtual string getServerName() { return "";}; + + /// Setting the name of the server + /// @param serverName Server name virtual void setServerName(const string & serverName) {}; + /// Returning type of transport + /// @return Transport type virtual string getType() { *************** *** 67,82 **** }; typedef refcnt_ptr<epp_TransportBase> epp_TransportBase_ref; ! class epp_TrException : public exception { public: ! ! string m_error_message; epp_TrException() {}; virtual ~epp_TrException() {}; epp_TrException(const string & data) throw() { --- 96,115 ---- }; + /// Typedef for the ref to the epp_TransportBase class typedef refcnt_ptr<epp_TransportBase> epp_TransportBase_ref; ! /// Exception class containing information about errors encountered in transport handling class epp_TrException : public exception { public: ! string m_error_message; /**< Text describing the encountered error */ + /// Null constructor epp_TrException() {}; + + /// Destructor virtual ~epp_TrException() {}; + /// Constructor with error data epp_TrException(const string & data) throw() { *************** *** 84,88 **** }; ! // Kept for backwords compatibility: virtual string getString() { --- 117,122 ---- }; ! /// Returns the error string ! /// @deprecated Access the data directly instead virtual string getString() { *************** *** 90,93 **** --- 124,128 ---- } + /// Constructor with error data, file name, and line number epp_TrException(const string file, const int lineno, const string & data) throw() { Index: epp_TransportConn.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportConn.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_TransportConn.h 13 Mar 2002 13:55:19 -0000 1.5 --- epp_TransportConn.h 14 Mar 2002 18:37:50 -0000 1.6 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_TRANSPORTCONN_H + /** @file epp_TransportConn.h + * @brief Definition of epp_TransportConn + * @author Asbjorn Steira Mikkelsen + */ + #include <string> #include "epp_TransportBase.h" *************** *** 34,62 **** namespace epptransport { class epp_TransportConn : public epp_TransportBase { protected: ! string m_serverName; ! unsigned long m_serverPort; public: epp_TransportConn() { m_serverName = "epp.nic.name"; m_serverPort = 3121; }; virtual ~epp_TransportConn() {}; ! virtual void writeToServer(const string & xml_string) = 0; ! virtual string readFromServer() = 0; ! virtual void connect(const string & serverName, const unsigned long & serverPort) = 0; virtual void connect() = 0; virtual void disconnect() = 0; ! // Deprecated, use getServerName instead virtual string getServerIP() { --- 39,79 ---- namespace epptransport { + /// Abstract class defining common methods and attributes used in + /// connection-based transport classes + /// @see epp_TransportBase for additional information class epp_TransportConn : public epp_TransportBase { protected: ! string m_serverName; /**< The name of the server to connect to */ ! unsigned long m_serverPort; /**< The port of the server to connect to */ public: + /// Null constructor, setting epp_TransportBase#m_type epp_TransportConn() { + m_type = "epp_TransportConn"; m_serverName = "epp.nic.name"; m_serverPort = 3121; }; + /// Destructor virtual ~epp_TransportConn() {}; ! /// Abstract function, connects to server using server name and server port ! /// @param serverName Name of server ! /// @param serverPort Port of server virtual void connect(const string & serverName, const unsigned long & serverPort) = 0; + + /// Abstract function, connects to server virtual void connect() = 0; + + /// Abstract function, disconnects from server virtual void disconnect() = 0; ! /// Returning the IP address of the server ! /// @return IP address of server ! /// @deprecated Use getServerName() instead virtual string getServerIP() { *************** *** 64,68 **** }; ! // Deprecated, use setServerName instead virtual void setServerIP(const string & serverIP) { --- 81,87 ---- }; ! /// Setting the IP address of the server ! /// @param serverIP IP address of server ! /// @deprecated Use setServerName() instead virtual void setServerIP(const string & serverIP) { *************** *** 70,73 **** --- 89,94 ---- } + /// Returning the port of the server + /// @return Port for server virtual unsigned long getServerPort() { *************** *** 75,78 **** --- 96,101 ---- }; + /// Setting the port of the server + /// @param serverPort Port for server virtual void setServerPort(const unsigned long & serverPort) { *************** *** 80,83 **** --- 103,108 ---- } + /// Returning the name of the server + /// @return Name of server virtual string getServerName() { *************** *** 85,88 **** --- 110,115 ---- }; + /// Setting the name of the server + /// @param serverName Name of server virtual void setServerName(const string & serverName) { *************** *** 92,95 **** --- 119,123 ---- }; + /// Typedef for the ref to the epp_TransportConn class typedef refcnt_ptr<epp_TransportConn> epp_TransportConn_ref; }; Index: epp_TransportIOStream.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportIOStream.cc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_TransportIOStream.cc 8 Mar 2002 11:10:15 -0000 1.5 --- epp_TransportIOStream.cc 14 Mar 2002 18:37:50 -0000 1.6 *************** *** 26,31 **** --- 26,38 ---- ************************************************************************/ + /** @file epp_TransportIOStream.cc + * @brief Definition of epp_TransportIOStream functions + * @author Asbjorn Steira Mikkelsen + * @see epp_TransportIOStream.h + */ + #include "epp_TransportIOStream.h" + using namespace epptransport; *************** *** 42,45 **** --- 49,53 ---- #endif } + string epp_TransportIOStream::readFromServer() Index: epp_TransportIOStream.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportIOStream.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_TransportIOStream.h 13 Mar 2002 13:55:19 -0000 1.3 --- epp_TransportIOStream.h 14 Mar 2002 18:37:50 -0000 1.4 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_TRANSPORTIOSTREAM_H + /** @file epp_TransportIOStream.h + * @brief Definition of epp_TransportIOStream + * @author Asbjorn Steira Mikkelsen + */ + #include <string> #include "epp_TransportBase.h" *************** *** 34,41 **** --- 39,50 ---- namespace epptransport { + /// Class defining the IOStream transport, which reads from cin + /// and writes to cout + /// @see epp_TransportBase for additional information class epp_TransportIOStream : public epp_TransportBase { public: + /// Null constructor, setting epp_TransportBase#m_type epp_TransportIOStream() { *************** *** 43,53 **** --- 52,68 ---- }; + /// Destructor virtual ~epp_TransportIOStream() {}; + /// Writing data to cout + /// @param xml_string Data to write to cout void writeToServer(const string & xml_string); + /// Reading data from cin + /// @return Data read from cin string readFromServer(); }; + /// Typedef for the ref to the epp_TransportIOStream class typedef refcnt_ptr<epp_TransportIOStream> epp_TransportIOStream_ref; }; Index: epp_TransportSSL.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.cc,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** epp_TransportSSL.cc 13 Mar 2002 15:50:39 -0000 1.12 --- epp_TransportSSL.cc 14 Mar 2002 18:37:50 -0000 1.13 *************** *** 26,29 **** --- 26,35 ---- ************************************************************************/ + /** @file epp_TransportSSL.cc + * @brief Definition of epp_TransportSSL functions + * @author Asbjorn Steira Mikkelsen + * @see epp_TransportSSL.h + */ + #include "epp_TransportSSL.h" #include <openssl/ssl.h> *************** *** 75,78 **** --- 81,85 ---- } + string epp_TransportSSL::readFromServer() { *************** *** 123,126 **** --- 130,134 ---- } + void epp_TransportSSL::connect(const string & serverName, const unsigned long & serverPort, const string & certFile, const string & cacertFile = "", *************** *** 135,138 **** --- 143,147 ---- } + void epp_TransportSSL::connect(const string & serverName, const unsigned long & serverPort) { *************** *** 142,145 **** --- 151,155 ---- } + void epp_TransportSSL::connect() { *************** *** 181,184 **** --- 191,195 ---- } + void epp_TransportSSL::disconnect() Index: epp_TransportSSL.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_TransportSSL.h 13 Mar 2002 15:50:39 -0000 1.11 --- epp_TransportSSL.h 14 Mar 2002 18:37:50 -0000 1.12 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_TRANSPORTSSL_H + /** @file epp_TransportSSL.h + * @brief Definition of epp_TransportSSL + * @author Asbjorn Steira Mikkelsen + */ + #include "../ssl/npssl.h" #include <string> *************** *** 36,53 **** namespace epptransport { class epp_TransportSSL : public epp_TransportConn { private: ! string m_certFile; ! string m_cacertFile; ! string m_cacertDir; ! ! npbase::npssl *sslserver; ! int sockfd; public: ! epp_TransportSSL() : epp_TransportConn() { m_type="epp_TransportSSL"; --- 41,61 ---- namespace epptransport { + /// Class defining the SSL transport, which reads from and + /// writes to a socket through a secure socket layer + /// @see epp_TransportConn for additional information class epp_TransportSSL : public epp_TransportConn { private: + string m_certFile; /**< SSL certificate file location */ + string m_cacertFile; /**< Certificate authority filename */ + string m_cacertDir; /**< Certificate authority directory */ ! npbase::npssl *sslserver; /**< SSL server handler */ ! int sockfd; /**< Socket file descriptor */ public: ! /// Null constructor, setting epp_TransportBase#m_type ! epp_TransportSSL() { m_type="epp_TransportSSL"; *************** *** 57,64 **** }; epp_TransportSSL(const string & certFile, const string & cacertFile = "", const string & cacertDir = "") - : epp_TransportConn() { m_type="epp_TransportSSL"; --- 65,72 ---- }; + /// Constructor with certificate file locations epp_TransportSSL(const string & certFile, const string & cacertFile = "", const string & cacertDir = "") { m_type="epp_TransportSSL"; *************** *** 69,72 **** --- 77,81 ---- }; + /// Destructor virtual ~epp_TransportSSL() { *************** *** 74,82 **** --- 83,109 ---- }; + /// Writing data to server + /// @param xml_string Data to write to server + /// @throw epp_TrException If it is not connected to the server + /// @throw epp_TrException If it is unable write to server void writeToServer(const string & xml_string); + /// Reading data from server + /// @return Data read from server + /// @throw epp_TrException If it is not connected to the server + /// @throw epp_TrException If it is unable to read from server string readFromServer(); + /// Connecting to server by setting server name and server port and then calling #connect() + /// @param serverName Name of server + /// @param serverPort Port of server void connect(const string & serverName, const unsigned long & serverPort); + + /// Connecting to server by setting server name/port and certificate files and then calling #connect() + /// @param serverName Name of server + /// @param serverPort Port of server + /// @param certFile SSL certificate file location + /// @param cacertFile Certificate authority filename + /// @param cacertDir Certificate authority directory void connect(const string & serverName, const unsigned long & serverPort, *************** *** 85,91 **** --- 112,127 ---- const string & cacertDir = ""); + /// Connects to server + /// @throw epp_TrException If it is unable to connect to server + /// @throw epp_TrException If it is unable to set up a connection with the server + /// @throw epp_TrException If SSL handshake fails void connect(); + + /// Disconnects from server void disconnect(); + + /// Returning the location of the SSL certificate file + /// @return Location of the SSL certificate file string getCertFile() { *************** *** 93,96 **** --- 129,134 ---- }; + /// Setting the location of the SSL certificate file + /// @param certFile Location of the SSL certificate file void setCertFile(const string & certFile) { *************** *** 98,101 **** --- 136,141 ---- } + /// Returning the filename of the certificate authority file + /// @return Filename of the certificate authority file string getCACertFile() { *************** *** 103,106 **** --- 143,148 ---- } + /// Setting the filename of the certificate authority file + /// @param cacertFile Filename of the certificate authority file void setCACertFile(const string & cacertFile) { *************** *** 108,111 **** --- 150,155 ---- } + /// Returning the directory of the certificate authority file + /// @return Directory of the certificate authority file string getCACertDir() { *************** *** 113,116 **** --- 157,162 ---- } + /// Setting the directory of the certificate authority file + /// @param cacertDir Directory of the certificate authority file void setCACertDir(const string & cacertDir) { *************** *** 118,121 **** --- 164,169 ---- } + /// Tells whether the client is connected to the server or not + /// @return True if client is connect to server, otherwise false bool connected() { *************** *** 124,127 **** --- 172,176 ---- }; + /// Typedef for the ref to the epp_TransportSSL class typedef refcnt_ptr<epp_TransportSSL> epp_TransportSSL_ref; Index: epp_TransportTCP.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportTCP.cc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_TransportTCP.cc 13 Mar 2002 13:55:19 -0000 1.3 --- epp_TransportTCP.cc 14 Mar 2002 18:37:50 -0000 1.4 *************** *** 26,29 **** --- 26,36 ---- ************************************************************************/ + + /** @file epp_TransportTCP.cc + * @brief Definition of epp_TransportTCP functions + * @author Asbjorn Steira Mikkelsen + * @see epp_TransportTCP.h + */ + #include "epp_TransportTCP.h" *************** *** 63,67 **** ! epp_TransportTCP::epp_TransportTCP() : epp_TransportConn() { m_type="epp_TransportTCP"; --- 70,74 ---- ! epp_TransportTCP::epp_TransportTCP() { m_type="epp_TransportTCP"; *************** *** 71,75 **** timeout = 0; readbuf[0] = '\0'; - memset(rbuf, 0, sizeof(rbuf)); } --- 78,81 ---- *************** *** 183,186 **** --- 189,193 ---- } + int epp_TransportTCP::getC() { *************** *** 245,248 **** --- 252,256 ---- } + void epp_TransportTCP::connect() { *************** *** 270,273 **** --- 278,282 ---- } + void epp_TransportTCP::disconnect() Index: epp_TransportTCP.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportTCP.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_TransportTCP.h 13 Mar 2002 13:55:19 -0000 1.2 --- epp_TransportTCP.h 14 Mar 2002 18:37:50 -0000 1.3 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_TRANSPORTTCP_H + /** @file epp_TransportTCP.h + * @brief Definition of epp_TransportTCP + * @author Asbjorn Steira Mikkelsen + */ + #include <string> #include "epp_TransportConn.h" *************** *** 35,50 **** namespace epptransport { class epp_TransportTCP : public epp_TransportConn { private: ! char readbuf[16384]; ! int sockfd; ! unsigned int pos; ! int len; ! unsigned int timeout; bool fillBuf(void); enum { READ = 1, --- 40,61 ---- namespace epptransport { + /// Class defining the TCP transport, which reads from and + /// writes to a socket + /// @see epp_TransportConn for additional information class epp_TransportTCP : public epp_TransportConn { private: ! char readbuf[16384]; /**< Buffer used when reading from server */ ! int sockfd; /**< Socket file descriptor */ ! unsigned int pos; /**< Read position in read buffer */ ! int len; /**< Length of data in read buffer */ ! unsigned int timeout; /**< Timeout value */ + /// Reads data from the socket into #readbuf + /// @return True if successful read from socket bool fillBuf(void); + /// Read or write operation enum { READ = 1, *************** *** 52,63 **** }; - protected: - - char rbuf[4096]; - public: epp_TransportTCP(); virtual ~epp_TransportTCP() { --- 63,72 ---- }; public: + /// Null constructor, setting epp_TransportBase#m_type epp_TransportTCP(); + /// Destructor virtual ~epp_TransportTCP() { *************** *** 65,80 **** --- 74,111 ---- }; + /// Writing data to server + /// @param xml_string Data to write to server + /// @throw epp_TrException If it cannot write to server void writeToServer(const string & xml_string); + /// Reading data from server + /// @return Data read from server string readFromServer(); + /// Selects type of operation (READ/WRITE) + /// @param type Type of operation to select + /// @return True if operation successfully selected + /// @throw epp_TrException If socket timed out bool select(int type) const; + + /// Connecting to server by setting server name and server port and then calling #connect() + /// @param serverName Name of server + /// @param serverPort Port of server void connect(const string & serverName, const unsigned long & serverPort); + + /// Connects to server + /// @throw epp_TrException If it is unable to resolve hostname + /// @throw epp_TrException If it is unable to connect to server void connect(); + + /// Disconnects from server void disconnect(); + /// Reads one character from the server + /// @return ASCII value of read character, or -1 if nothing to read int getC(); }; + /// Typedef for the ref to the epp_TransportTCP class typedef refcnt_ptr<epp_TransportTCP> epp_TransportTCP_ref; Index: transports.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/transports.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** transports.h 12 Mar 2002 13:30:43 -0000 1.1 --- transports.h 14 Mar 2002 18:37:50 -0000 1.2 *************** *** 29,32 **** --- 29,37 ---- #define __TRANSPORTS_H + /** @file transports.h + * @brief Files including all allowed (non-abstract) transports + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_TransportIOStream.h" #include "epp_TransportSSL.h" |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv11654a Modified Files: epp_DomainCreateRsp.h epp_DomainUpdateAddRemove.h epp_Greeting.h epp_HostCreateReq.h epp_HostCreateRsp.h epp_HostInfoRsp.h epp_HostUpdateAddRemove.h epp_HostUpdateChange.h epp_HostUpdateReq.h epp_LogoutReq.h epp_PollReq.h epp_PollRsp.h epp_ResultData.h epp_ServiceMenu.h epp_StatusReq.h epp_StatusResultData.h epp_StatusRsp.h epp_TransferRequest.h epp_contactdata.h epp_dcpStatement.h epp_domaindata.h epp_eppdata.h epp_hostdata.h Log Message: Added JavaDocs documentation. All files in data/ should now have JavaDocs documentation. Index: epp_DomainCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCreateRsp.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_DomainCreateRsp.h 12 Mar 2002 20:38:32 -0000 1.10 --- epp_DomainCreateRsp.h 14 Mar 2002 16:45:16 -0000 1.11 *************** *** 45,49 **** public: eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the created domain object */ ! eppobject::epp::epp_datetime_ref m_creation_date; /**< Date and time of contact object creation */ eppobject::epp::epp_datetime_ref m_expiration_date; /**< Date and time identifying the end of the * domain object's registration period */ --- 45,49 ---- public: eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the created domain object */ ! eppobject::epp::epp_datetime_ref m_creation_date; /**< Date and time of domain object creation */ eppobject::epp::epp_datetime_ref m_expiration_date; /**< Date and time identifying the end of the * domain object's registration period */ Index: epp_DomainUpdateAddRemove.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateAddRemove.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainUpdateAddRemove.h 12 Mar 2002 20:38:33 -0000 1.7 --- epp_DomainUpdateAddRemove.h 14 Mar 2002 16:45:16 -0000 1.8 *************** *** 29,34 **** #define __EPP_DOMAINUPDATEADDREMOVE_H ! /** @file epp_UpdateUpdateAddRemove.h ! * @brief Definition of epp_UpdateUpdateAddRemove and epp_UpdateUpdateAddRemove_ref * @author Asbjorn Steira Mikkelsen */ --- 29,34 ---- #define __EPP_DOMAINUPDATEADDREMOVE_H ! /** @file epp_DomainUpdateAddRemove.h ! * @brief Definition of epp_DomainUpdateAddRemove and epp_DomainUpdateAddRemove_ref * @author Asbjorn Steira Mikkelsen */ Index: epp_Greeting.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Greeting.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_Greeting.h 8 Mar 2002 11:41:27 -0000 1.8 --- epp_Greeting.h 14 Mar 2002 16:45:16 -0000 1.9 *************** *** 40,44 **** namespace eppobject { namespace epp { ! // Class describing the server and its supported services class epp_Greeting { --- 40,44 ---- namespace eppobject { namespace epp { ! /// Class describing the server and its supported services class epp_Greeting { *************** *** 46,51 **** epp_string_ref m_server_id; /**< Name of the server */ epp_datetime_ref m_server_date; /**< Current date and time in UTC of the server */ ! epp_ServiceMenu_ref m_svc_menu; ! epp_DataCollectionPolicy_ref m_dcp; /// Null constructor --- 46,52 ---- epp_string_ref m_server_id; /**< Name of the server */ epp_datetime_ref m_server_date; /**< Current date and time in UTC of the server */ ! epp_ServiceMenu_ref m_svc_menu; /**< Menu identifying the services supported by the server */ ! epp_DataCollectionPolicy_ref m_dcp; /**< Elements used to describe the server's policy for data ! * collection and management */ /// Null constructor Index: epp_HostCreateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostCreateReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostCreateReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostCreateReq.h 14 Mar 2002 16:45:16 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTCREATEREQ_H + /** @file epp_HostCreateReq.h + * @brief Definition of epp_HostCreateReq and epp_HostCreateReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericReq.h" *************** *** 35,49 **** namespace eppobject { namespace host { class epp_HostCreateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; ! epp_host_address_seq_ref m_addresses; epp_HostCreateReq() {}; virtual ~epp_HostCreateReq() {} ! // Note: Cannot set simple types to NULL epp_HostCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, --- 40,59 ---- namespace eppobject { namespace host { + /// Class containing elements used in host create requests + /// @see epp_GenericReq for additional information class epp_HostCreateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the host object to be created */ ! epp_host_address_seq_ref m_addresses; /**< IP addresses to be associated with the host */ + /// Null constructor epp_HostCreateReq() {}; + /// Destructor virtual ~epp_HostCreateReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, *************** *** 55,59 **** }; ! epp_HostCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, --- 65,69 ---- }; ! /// Constructor, using only references epp_HostCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, *************** *** 65,69 **** }; }; ! typedef refcnt_ptr<epp_HostCreateReq> epp_HostCreateReq_ref; --- 75,80 ---- }; }; ! ! /// Typedef for the ref to the epp_HostCreateReq class typedef refcnt_ptr<epp_HostCreateReq> epp_HostCreateReq_ref; Index: epp_HostCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostCreateRsp.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_HostCreateRsp.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_HostCreateRsp.h 14 Mar 2002 16:45:16 -0000 1.10 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTCREATERSP_H + /** @file epp_HostCreateRsp.h + * @brief Definition of epp_HostCreateRsp and epp_HostCreateRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericRsp.h" *************** *** 34,48 **** namespace eppobject { namespace host { class epp_HostCreateRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_datetime_ref m_creation_date; epp_HostCreateRsp() {}; virtual ~epp_HostCreateRsp() {} ! // Note: Cannot set simple types to NULL epp_HostCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, --- 39,58 ---- namespace eppobject { namespace host { + /// Class containing elements used in host create responses + /// @see epp_GenericRsp for additional information class epp_HostCreateRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the created host object */ ! eppobject::epp::epp_datetime_ref m_creation_date; /**< Date and time of host object creation */ + /// Null constructor epp_HostCreateRsp() {}; + /// Destructor virtual ~epp_HostCreateRsp() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, *************** *** 54,58 **** }; ! epp_HostCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, --- 64,68 ---- }; ! /// Constructor, using only references epp_HostCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, *************** *** 65,68 **** --- 75,79 ---- }; + /// Typedef for the ref to the epp_HostCreateRsp class typedef refcnt_ptr<epp_HostCreateRsp> epp_HostCreateRsp_ref; Index: epp_HostInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostInfoRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostInfoRsp.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_HostInfoRsp.h 14 Mar 2002 16:45:16 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTINFORSP_H + /** @file epp_HostInfoRsp.h + * @brief Definition of epp_HostInfoRsp and epp_HostInfoRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericRsp.h" *************** *** 36,59 **** namespace eppobject { namespace host { class epp_HostInfoRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_roid_ref m_roid; ! epp_host_status_seq_ref m_status; ! epp_host_address_seq_ref m_addresses; ! eppobject::epp::epp_string_ref m_client_id; ! eppobject::epp::epp_string_ref m_created_by; ! eppobject::epp::epp_datetime_ref m_created_date; ! eppobject::epp::epp_string_ref m_updated_by; ! eppobject::epp::epp_datetime_ref m_updated_date; ! eppobject::epp::epp_datetime_ref m_transfer_date; ! epp_HostInfoRsp() {}; virtual ~epp_HostInfoRsp() {} ! // Note: Cannot set simple types to NULL epp_HostInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, --- 41,68 ---- namespace eppobject { namespace host { + /// Class containing elements used in host info responses + /// @see epp_GenericRsp for additional information class epp_HostInfoRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the host object */ ! eppobject::epp::epp_roid_ref m_roid; /**< Repository Object IDentifier assigned to the host */ ! epp_host_status_seq_ref m_status; /**< Status of the host object */ ! epp_host_address_seq_ref m_addresses; /**< IP addresses associated with the host */ ! eppobject::epp::epp_string_ref m_client_id; /**< Identifier of the sponsoring client */ ! eppobject::epp::epp_string_ref m_created_by; /**< Identifier of the client that created the host */ ! eppobject::epp::epp_datetime_ref m_created_date; /**< Date and time of host object creation */ ! eppobject::epp::epp_string_ref m_updated_by; /**< Identifier of the client that last updated the host */ ! eppobject::epp::epp_datetime_ref m_updated_date; /**< Date and time of the most recent host modification */ ! eppobject::epp::epp_datetime_ref m_transfer_date; /**< Date and time of the most recent successful host transfer */ + /// Null constructor epp_HostInfoRsp() {}; + /// Destructor virtual ~epp_HostInfoRsp() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, *************** *** 81,85 **** }; ! epp_HostInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, --- 90,94 ---- }; ! /// Constructor, using only references epp_HostInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, *************** *** 107,111 **** }; }; ! typedef refcnt_ptr<epp_HostInfoRsp> epp_HostInfoRsp_ref; --- 116,121 ---- }; }; ! ! /// Typedef for the ref to the epp_HostInfoRsp class typedef refcnt_ptr<epp_HostInfoRsp> epp_HostInfoRsp_ref; Index: epp_HostUpdateAddRemove.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostUpdateAddRemove.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_HostUpdateAddRemove.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_HostUpdateAddRemove.h 14 Mar 2002 16:45:16 -0000 1.6 *************** *** 29,32 **** --- 29,36 ---- #define __EPP_HOSTUPDATEADDREMOVE_H + /** @file epp_HostUpdateAddRemove.h + * @brief Definition of epp_HostUpdateAddRemove and epp_HostUpdateAddRemove_ref + * @author Asbjorn Steira Mikkelsen + */ #include "epp_hostdata.h" #include "epp_HostAddress.h" *************** *** 35,48 **** namespace eppobject { namespace host { class epp_HostUpdateAddRemove { - public: - - epp_host_address_seq_ref m_addresses; - epp_host_status_seq_ref m_status; epp_HostUpdateAddRemove() {}; virtual ~epp_HostUpdateAddRemove() {}; epp_HostUpdateAddRemove(epp_host_address_seq_ref _m_addresses, epp_host_status_seq_ref _m_status) --- 39,56 ---- namespace eppobject { namespace host { + /// Class containing elements used in add/remove part of host update requests class epp_HostUpdateAddRemove { + public: + epp_host_address_seq_ref m_addresses; /**< IP addresses (to be) associated with the host */ + epp_host_status_seq_ref m_status; /**< Status of the host object */ + + /// Null constructor epp_HostUpdateAddRemove() {}; + /// Destructor virtual ~epp_HostUpdateAddRemove() {}; + /// Constructor, using only references epp_HostUpdateAddRemove(epp_host_address_seq_ref _m_addresses, epp_host_status_seq_ref _m_status) *************** *** 53,56 **** --- 61,65 ---- }; + /// Typedef for the ref to the epp_HostUpdateAddRemove class typedef refcnt_ptr<epp_HostUpdateAddRemove> epp_HostUpdateAddRemove_ref; Index: epp_HostUpdateChange.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostUpdateChange.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_HostUpdateChange.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_HostUpdateChange.h 14 Mar 2002 16:45:16 -0000 1.7 *************** *** 29,46 **** #define __EPP_HOSTUPDATECHANGE_H #include "epp_hostdata.h" namespace eppobject { namespace host { class epp_HostUpdateChange { - public: - - eppobject::epp::epp_string_ref m_name; epp_HostUpdateChange() {}; virtual ~epp_HostUpdateChange() {}; ! // Note: Cannot set simple types to NULL epp_HostUpdateChange(eppobject::epp::epp_string _m_name) { --- 29,56 ---- #define __EPP_HOSTUPDATECHANGE_H + /** @file epp_HostUpdateChange.h + * @brief Definition of epp_HostUpdateChange and epp_HostUpdateChange_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" namespace eppobject { namespace host { + /// Class containing elements used in the change part of host update requests class epp_HostUpdateChange { + public: + eppobject::epp::epp_string_ref m_name; /**< A new fully qualified host name by which the host + * object will be known */ + + /// Null constructor epp_HostUpdateChange() {}; + /// Destructor virtual ~epp_HostUpdateChange() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostUpdateChange(eppobject::epp::epp_string _m_name) { *************** *** 48,52 **** }; ! epp_HostUpdateChange(eppobject::epp::epp_string_ref _m_name) { --- 58,62 ---- }; ! /// Constructor, using only references epp_HostUpdateChange(eppobject::epp::epp_string_ref _m_name) { *************** *** 55,58 **** --- 65,69 ---- }; + /// Typedef for the ref to the epp_HostUpdateChange class typedef refcnt_ptr<epp_HostUpdateChange> epp_HostUpdateChange_ref; Index: epp_HostUpdateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostUpdateReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_HostUpdateReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_HostUpdateReq.h 14 Mar 2002 16:45:16 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTUPDATEREQ_H + /** @file epp_HostUpdateReq.h + * @brief Definition of epp_HostUpdateReq and epp_HostUpdateReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_hostdata.h" #include "epp_GenericReq.h" *************** *** 36,53 **** namespace eppobject { namespace host { class epp_HostUpdateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; ! epp_HostUpdateAddRemove_ref m_add; ! epp_HostUpdateAddRemove_ref m_remove; ! epp_HostUpdateChange_ref m_change; ! epp_HostUpdateReq() {}; virtual ~epp_HostUpdateReq() {} ! // Note: Cannot set simple types to NULL epp_HostUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, --- 41,62 ---- namespace eppobject { namespace host { + /// Class containing elements used in host update requests + /// @see epp_GenericReq for additional information class epp_HostUpdateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the host object to be updated */ ! epp_HostUpdateAddRemove_ref m_add; /**< Attribute values to be added to the object */ ! epp_HostUpdateAddRemove_ref m_remove; /**< Attribute values to be removed from the object */ ! epp_HostUpdateChange_ref m_change; /**< Object attribute values to be changed */ + /// Null constructor epp_HostUpdateReq() {}; + /// Destructor virtual ~epp_HostUpdateReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_HostUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, *************** *** 63,67 **** }; ! epp_HostUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, --- 72,76 ---- }; ! /// Constructor, using only references epp_HostUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, *************** *** 77,81 **** }; }; ! typedef refcnt_ptr<epp_HostUpdateReq> epp_HostUpdateReq_ref; --- 86,91 ---- }; }; ! ! /// Typedef for the ref to the epp_HostUpdateReq class typedef refcnt_ptr<epp_HostUpdateReq> epp_HostUpdateReq_ref; Index: epp_LogoutReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_LogoutReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_LogoutReq.h 8 Mar 2002 11:41:27 -0000 1.7 --- epp_LogoutReq.h 14 Mar 2002 16:45:16 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_LOGOUTREQ_H + /** @file epp_LogoutReq.h + * @brief Definition of epp_LogoutReq and epp_LogoutReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "../epp_Extension.h" *************** *** 34,48 **** namespace eppobject { namespace epp { class epp_LogoutReq { public: ! epp_Extension_ref m_ext; ! epp_trid_ref m_client_trid; epp_LogoutReq() {}; virtual ~epp_LogoutReq() {} ! // Note: Cannot set simple types to NULL epp_LogoutReq(epp_Extension_ref _m_ext, epp_trid _m_client_trid) --- 39,57 ---- namespace eppobject { namespace epp { + /// Class containing elements used in logout requests class epp_LogoutReq { public: ! epp_Extension_ref m_ext; /**< Extension element used for server-defined command extensions */ ! epp_trid_ref m_client_trid; /**< Client transaction ID element that uniquely identifies the command to the client */ + /// Null constructor epp_LogoutReq() {}; + /// Destructor virtual ~epp_LogoutReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_LogoutReq(epp_Extension_ref _m_ext, epp_trid _m_client_trid) *************** *** 52,56 **** }; ! epp_LogoutReq(epp_Extension_ref _m_ext, epp_trid_ref _m_client_trid) --- 61,65 ---- }; ! /// Constructor, using only references epp_LogoutReq(epp_Extension_ref _m_ext, epp_trid_ref _m_client_trid) *************** *** 61,64 **** --- 70,74 ---- }; + /// Typedef for the ref to the epp_LogoutReq class typedef refcnt_ptr<epp_LogoutReq> epp_LogoutReq_ref; Index: epp_PollReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollReq.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_PollReq.h 21 Feb 2002 14:06:03 -0000 1.6 --- epp_PollReq.h 14 Mar 2002 16:45:16 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_POLLREQ_H + /** @file epp_PollReq.h + * @brief Definition of epp_PollReq and epp_PollReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_GenericReq.h" *************** *** 34,48 **** namespace eppobject { namespace epp { class epp_PollReq : public epp_GenericReq { public: ! epp_PollOpType_ref m_op; ! epp_string_ref m_msgID; epp_PollReq() {}; virtual ~epp_PollReq() {} ! // Note: Cannot set simple types to NULL epp_PollReq(epp_Command_ref _m_cmd, epp_PollOpType _m_op, --- 39,58 ---- namespace eppobject { namespace epp { + /// Class containing elements used in poll requests + /// @see epp_GenericReq for additional information class epp_PollReq : public epp_GenericReq { public: ! epp_PollOpType_ref m_op; /**< Operation type, e.g., "ack"(knowledge) and "req"(uest) */ ! epp_string_ref m_msgID; /**< Message ID when acknowledging receipt of a message */ + /// Null constructor epp_PollReq() {}; + /// Destructor virtual ~epp_PollReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_PollReq(epp_Command_ref _m_cmd, epp_PollOpType _m_op, *************** *** 54,58 **** }; ! epp_PollReq(epp_Command_ref _m_cmd, epp_PollOpType_ref _m_op, --- 64,68 ---- }; ! /// Constructor, using only references epp_PollReq(epp_Command_ref _m_cmd, epp_PollOpType_ref _m_op, *************** *** 64,68 **** }; }; ! typedef refcnt_ptr<epp_PollReq> epp_PollReq_ref; --- 74,79 ---- }; }; ! ! /// Typedef for the ref to the epp_PollReq class typedef refcnt_ptr<epp_PollReq> epp_PollReq_ref; Index: epp_PollRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollRsp.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_PollRsp.h 21 Feb 2002 14:06:03 -0000 1.6 --- epp_PollRsp.h 14 Mar 2002 16:45:16 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_POLLRSP_H + /** @file epp_PollRsp.h + * @brief Definition of epp_PollRsp and epp_PollRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_GenericRsp.h" #include "epp_PollResData.h" *************** *** 34,46 **** namespace eppobject { namespace epp { class epp_PollRsp : public epp_GenericRsp { public: ! epp_PollResData_ref m_res_data; epp_PollRsp() {}; virtual ~epp_PollRsp() {} epp_PollRsp(epp_Response_ref _m_rsp, epp_PollResData_ref _m_res_data) --- 39,57 ---- namespace eppobject { namespace epp { + /// Class containing elements used in poll responses + /// @see epp_GenericRsp for additional information + /// @see epp_PollResData sub-classes for actual returned information class epp_PollRsp : public epp_GenericRsp { public: ! epp_PollResData_ref m_res_data; /**< Actual results of the poll response */ + /// Null constructor epp_PollRsp() {}; + /// Destructor virtual ~epp_PollRsp() {} + /// Constructor, using only references epp_PollRsp(epp_Response_ref _m_rsp, epp_PollResData_ref _m_res_data) *************** *** 51,54 **** --- 62,66 ---- }; + /// Typedef for the ref to the epp_PollRsp class typedef refcnt_ptr<epp_PollRsp> epp_PollRsp_ref; Index: epp_ResultData.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ResultData.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ResultData.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_ResultData.h 14 Mar 2002 16:45:16 -0000 1.2 *************** *** 29,32 **** --- 29,36 ---- #define __EPP_RESULTDATA_H + /** @file epp_ResultData.h + * @brief Definition of epp_ResultData and epp_ResultData_ref + * @author Asbjorn Steira Mikkelsen + */ #include "epp_eppdata.h" *************** *** 35,43 **** namespace eppobject { namespace epp { class epp_ResultData { public: ! epp_StatusResultData_ref m_status; ! /// Null constructor --- 39,47 ---- namespace eppobject { namespace epp { + /// Class containing elements used to return information in response to a <status> command class epp_ResultData { public: ! epp_StatusResultData_ref m_status; /**< Information in response to a <status> command */ /// Null constructor Index: epp_ServiceMenu.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ServiceMenu.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ServiceMenu.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_ServiceMenu.h 14 Mar 2002 16:45:16 -0000 1.2 *************** *** 45,49 **** epp_string_seq_ref m_langs; /**< ID of languages supported by the server (iso639) */ epp_objuri_seq_ref m_services; /**< Namespace URIs representing the objects that the server is capable of managing */ ! epp_exturi_seq_ref m_extensions; /**< Namespace URIs representing object extensions supported by the server*/ /// Null constructor --- 45,49 ---- epp_string_seq_ref m_langs; /**< ID of languages supported by the server (iso639) */ epp_objuri_seq_ref m_services; /**< Namespace URIs representing the objects that the server is capable of managing */ ! epp_exturi_seq_ref m_extensions; /**< Namespace URIs representing object extensions supported by the server */ /// Null constructor Index: epp_StatusReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_StatusReq.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusReq.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_StatusReq.h 14 Mar 2002 16:45:16 -0000 1.2 *************** *** 39,49 **** namespace eppobject { namespace epp { ! // Class containing all elements used in Status requests ! // @see epp_GenericReq for additional information class epp_StatusReq : public epp_GenericReq { public: ! epp_trid_ref m_client_trid; ! epp_StatusCommandType_ref m_command; /// Null constructor --- 39,50 ---- namespace eppobject { namespace epp { ! /// Class containing all elements used in status requests ! /// @see epp_GenericReq for additional information class epp_StatusReq : public epp_GenericReq { public: ! epp_trid_ref m_client_trid; /**< Transaction ID assigned by the client to the earlier command ! * whose status is in question */ ! epp_StatusCommandType_ref m_command; /**< Type of the earlier command, e.g., "create" */ /// Null constructor Index: epp_StatusResultData.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_StatusResultData.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusResultData.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_StatusResultData.h 14 Mar 2002 16:45:16 -0000 1.2 *************** *** 29,32 **** --- 29,36 ---- #define __EPP_STATUSRESULTDATA_H + /** @file epp_StatusResultData.h + * @brief Definition of epp_StatusResultData and epp_StatusResultData_ref + * @author Asbjorn Steira Mikkelsen + */ #include "epp_eppdata.h" *************** *** 34,43 **** namespace eppobject { namespace epp { class epp_StatusResultData { public: ! epp_boolean_ref m_ack; ! epp_trid_ref m_cltrid; ! /// Null constructor --- 38,48 ---- namespace eppobject { namespace epp { + /// Class containing information in response to a <status> command class epp_StatusResultData { public: ! epp_boolean_ref m_ack; /**< Boolean value used to confirm whether or not the command was ! * received and the requested action was completed */ ! epp_trid_ref m_cltrid; /**< Client transaction ID used to identify the queried command */ /// Null constructor Index: epp_StatusRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_StatusRsp.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_StatusRsp.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_StatusRsp.h 14 Mar 2002 16:45:16 -0000 1.2 *************** *** 38,43 **** namespace eppobject { namespace epp { ! // Class containing all elements used in Status responses ! // @see epp_GenericRsp for additional information class epp_StatusRsp : public epp_GenericRsp { --- 38,44 ---- namespace eppobject { namespace epp { ! /// Class containing all elements used in status responses ! /// @see epp_GenericRsp for additional information ! /// @see epp_ResultData for actual returned information class epp_StatusRsp : public epp_GenericRsp { *************** *** 50,54 **** virtual ~epp_StatusRsp() {}; ! /// Constructor epp_StatusRsp(epp_Response_ref _m_rsp) : epp_GenericRsp(_m_rsp) {}; --- 51,55 ---- virtual ~epp_StatusRsp() {}; ! /// Constructor, using only references epp_StatusRsp(epp_Response_ref _m_rsp) : epp_GenericRsp(_m_rsp) {}; Index: epp_TransferRequest.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_TransferRequest.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_TransferRequest.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_TransferRequest.h 14 Mar 2002 16:45:16 -0000 1.6 *************** *** 29,48 **** #define __EPP_TRANSFERREQUEST_H #include "epp_eppdata.h" #include "epp_AuthInfo.h" namespace eppobject { namespace epp { ! class epp_TransferRequest { - public: ! epp_AuthInfo_ref m_auth_info; ! epp_TransferOpType_ref m_op; ! epp_TransferRequest() {}; virtual ~epp_TransferRequest() {}; ! // Note: Cannot set simple types to NULL epp_TransferRequest(epp_AuthInfo_ref _m_auth_info, epp_TransferOpType _m_op) --- 29,57 ---- #define __EPP_TRANSFERREQUEST_H + /** @file epp_TransferRequest.h + * @brief Definition of epp_TransferRequest and epp_TransferRequest_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_AuthInfo.h" namespace eppobject { namespace epp { ! ! /// Class containing common elements used in transfer requests class epp_TransferRequest { ! public: ! epp_AuthInfo_ref m_auth_info; /**< Authorization information associated with the object */ ! epp_TransferOpType_ref m_op; /**< Transfer operation to be performed */ ! ! /// Null constructor epp_TransferRequest() {}; + /// Destructor virtual ~epp_TransferRequest() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_TransferRequest(epp_AuthInfo_ref _m_auth_info, epp_TransferOpType _m_op) *************** *** 52,56 **** }; ! epp_TransferRequest(epp_AuthInfo_ref _m_auth_info, epp_TransferOpType_ref _m_op) --- 61,65 ---- }; ! /// Constructor, using only references epp_TransferRequest(epp_AuthInfo_ref _m_auth_info, epp_TransferOpType_ref _m_op) *************** *** 61,64 **** --- 70,74 ---- }; + /// Typedef for the ref to the epp_TransferRequest class typedef refcnt_ptr<epp_TransferRequest> epp_TransferRequest_ref; Index: epp_contactdata.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_contactdata.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_contactdata.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_contactdata.h 14 Mar 2002 16:45:17 -0000 1.6 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTDATA_H + /** @file epp_contactdata.h + * @brief Declaration of enums/typedefs used in contact objects + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include <vector> *************** *** 35,40 **** namespace eppobject { namespace contact { ! // Enumerations: ! enum epp_ContactStatusType { CLIENT_DELETE_PROHIBITED, --- 40,50 ---- namespace eppobject { namespace contact { ! /****************************************** ! * * ! * Enumerations * ! * * ! ******************************************/ ! ! /// Status types allowed for a contact object enum epp_ContactStatusType { CLIENT_DELETE_PROHIBITED, *************** *** 49,59 **** PENDING_TRANSFER }; typedef refcnt_ptr<epp_ContactStatusType> epp_ContactStatusType_ref; ! // Pure typedefs: class epp_ContactStatus; //Forward declaration... typedef vector<epp_ContactStatus> epp_contact_status_seq; typedef refcnt_ptr<epp_contact_status_seq> epp_contact_status_seq_ref; --- 59,79 ---- PENDING_TRANSFER }; + + /// Typedef for the ref to the #epp_ContactStatusType enum typedef refcnt_ptr<epp_ContactStatusType> epp_ContactStatusType_ref; ! /****************************************** ! * * ! * Pure typedefs * ! * * ! ******************************************/ class epp_ContactStatus; //Forward declaration... + + /// Typedef for a sequence of #epp_ContactStatus elements typedef vector<epp_ContactStatus> epp_contact_status_seq; + + /// Typedef for the ref to #epp_contact_status_seq typedef refcnt_ptr<epp_contact_status_seq> epp_contact_status_seq_ref; Index: epp_dcpStatement.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_dcpStatement.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_dcpStatement.h 12 Mar 2002 20:38:33 -0000 1.2 --- epp_dcpStatement.h 14 Mar 2002 16:45:17 -0000 1.3 *************** *** 43,47 **** public: ! epp_dcpPurpose_seq_ref m_purposes; /**< Data collection purpose */ epp_dcpRecipient_seq_ref m_recipients; /**< Data recipient */ epp_dcpRetention_seq_ref m_retentions; /**< Data retention */ --- 43,47 ---- public: ! epp_dcpPurpose_seq_ref m_purposes; /**< Data collection purpose */ epp_dcpRecipient_seq_ref m_recipients; /**< Data recipient */ epp_dcpRetention_seq_ref m_retentions; /**< Data retention */ Index: epp_domaindata.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_domaindata.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_domaindata.h 8 Mar 2002 11:41:27 -0000 1.7 --- epp_domaindata.h 14 Mar 2002 16:45:17 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINDATA_H + /** @file epp_domaindata.h + * @brief Declaration of enums/typedefs used in domain objects + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include <vector> *************** *** 35,40 **** namespace eppobject { namespace domain { ! // Enumerations: enum epp_DomainStatusType { CLIENT_DELETE_PROHIBITED, --- 40,50 ---- namespace eppobject { namespace domain { ! /****************************************** ! * * ! * Enumerations * ! * * ! ******************************************/ + /// Status types allowed for a domain object enum epp_DomainStatusType { CLIENT_DELETE_PROHIBITED, *************** *** 54,65 **** --- 64,81 ---- SERVER_UPDATE_PROHIBITED }; + + /// Typedef for the ref to the #epp_DomainStatusType enum typedef refcnt_ptr<epp_DomainStatusType> epp_DomainStatusType_ref; + /// Registration period unit types allowed for a domain enum epp_DomainPeriodUnitType { YEAR, MONTH, }; + + /// Typedef for the ref to the #epp_DomainPeriodUnitType enum typedef refcnt_ptr<epp_DomainPeriodUnitType> epp_DomainPeriodUnitType_ref; + /// Domain contact types allowed for a domain enum epp_DomainContactType { ADMIN, *************** *** 67,72 **** --- 83,91 ---- TECH, }; + + /// Typedef for the ref to the #epp_DomainContactType enum typedef refcnt_ptr<epp_DomainContactType> epp_DomainContactType_ref; + /// Domain hosts listing types (used in info requests) enum epp_DomainHostsType { ALL, *************** *** 75,88 **** SUB }; typedef refcnt_ptr<epp_DomainHostsType> epp_DomainHostsType_ref; ! // Pure typedefs: class epp_DomainStatus; // Forward declaration... typedef vector<epp_DomainStatus> epp_domain_status_seq; typedef refcnt_ptr<epp_domain_status_seq> epp_domain_status_seq_ref; class epp_DomainContact; // Forward declaration... typedef vector<epp_DomainContact> epp_domain_contact_seq; typedef refcnt_ptr<epp_domain_contact_seq> epp_domain_contact_seq_ref; --- 94,122 ---- SUB }; + + /// Typedef for the ref to the #epp_DomainHostsType enum typedef refcnt_ptr<epp_DomainHostsType> epp_DomainHostsType_ref; ! ! /****************************************** ! * * ! * Pure typedefs * ! * * ! ******************************************/ class epp_DomainStatus; // Forward declaration... + + /// Typedef for a sequence of #epp_DomainStatus elements typedef vector<epp_DomainStatus> epp_domain_status_seq; + + /// Typedef for the ref to #epp_domain_status_seq typedef refcnt_ptr<epp_domain_status_seq> epp_domain_status_seq_ref; class epp_DomainContact; // Forward declaration... + + /// Typedef for a sequence of #epp_DomainContact elements typedef vector<epp_DomainContact> epp_domain_contact_seq; + + /// Typedef for the ref to #epp_domain_contact_seq typedef refcnt_ptr<epp_domain_contact_seq> epp_domain_contact_seq_ref; Index: epp_eppdata.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_eppdata.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_eppdata.h 8 Mar 2002 11:41:27 -0000 1.7 --- epp_eppdata.h 14 Mar 2002 16:45:17 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_EPPDATA_H + /** @file epp_eppdata.h + * @brief Declaration of common/generic enums/typedefs used in the RTK + * @author Asbjorn Steira Mikkelsen + */ + #include <string> #include <vector> *************** *** 34,40 **** namespace eppobject { namespace epp { ! // Enumerations: ! enum epp_TransferOpType { APPROVE, --- 39,50 ---- namespace eppobject { namespace epp { + + /****************************************** + * * + * Enumerations * + * * + ******************************************/ ! /// Allowed transfer operations enum epp_TransferOpType { APPROVE, *************** *** 44,49 **** --- 54,62 ---- REQUEST, }; + + /// Typedef for the ref to the #epp_TransferOpType enum typedef refcnt_ptr<epp_TransferOpType> epp_TransferOpType_ref; + /// Transfer state of an object enum epp_TransferStatusType { CLIENT_APPROVED, *************** *** 54,65 **** --- 67,84 ---- SERVER_CANCELLED }; + + /// Typedef for the ref to the #epp_TransferStatusType enum typedef refcnt_ptr<epp_TransferStatusType> epp_TransferStatusType_ref; + /// Operation type for poll command enum epp_PollOpType { ACK, REQ, }; + + /// Typedef for the ref to the #epp_PollOpType enum typedef refcnt_ptr<epp_PollOpType> epp_PollOpType_ref; + /// Type of earlier command requested information about in status command enum epp_StatusCommandType { *************** *** 70,80 **** --- 89,106 ---- UPDATE }; + + /// Typedef for the ref to the #epp_StatusCommandType enum typedef refcnt_ptr<epp_StatusCommandType> epp_StatusCommandType_ref; + /// Authorization information type enum epp_AuthInfoType { PW, }; + + /// Typedef for the ref to the #epp_AuthInfoType enum typedef refcnt_ptr<epp_AuthInfoType> epp_AuthInfoType_ref; + /// Allowed result data types in a poll command + /// @deprecated Not needed anymore from IDL 05/03 enum epp_PollResDataType { *************** *** 83,100 **** /* and whatever poll response types there might be */ }; typedef refcnt_ptr<epp_PollResDataType> epp_PollResDataType_ref; // Types used in Data Collection Policity Specifications: enum epp_dcpAccessType { ALL, ! NO_ACCESS, // Appended to solve name conflict... ! NULL_ACCESS, // "NULL" does no work well in C++ SOCIAL, TECHNICAL }; typedef refcnt_ptr<epp_dcpAccessType> epp_dcpAccessType_ref; enum epp_dcpPurposeType { --- 109,133 ---- /* and whatever poll response types there might be */ }; + + /// Typedef for the ref to the #epp_PollResDataType enum typedef refcnt_ptr<epp_PollResDataType> epp_PollResDataType_ref; + // Types used in Data Collection Policity Specifications: + /// Access types provided by the server to data received from the client enum epp_dcpAccessType { ALL, ! NO_ACCESS, // Appended "_ACCESS" to solve name conflict... ! NULL_ACCESS, // Appended "_ACCESS" to work in C++ SOCIAL, TECHNICAL }; + + /// Typedef for the ref to the #epp_dcpAccessType enum typedef refcnt_ptr<epp_dcpAccessType> epp_dcpAccessType_ref; + /// Data collection purpose types enum epp_dcpPurposeType { *************** *** 102,120 **** DN_REG, IP_REG, ! OTHER_PURPOSE, // Appended to solve name conflict... TM_REG }; typedef refcnt_ptr<epp_dcpPurposeType> epp_dcpPurposeType_ref; enum epp_dcpRecipientType { ! OTHER_RECIPIENT, // Appended to solve name conflict.... OURS, ! PUBLIK, // "PUBLIC" reserved... SAME, UNRELATED }; typedef refcnt_ptr<epp_dcpRecipientType> epp_dcpRecipientType_ref; enum epp_dcpRetentionType { --- 135,159 ---- DN_REG, IP_REG, ! OTHER_PURPOSE, // Appended "_PURPOSE" to solve name conflict... TM_REG }; + + /// Typedef for the ref to the #epp_dcpPurposeType enum typedef refcnt_ptr<epp_dcpPurposeType> epp_dcpPurposeType_ref; + /// Data collection recipient types enum epp_dcpRecipientType { ! OTHER_RECIPIENT, // Appended "_RECIPIENT" to solve name conflict.... OURS, ! PUBLIK, // "PUBLIC" is a reserved word... SAME, UNRELATED }; + + /// Typedef for the ref to the #epp_dcpRecipientType enum typedef refcnt_ptr<epp_dcpRecipientType> epp_dcpRecipientType_ref; + /// Data collection retention types enum epp_dcpRetentionType { *************** *** 125,201 **** NONE }; typedef refcnt_ptr<epp_dcpRetentionType> epp_dcpRetentionType_ref; typedef vector<epp_dcpPurposeType> epp_dcpPurpose_seq; typedef refcnt_ptr<epp_dcpPurpose_seq> epp_dcpPurpose_seq_ref; ! typedef vector<epp_dcpRecipientType> epp_dcpRecipient_seq; typedef refcnt_ptr<epp_dcpRecipient_seq> epp_dcpRecipient_seq_ref; typedef vector<epp_dcpRetentionType> epp_dcpRetention_seq; typedef refcnt_ptr<epp_dcpRetention_seq> epp_dcpRetention_seq_ref; ! ! // Pure typedefs: ! typedef string epp_string; typedef refcnt_ptr<epp_string> epp_string_ref; typedef vector<epp_string> epp_string_seq; typedef refcnt_ptr<epp_string_seq> epp_string_seq_ref; typedef string epp_xml_string; typedef refcnt_ptr<epp_xml_string> epp_xml_string_ref; typedef short epp_short; typedef refcnt_ptr<epp_short> epp_short_ref; typedef long epp_long; typedef refcnt_ptr<epp_long> epp_long_ref; typedef bool epp_boolean; typedef refcnt_ptr<epp_boolean> epp_boolean_ref; typedef void* epp_any; typedef refcnt_ptr<epp_any> epp_any_ref; typedef string epp_date; typedef refcnt_ptr<epp_date> epp_date_ref; typedef string epp_datetime; typedef refcnt_ptr<epp_datetime> epp_datetime_ref; typedef epp_string epp_trid; typedef refcnt_ptr<epp_trid> epp_trid_ref; typedef epp_string epp_roid; typedef refcnt_ptr<epp_roid> epp_roid_ref; typedef vector<epp_roid> epp_roid_seq; typedef refcnt_ptr<epp_roid_seq> epp_roid_seq_ref; class epp_Result; // Forward declaration... typedef vector<epp_Result> epp_result_seq; typedef refcnt_ptr<epp_result_seq> epp_result_seq_ref; - class epp_Service; // Forward declaration... ! /// Deprecated: <FIXME>Explain...</fixme> typedef vector<epp_Service> epp_service_seq; typedef refcnt_ptr<epp_service_seq> epp_service_seq_ref; class epp_CheckResult; // Forward declaration... typedef vector<epp_CheckResult> epp_check_result_seq; typedef refcnt_ptr<epp_check_result_seq> epp_check_result_seq_ref; typedef epp_string_seq epp_objuri_seq; typedef refcnt_ptr<epp_objuri_seq> epp_objuri_seq_ref; typedef epp_string_seq epp_exturi_seq; typedef refcnt_ptr<epp_exturi_seq> epp_exturi_seq_ref; ! class epp_dcpStatement; // Forward declarations... typedef vector<epp_dcpStatement> epp_dcpStatement_seq; typedef refcnt_ptr<epp_dcpStatement_seq> epp_dcpStatement_seq_ref; }} --- 164,311 ---- NONE }; + + /// Typedef for the ref to the #epp_dcpRetentionType enum typedef refcnt_ptr<epp_dcpRetentionType> epp_dcpRetentionType_ref; + /// Typedef for a sequence of #epp_dcpPurposeType elements typedef vector<epp_dcpPurposeType> epp_dcpPurpose_seq; + + /// Typedef for the ref to the #epp_dcpPurpose_seq element typedef refcnt_ptr<epp_dcpPurpose_seq> epp_dcpPurpose_seq_ref; ! /// Typedef for a sequence of #epp_dcpRecipientType elements ! typedef vector<epp_dcpRecipientType> epp_dcpRecipient_seq; ! ! /// Typedef for the ref to the #epp_dcpRecipient_seq element typedef refcnt_ptr<epp_dcpRecipient_seq> epp_dcpRecipient_seq_ref; + /// Typedef for a sequence of #epp_dcpRetentionType elements typedef vector<epp_dcpRetentionType> epp_dcpRetention_seq; + + /// Typedef for the ref to the #epp_dcpRetention_seq element typedef refcnt_ptr<epp_dcpRetention_seq> epp_dcpRetention_seq_ref; + + /****************************************** + * * + * Pure typedefs * + * * + ******************************************/ ! /// Defining epp_string to be of type string typedef string epp_string; + + /// Typedef for the ref to #epp_string typedef refcnt_ptr<epp_string> epp_string_ref; + /// Typedef for a sequence of epp_strings typedef vector<epp_string> epp_string_seq; + + /// Typedef for the ref to the #epp_string_seq element typedef refcnt_ptr<epp_string_seq> epp_string_seq_ref; + /// Defining epp_xml_string to be of type string typedef string epp_xml_string; + + /// Typedef for the ref to #epp_xml_string typedef refcnt_ptr<epp_xml_string> epp_xml_string_ref; + /// Defining epp_short to be of type short typedef short epp_short; + + /// Typedef for the ref to #epp_short typedef refcnt_ptr<epp_short> epp_short_ref; + /// Defining epp_long to be of type long typedef long epp_long; + + /// Typedef for the ref to #epp_long typedef refcnt_ptr<epp_long> epp_long_ref; + /// Defining epp_boolean to be of type bool typedef bool epp_boolean; + + /// Typedef for the ref to #epp_boolean typedef refcnt_ptr<epp_boolean> epp_boolean_ref; + /// Defining epp_any to be a void pointer typedef void* epp_any; + + /// Typedef for the ref to #epp_any typedef refcnt_ptr<epp_any> epp_any_ref; + /// Defining epp_date to be of type string typedef string epp_date; + + /// Typedef for the ref to #epp_date typedef refcnt_ptr<epp_date> epp_date_ref; + /// Defining epp_datetime to be of type string typedef string epp_datetime; + + /// Typedef for the ref to #epp_datetime typedef refcnt_ptr<epp_datetime> epp_datetime_ref; + /// Defining epp_trid to be of type #epp_string typedef epp_string epp_trid; + + /// Typedef for the ref to #epp_trid typedef refcnt_ptr<epp_trid> epp_trid_ref; + /// Defining epp_roid to be of type #epp_string typedef epp_string epp_roid; + + /// Typedef for the ref to #epp_roid typedef refcnt_ptr<epp_roid> epp_roid_ref; + /// Typedef for a sequence of epp_roids typedef vector<epp_roid> epp_roid_seq; + + /// Typedef for the ref to #epp_roid_seq element typedef refcnt_ptr<epp_roid_seq> epp_roid_seq_ref; class epp_Result; // Forward declaration... + + /// Typedef for a sequence of #epp_Result elements typedef vector<epp_Result> epp_result_seq; + + /// Typedef for the ref to #epp_result_seq typedef refcnt_ptr<epp_result_seq> epp_result_seq_ref; class epp_Service; // Forward declaration... ! ! /// Typedef for a sequence of #epp_Service elements ! /// @deprecated From EPP/IDL 05/03 replaced by usage of #epp_string typedef vector<epp_Service> epp_service_seq; + + /// Typedef for the ref to #epp_service_seq typedef refcnt_ptr<epp_service_seq> epp_service_seq_ref; class epp_CheckResult; // Forward declaration... + + /// Typedef for a sequence of #epp_CheckResult elements typedef vector<epp_CheckResult> epp_check_result_seq; + + /// Typedef for the ref to #epp_check_result_seq typedef refcnt_ptr<epp_check_result_seq> epp_check_result_seq_ref; + /// Defining a sequence of epp_objuri elements to be of type #epp_string_seq typedef epp_string_seq epp_objuri_seq; + + /// Typedef for the ref to #epp_objuri_seq typedef refcnt_ptr<epp_objuri_seq> epp_objuri_seq_ref; + /// Defining a sequence of epp_exturi elements to be of type #epp_string_seq typedef epp_string_seq epp_exturi_seq; + + /// Typedef for the ref to #epp_exturi_seq typedef refcnt_ptr<epp_exturi_seq> epp_exturi_seq_ref; ! class epp_dcpStatement; // Forward declaration... ! ! /// Typedef for a sequence of #epp_dcpStatement elements typedef vector<epp_dcpStatement> epp_dcpStatement_seq; + + /// Typedef for the ref to #epp_dcpStatement_seq typedef refcnt_ptr<epp_dcpStatement_seq> epp_dcpStatement_seq_ref; }} Index: epp_hostdata.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_hostdata.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_hostdata.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_hostdata.h 14 Mar 2002 16:45:17 -0000 1.6 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_HOSTDATA_H + /** @file epp_hostdata.h + * @brief Declaration of enums/typedefs used in host objects + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include <vector> *************** *** 35,40 **** namespace eppobject { namespace host { ! // Enumerations: ! enum epp_HostStatusType { CLIENT_DELETE_PROHIBITED, --- 40,51 ---- namespace eppobject { namespace host { ! ! /****************************************** ! * * ! * Enumerations * ! * * ! ******************************************/ ! ! /// Status types allowed for a host object enum epp_HostStatusType { CLIENT_DELETE_PROHIBITED, *************** *** 47,66 **** SERVER_UPDATE_PROHIBITED }; typedef refcnt_ptr<epp_HostStatusType> epp_HostStatusType_ref; enum epp_HostAddressType { IPV4, IPV6, }; typedef refcnt_ptr<epp_HostAddressType> epp_HostAddressType_ref; - // Typedefs: ! class epp_HostStatus; // Forward declaration... typedef vector<epp_HostStatus> epp_host_status_seq; typedef refcnt_ptr<epp_host_status_seq> epp_host_status_seq_ref; ! class epp_HostAddress; //Forward declaration... typedef vector<epp_HostAddress> epp_host_address_seq; typedef refcnt_ptr<epp_host_address_seq> epp_host_address_seq_ref; --- 58,95 ---- SERVER_UPDATE_PROHIBITED }; + + /// Typedef for the ref to the #epp_HostStatusType enum typedef refcnt_ptr<epp_HostStatusType> epp_HostStatusType_ref; + /// Type of host address enum epp_HostAddressType { IPV4, IPV6, }; + + /// Typedef for the ref to the #epp_HostAddressType enum typedef refcnt_ptr<epp_HostAddressType> epp_HostAddressType_ref; ! /****************************************** ! * * ! * Pure typedefs * ! * * ! ******************************************/ ! ! class epp_HostStatus; // Forward declaration... ! ! /// Typedef for a sequence of #epp_HostStatus elements typedef vector<epp_HostStatus> epp_host_status_seq; + + /// Typedef for the ref to #epp_host_status_seq typedef refcnt_ptr<epp_host_status_seq> epp_host_status_seq_ref; ! class epp_HostAddress; //Forward declaration... ! ! /// Typedef for a sequence of #epp_HostAddress elements typedef vector<epp_HostAddress> epp_host_address_seq; + + /// Typedef for the ref to #epp_host_address_seq typedef refcnt_ptr<epp_host_address_seq> epp_host_address_seq_ref; |
From: Asbjorn M. <ste...@us...> - 2002-03-13 20:30:40
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv5819 Modified Files: testTools.cc Log Message: The previous commit only worked for SSL-transport. Fixed. Index: testTools.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** testTools.cc 13 Mar 2002 16:15:09 -0000 1.9 --- testTools.cc 13 Mar 2002 20:30:30 -0000 1.10 *************** *** 200,204 **** { //Change transport here: ! epp_TransportSSL_ref transport(new epp_TransportSSL()); username = "testlogin"; --- 200,207 ---- { //Change transport here: ! typedef epp_TransportSSL myTransport; ! ! typedef refcnt_ptr<myTransport> myTransport_ref; ! epp_TransportBase* transport = new myTransport; username = "testlogin"; *************** *** 285,292 **** } #endif ! if(transport->getType() == "epp_TransportSSL" && (commandArgs["c"] != "" || commandArgs["ca"] != "")) { // cout << commandArgs["c"] << " " << commandArgs["ca"] << " " << commandArgs["cadir"] << endl; ! transport.ref(new epp_TransportSSL(commandArgs["c"], commandArgs["ca"], commandArgs["cadir"])); } --- 288,295 ---- } #endif ! if(transport->getType() == "epp_TransportSSL" && (commandArgs["c"] != "" || commandArgs["ca"] != "")) { // cout << commandArgs["c"] << " " << commandArgs["ca"] << " " << commandArgs["cadir"] << endl; ! transport = new epp_TransportSSL(commandArgs["c"], commandArgs["ca"], commandArgs["cadir"]); } *************** *** 299,303 **** } ! sess.setTransport(transport); return true; --- 302,312 ---- } ! myTransport_ref mt(dynamic_cast<myTransport*>(transport)); ! ! sess.setTransport(mt); ! ! // Do not delete this pointer, the ref-counter class takes care of it... ! // delete transport; ! return true; |
From: Asbjorn M. <ste...@us...> - 2002-03-13 16:38:14
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv26149 Modified Files: config.h epp_Session.cc epp_Session.h testTools.cc Log Message: epp_Session is no longer inheriting from a transport defined in config.h. Transport is now an attribute of epp_Session, and you can change transport without recompiling the toolkit. In my testprograms, you change transport in the beginning of the handleArgs-function in testTools.cc. Index: config.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/config.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** config.h 12 Mar 2002 14:18:02 -0000 1.3 --- config.h 13 Mar 2002 16:15:05 -0000 1.4 *************** *** 30,41 **** #include <domtools/dom_output.h> - #include "transport/transports.h" - - #define TRANSPORT_IOSTREAM 1 - #define TRANSPORT_SSL 2 - #define TRANSPORT_TCP 3 - - // Change transport here: - #define MYTRANSPORT TRANSPORT_SSL namespace eppobject { namespace epp { --- 30,33 ---- *************** *** 43,55 **** static bool Whitespace = false; // <FIXME>static?!</fixme> - #if MYTRANSPORT==TRANSPORT_SSL - typedef epptransport::epp_TransportSSL EPPTransport; - #elif MYTRANSPORT==TRANSPORT_TCP - typedef epptransport::epp_TransportTCP EPPTransport; - #else - typedef epptransport::epp_TransportIOStream EPPTransport; - #endif - - typedef domtools::xml_string_output EPP_output; --- 35,38 ---- Index: epp_Session.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Session.cc,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Session.cc 8 Mar 2002 12:00:15 -0000 1.5 --- epp_Session.cc 13 Mar 2002 16:15:06 -0000 1.6 *************** *** 46,56 **** epp_string epp_Session::processXML(const epp_string & request_xml) { ! writeToServer(request_xml); ! epp_string xml = readFromServer(); unsigned long firstNotWhite = xml.find_first_not_of(" \t\r\n"); ! if(firstNotWhite != string::npos && firstNotWhite != 0) ! xml.erase(0, firstNotWhite); return xml; --- 46,58 ---- epp_string epp_Session::processXML(const epp_string & request_xml) { ! m_transport->writeToServer(request_xml); ! epp_string xml = m_transport->readFromServer(); + // Deleting leading whitespace from response: unsigned long firstNotWhite = xml.find_first_not_of(" \t\r\n"); ! if(firstNotWhite != string::npos && firstNotWhite != 0) { ! xml.erase(0, firstNotWhite); ! } return xml; *************** *** 62,67 **** epp_Greeting_ref gr; ! connect(); ! epp_string grStr = readFromServer(); epp_Hello hello; --- 64,69 ---- epp_Greeting_ref gr; ! m_transport->connect(); ! epp_string grStr = m_transport->readFromServer(); epp_Hello hello; Index: epp_Session.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Session.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Session.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_Session.h 13 Mar 2002 16:15:08 -0000 1.6 *************** *** 33,43 **** #include "config.h" #include "epp_Action.h" namespace eppobject { namespace epp { ! class epp_Session : public EPPTransport { public: ! epp_Session() : EPPTransport() {}; virtual ~epp_Session() {}; --- 33,52 ---- #include "config.h" #include "epp_Action.h" + #include "transport/transports.h" namespace eppobject { namespace epp { ! class epp_Session { ! ! private: ! epptransport::epp_TransportBase_ref m_transport; public: ! epp_Session() ! { ! //Default transport is epp_TransportSSL: ! m_transport.ref(new epptransport::epp_TransportSSL()); ! }; ! virtual ~epp_Session() {}; *************** *** 50,53 **** --- 59,73 ---- epp_Greeting_ref connectAndGetGreeting(); + + virtual void setTransport(const epptransport::epp_TransportBase_ref transport) + { + m_transport = transport; + } + + virtual epptransport::epp_TransportBase_ref getTransport(void) + { + return m_transport; + } + static const epp_short EPP_COMMAND_COMPLETED_SUCCESSFULLY = 1000; Index: testTools.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** testTools.cc 10 Mar 2002 19:46:39 -0000 1.8 --- testTools.cc 13 Mar 2002 16:15:09 -0000 1.9 *************** *** 27,30 **** --- 27,31 ---- + #include <map> #include "testTools.h" #include "data/epp_XMLException.h" *************** *** 34,39 **** --- 35,42 ---- #include "epp_Action.h" #include "epp_Login.h" + #include "transport/transports.h" using namespace eppobject::epp; + using namespace epptransport; void printResultsSeq(const epp_result_seq_ref results) *************** *** 196,202 **** --- 199,211 ---- string & username, string & password) { + //Change transport here: + epp_TransportSSL_ref transport(new epp_TransportSSL()); + username = "testlogin"; password = "testpass"; + typedef map<string, string> argsMap; + argsMap commandArgs; + if(argc > 1) { if (!strcmp(argv[1], "-?")) *************** *** 204,219 **** cout << argv[0]; ! #if MYTRANSPORT!=TRANSPORT_IOSTREAM ! // Only relevant for connection-transport ! cout << " -n=<servername> -p=<serverPort>"; ! #endif cout << " -l=<login> -s=<pass>"; ! #if MYTRANSPORT==TRANSPORT_SSL ! // Only relevant if the transport is using SSL... ! // <FIXME>Bug: -ca must include full path to file...</fixme> ! cout << " -c=cert [-cadir=cacertdir -ca=cacert]"; ! #endif cout << endl; --- 213,228 ---- cout << argv[0]; ! if(transport->getType() != "epp_TransportIOStream") { ! // Only relevant for connection-transport: ! cout << " -n=<servername> -p=<serverPort>"; ! } cout << " -l=<login> -s=<pass>"; ! if(transport->getType() == "epp_TransportSSL") { ! // Only relevant for SSL-transport: ! // <FIXME>Bug: -ca must include full path to file...</fixme> ! cout << " -c=<cert> [-cadir=<cacertdir> -ca=<cacert>]"; ! } cout << endl; *************** *** 225,276 **** // cout << parm << ": " << argv[parm] << endl; ! if (argv[parm][0] != '-') ! break; ! #if MYTRANSPORT!=TRANSPORT_IOSTREAM ! // Only relevant for connection-transport ! if (!strncmp(argv[parm], "-n=", 3)) ! { ! sess.setServerName(&argv[parm][3]); ! } // if "-n" ! ! if (!strncmp(argv[parm], "-p=", 3)) ! { ! sess.setServerPort(atol(&argv[parm][3])); ! } // if "-p" ! #endif ! ! #if MYTRANSPORT==TRANSPORT_SSL ! // Only relevant if the transport is using SSL... ! if (!strncmp(argv[parm], "-c=", 3)) ! { ! sess.setCertFile(&argv[parm][3]); ! } // if "-c" ! ! if (!strncmp(argv[parm], "-cadir=", 7)) ! { ! sess.setCACertDir(&argv[parm][7]); ! } // if "-cadir" ! if (!strncmp(argv[parm], "-ca=", 4)) ! { ! sess.setCACertFile(&argv[parm][4]); ! } // if "-ca" ! #endif ! if (!strncmp(argv[parm], "-l=", 3)) ! { ! username = &argv[parm][3]; ! } // if "-l" ! if (!strncmp(argv[parm], "-s=", 3)) ! { ! password = &argv[parm][3]; ! } // if "-s" ! }// for } return true; --- 234,303 ---- // cout << parm << ": " << argv[parm] << endl; ! if (argv[parm][0] != '-') { ! break; ! } ! if(transport->getType() != "epp_TransportIOStream") { ! ! // Only relevant for connection-transport: ! if (!strncmp(argv[parm], "-n=", 3)) { ! commandArgs["n"] = &argv[parm][3]; ! } // if "-n" ! ! if (!strncmp(argv[parm], "-p=", 3)) { ! commandArgs["p"] = &argv[parm][3]; ! } // if "-p" ! } ! if(transport->getType() == "epp_TransportSSL") { ! ! // Only relevant if the transport is using SSL... ! if (!strncmp(argv[parm], "-c=", 3)) { ! commandArgs["c"] = &argv[parm][3]; ! } // if "-c" ! ! if (!strncmp(argv[parm], "-cadir=", 7)) { ! commandArgs["cadir"] = &argv[parm][7]; ! } // if "-cadir" ! ! if (!strncmp(argv[parm], "-ca=", 4)) { ! commandArgs["ca"] = &argv[parm][4]; ! } // if "-ca" ! } ! if (!strncmp(argv[parm], "-l=", 3)) { ! username = &argv[parm][3]; ! } // if "-l" ! if (!strncmp(argv[parm], "-s=", 3)) { ! password = &argv[parm][3]; ! } // if "-s" }// for } + + #if 0 + for( map<string, string>::const_iterator i = commandArgs.begin(); + i != commandArgs.end(); ++i) + { + cout << i->first << " " << i->second << endl ; + } + #endif + + if(transport->getType() == "epp_TransportSSL" && (commandArgs["c"] != "" || commandArgs["ca"] != "")) { + // cout << commandArgs["c"] << " " << commandArgs["ca"] << " " << commandArgs["cadir"] << endl; + transport.ref(new epp_TransportSSL(commandArgs["c"], commandArgs["ca"], commandArgs["cadir"])); + } + + if(commandArgs["n"] != "") { + transport->setServerName(commandArgs["n"]); + } + + if(commandArgs["p"] != "") { + transport->setServerPort(atol(commandArgs["p"].c_str())); + } + + sess.setTransport(transport); return true; *************** *** 281,292 **** { ! #if MYTRANSPORT==TRANSPORT_IOSTREAM ! #ifdef TEST_IO_REQUEST2CERR ! return; ! #endif ! ! #ifdef TEST_IO_RESULT2CERR ! return; ! #endif #endif --- 308,320 ---- { ! #ifdef TEST_IO_REQUEST2CERR ! if(mySession.getTransport()->getType() == "epp_TransportIOStream") { ! return; ! } ! #endif ! #ifdef TEST_IO_RESULT2CERR ! if(mySession.getTransport()->getType() == "epp_TransportIOStream") { ! return; ! } #endif *************** *** 324,330 **** // Print response: ! #if MYTRANSPORT==TRANSPORT_IOSTREAM ! printResponsePart(l_rsp->m_rsp); ! #endif } catch(...) { --- 352,358 ---- // Print response: ! if(mySession.getTransport()->getType() == "epp_TransportIOStream") { ! printResponsePart(l_rsp->m_rsp); ! } } catch(...) { |
From: Asbjorn M. <ste...@us...> - 2002-03-13 15:50:48
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv19703 Modified Files: epp_TransportSSL.cc epp_TransportSSL.h Log Message: Added new constructor, where you can set cert (and CAcert). Index: epp_TransportSSL.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.cc,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** epp_TransportSSL.cc 11 Mar 2002 12:54:08 -0000 1.11 --- epp_TransportSSL.cc 13 Mar 2002 15:50:39 -0000 1.12 *************** *** 167,174 **** sslserver = new npssl(65635,false); sslserver->setCertFile(m_certFile); ! if (!m_cacertFile.empty()) ! { ! sslserver->setVerifyLocations(m_cacertFile,m_cacertDir); ! } sslserver->newConnection(); } --- 167,173 ---- sslserver = new npssl(65635,false); sslserver->setCertFile(m_certFile); ! if (!m_cacertFile.empty()) { ! sslserver->setVerifyLocations(m_cacertFile,m_cacertDir); ! } sslserver->newConnection(); } Index: epp_TransportSSL.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_TransportSSL.h 13 Mar 2002 13:55:19 -0000 1.10 --- epp_TransportSSL.h 13 Mar 2002 15:50:39 -0000 1.11 *************** *** 56,59 **** --- 56,71 ---- m_certFile = "/usr/share/ssl/certs/client.pem"; }; + + epp_TransportSSL(const string & certFile, + const string & cacertFile = "", + const string & cacertDir = "") + : epp_TransportConn() + { + m_type="epp_TransportSSL"; + sslserver = NULL; + m_certFile = certFile; + m_cacertFile = cacertFile; + m_cacertDir = cacertDir; + }; virtual ~epp_TransportSSL() |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv18053 Modified Files: epp_TransportBase.h epp_TransportConn.h epp_TransportIOStream.h epp_TransportSSL.h epp_TransportTCP.cc epp_TransportTCP.h Log Message: -Added "_ref" typedef's in all transport classes -Added m_type and getType to all transport classes -Added the generic connection functions (e.g. getServerName) to base class Index: epp_TransportBase.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportBase.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_TransportBase.h 20 Feb 2002 17:26:02 -0000 1.4 --- epp_TransportBase.h 13 Mar 2002 13:55:19 -0000 1.5 *************** *** 29,32 **** --- 29,33 ---- #define __EPP_TRANSPORTBASE_H + #include <domtools/refcount.h> #include <string> #include <exception> *************** *** 36,42 **** class epp_TransportBase { public: ! epp_TransportBase() {}; virtual ~epp_TransportBase() {}; --- 37,50 ---- class epp_TransportBase { + + protected: + string m_type; + public: ! epp_TransportBase() ! { ! m_type="epp_TransportBase"; ! }; virtual ~epp_TransportBase() {}; *************** *** 47,51 **** --- 55,71 ---- virtual void connect() {}; virtual void disconnect() {}; + + virtual unsigned long getServerPort() { return 0;}; + virtual void setServerPort(const unsigned long & serverPort) {}; + virtual string getServerName() { return "";}; + virtual void setServerName(const string & serverName) {}; + + virtual string getType() + { + return m_type; + } }; + + typedef refcnt_ptr<epp_TransportBase> epp_TransportBase_ref; Index: epp_TransportConn.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportConn.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_TransportConn.h 10 Mar 2002 17:39:09 -0000 1.4 --- epp_TransportConn.h 13 Mar 2002 13:55:19 -0000 1.5 *************** *** 35,38 **** --- 35,39 ---- class epp_TransportConn : public epp_TransportBase { + protected: string m_serverName; *************** *** 89,93 **** } ! }; }; --- 90,96 ---- } ! }; ! ! typedef refcnt_ptr<epp_TransportConn> epp_TransportConn_ref; }; Index: epp_TransportIOStream.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportIOStream.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_TransportIOStream.h 20 Feb 2002 17:26:02 -0000 1.2 --- epp_TransportIOStream.h 13 Mar 2002 13:55:19 -0000 1.3 *************** *** 35,47 **** class epp_TransportIOStream : public epp_TransportBase { public: ! epp_TransportIOStream() {}; virtual ~epp_TransportIOStream() {}; void writeToServer(const string & xml_string); string readFromServer(); }; }; --- 35,54 ---- class epp_TransportIOStream : public epp_TransportBase { + public: ! epp_TransportIOStream() ! { ! m_type="epp_TransportIOStream"; ! }; virtual ~epp_TransportIOStream() {}; void writeToServer(const string & xml_string); + string readFromServer(); }; + + typedef refcnt_ptr<epp_TransportIOStream> epp_TransportIOStream_ref; }; Index: epp_TransportSSL.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_TransportSSL.h 10 Mar 2002 17:42:37 -0000 1.9 --- epp_TransportSSL.h 13 Mar 2002 13:55:19 -0000 1.10 *************** *** 51,54 **** --- 51,55 ---- epp_TransportSSL() : epp_TransportConn() { + m_type="epp_TransportSSL"; sslserver = NULL; // Default cert-file: *************** *** 62,65 **** --- 63,67 ---- void writeToServer(const string & xml_string); + string readFromServer(); *************** *** 109,112 **** --- 111,117 ---- } }; + + typedef refcnt_ptr<epp_TransportSSL> epp_TransportSSL_ref; + }; Index: epp_TransportTCP.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportTCP.cc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_TransportTCP.cc 11 Mar 2002 12:54:08 -0000 1.2 --- epp_TransportTCP.cc 13 Mar 2002 13:55:19 -0000 1.3 *************** *** 65,68 **** --- 65,69 ---- epp_TransportTCP::epp_TransportTCP() : epp_TransportConn() { + m_type="epp_TransportTCP"; sockfd = -1; pos = 0; Index: epp_TransportTCP.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportTCP.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_TransportTCP.h 10 Mar 2002 17:37:07 -0000 1.1 --- epp_TransportTCP.h 13 Mar 2002 13:55:19 -0000 1.2 *************** *** 53,56 **** --- 53,57 ---- protected: + char rbuf[4096]; *************** *** 65,68 **** --- 66,70 ---- void writeToServer(const string & xml_string); + string readFromServer(); *************** *** 74,77 **** --- 76,82 ---- int getC(); }; + + typedef refcnt_ptr<epp_TransportTCP> epp_TransportTCP_ref; + }; |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv14815 Modified Files: epp_ContactTransferRsp.h epp_ContactTrnData.cc epp_ContactTrnData.h epp_DataCollectionPolicy.h epp_DomainCreateReq.h epp_DomainCreateRsp.h epp_DomainInfoRsp.h epp_DomainRenewReq.h epp_DomainRenewRsp.h epp_DomainTransferReq.h epp_DomainTransferRsp.h epp_DomainTrnData.cc epp_DomainTrnData.h epp_DomainUpdateAddRemove.h epp_DomainUpdateChange.h epp_DomainUpdateReq.h epp_PollResData.h epp_PollResFactory.cc epp_PollResFactory.h epp_dcpStatement.h Log Message: Added JavaDocs comments.. Index: epp_ContactTransferRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactTransferRsp.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_ContactTransferRsp.h 9 Mar 2002 15:48:46 -0000 1.10 --- epp_ContactTransferRsp.h 12 Mar 2002 20:38:32 -0000 1.11 *************** *** 45,49 **** public: ! epp_ContactTrnData_ref m_trn_data; /**< Transfer element with all information about the transfer */ /// Null constructor --- 45,49 ---- public: ! epp_ContactTrnData_ref m_trn_data; /**< Element containing all information about the transfer */ /// Null constructor Index: epp_ContactTrnData.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactTrnData.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ContactTrnData.cc 8 Mar 2002 11:41:27 -0000 1.1 --- epp_ContactTrnData.cc 12 Mar 2002 20:38:32 -0000 1.2 *************** *** 27,30 **** --- 27,36 ---- + /** @file epp_ContactTrnData.cc + * @brief Additional definitions for epp_ContactTrnData + * @author Asbjorn Steira Mikkelsen + * @see epp_ContactTrnData.h + */ + #include <domtools/dom_wrapper.h> #include "epp_ContactTrnData.h" Index: epp_ContactTrnData.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactTrnData.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_ContactTrnData.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_ContactTrnData.h 12 Mar 2002 20:38:32 -0000 1.2 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTTRNDATA_H + /** @file epp_ContactTrnData.h + * @brief Definition of epp_ContactTrnData and epp_ContactTrnData_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_PollResData.h" *************** *** 34,47 **** namespace eppobject { namespace contact { class epp_ContactTrnData : public eppobject::epp::epp_PollResData { public: ! eppobject::epp::epp_string_ref m_id; ! eppobject::epp::epp_TransferStatusType_ref m_transfer_status; ! eppobject::epp::epp_string_ref m_request_client_id; ! eppobject::epp::epp_string_ref m_action_client_id; ! eppobject::epp::epp_datetime_ref m_request_date; ! eppobject::epp::epp_datetime_ref m_action_date; epp_ContactTrnData() { --- 39,55 ---- namespace eppobject { namespace contact { + /// Class containing elements describing a contact transfer. + /// @see epp_PollResData for additional information class epp_ContactTrnData : public eppobject::epp::epp_PollResData { public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique identifier for the contact */ ! eppobject::epp::epp_TransferStatusType_ref m_transfer_status; /**< State of the most recent transfer request */ ! eppobject::epp::epp_string_ref m_request_client_id; /**< ID of the client that requested the object transfer */ ! eppobject::epp::epp_string_ref m_action_client_id; /**< ID of the client that should act upon the transfer request */ ! eppobject::epp::epp_datetime_ref m_request_date; /**< Date and time that the transfer was requested */ ! eppobject::epp::epp_datetime_ref m_action_date; /**< Date and time of a required or completed response */ + /// Null constructor, setting #m_type epp_ContactTrnData() { *************** *** 49,55 **** }; virtual ~epp_ContactTrnData() {} ! // Note: Cannot set simple types to NULL epp_ContactTrnData(eppobject::epp::epp_string _m_id, eppobject::epp::epp_TransferStatusType _m_transfer_status, --- 57,65 ---- }; + /// Destructor virtual ~epp_ContactTrnData() {} ! /// Constructor, using simple types when it can, setting #m_type ! /// @note Cannot set simple types to NULL epp_ContactTrnData(eppobject::epp::epp_string _m_id, eppobject::epp::epp_TransferStatusType _m_transfer_status, *************** *** 69,73 **** }; ! epp_ContactTrnData(eppobject::epp::epp_string_ref _m_id, eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, --- 79,83 ---- }; ! /// Constructor, using only references, setting #m_type epp_ContactTrnData(eppobject::epp::epp_string_ref _m_id, eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, *************** *** 87,90 **** --- 97,102 ---- }; + /// Returns the type of object + /// @return Type of epp_PollResData object eppobject::epp::epp_string getType() { *************** *** 92,100 **** }; eppobject::epp::epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode); }; ! typedef refcnt_ptr<epp_ContactTrnData> epp_ContactTrnData_ref; static eppobject::epp::epp_PollResData * createContactPollResData() { return new epp_ContactTrnData(); --- 104,122 ---- }; + /** Parses a trnData dom_ptr, fills in the public attributes of this class, + * and returns a ref to an #epp_PollResData object that is really an + * epp_ContactTrnData object + * @param trnNode The trnData dom_ptr node + * @return The corresponding epp_ContactTrnData object + */ eppobject::epp::epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode); }; ! ! /// Typedef for the ref to the epp_ContactTrnData class typedef refcnt_ptr<epp_ContactTrnData> epp_ContactTrnData_ref; + /// Creates a pointer to an epp_ContactTrnData-object and returns it + /// as an epp_PollResData pointer + /// @return Pointer to an epp_ContactTrnData object static eppobject::epp::epp_PollResData * createContactPollResData() { return new epp_ContactTrnData(); Index: epp_DataCollectionPolicy.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DataCollectionPolicy.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_DataCollectionPolicy.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_DataCollectionPolicy.h 12 Mar 2002 20:38:32 -0000 1.2 *************** *** 38,48 **** namespace eppobject { namespace epp { ! class epp_DataCollectionPolicy { public: ! epp_dcpAccessType_ref m_access; ! epp_dcpStatement_seq_ref m_statements; ! /// Null constructor --- 38,49 ---- namespace eppobject { namespace epp { ! ! /// Class containing elements used to describe the server's policy for data ! /// collection and management class epp_DataCollectionPolicy { public: ! epp_dcpAccessType_ref m_access; /**< Describes access provided by the server to data received from the client */ ! epp_dcpStatement_seq_ref m_statements; /**< Describes data collection purposes, data recipients, and data retention */ /// Null constructor Index: epp_DomainCreateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCreateReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainCreateReq.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_DomainCreateReq.h 12 Mar 2002 20:38:32 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINCREATEREQ_H + /** @file epp_DomainCreateReq.h + * @brief Definition of epp_DomainCreateReq and epp_DomainCreateReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 37,55 **** namespace eppobject { namespace domain { class epp_DomainCreateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; ! epp_DomainPeriod_ref m_period; ! eppobject::epp::epp_string_seq_ref m_name_servers; ! eppobject::epp::epp_string_ref m_registrant; ! epp_domain_contact_seq_ref m_contacts; ! eppobject::epp::epp_AuthInfo_ref m_auth_info; epp_DomainCreateReq() {}; virtual ~epp_DomainCreateReq() {} ! // Note: Cannot set simple types to NULL epp_DomainCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, --- 42,68 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain create requests + /// @see epp_GenericReq for additional information class epp_DomainCreateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to be created */ ! epp_DomainPeriod_ref m_period; /**< Initial registration period of the domain object */ ! eppobject::epp::epp_string_seq_ref m_name_servers; /**< Fully qualified names of known host objects to ! * provide resolution services for the domain */ ! eppobject::epp::epp_string_ref m_registrant; /**< ID for the contact object to be associated with the ! * domain object as the object registrant */ ! epp_domain_contact_seq_ref m_contacts; /**< IDs for other contact objects to be associated with the ! * domain object */ ! eppobject::epp::epp_AuthInfo_ref m_auth_info; /**< Authorization information to be associated with domain */ + /// Null constructor epp_DomainCreateReq() {}; + /// Destructor virtual ~epp_DomainCreateReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, *************** *** 69,73 **** }; ! epp_DomainCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, --- 82,86 ---- }; ! /// Constructor, using only references epp_DomainCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, *************** *** 88,91 **** --- 101,105 ---- }; + /// Typedef for the ref to the epp_DomainCreateReq class typedef refcnt_ptr<epp_DomainCreateReq> epp_DomainCreateReq_ref; Index: epp_DomainCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCreateRsp.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_DomainCreateRsp.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_DomainCreateRsp.h 12 Mar 2002 20:38:32 -0000 1.10 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINCREATERSP_H + /** @file epp_DomainCreateRsp.h + * @brief Definition of epp_DomainCreateRsp and epp_DomainCreateRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericRsp.h" *************** *** 34,48 **** namespace eppobject { namespace domain { class epp_DomainCreateRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_datetime_ref m_creation_date; ! eppobject::epp::epp_datetime_ref m_expiration_date; epp_DomainCreateRsp() {}; ! virtual ~epp_DomainCreateRsp() {} ! // Note: Cannot set simple types to NULL epp_DomainCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, --- 39,60 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain create responses + /// @see epp_GenericRsp for additional information class epp_DomainCreateRsp : public epp::epp_GenericRsp { + public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the created domain object */ ! eppobject::epp::epp_datetime_ref m_creation_date; /**< Date and time of contact object creation */ ! eppobject::epp::epp_datetime_ref m_expiration_date; /**< Date and time identifying the end of the ! * domain object's registration period */ + /// Null constructor epp_DomainCreateRsp() {}; ! ! /// Destructor virtual ~epp_DomainCreateRsp() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, *************** *** 56,60 **** }; ! epp_DomainCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, --- 68,72 ---- }; ! /// Constructor, using only references epp_DomainCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, *************** *** 69,72 **** --- 81,85 ---- }; + /// Typedef for the ref to the epp_DomainCreateRsp class typedef refcnt_ptr<epp_DomainCreateRsp> epp_DomainCreateRsp_ref; Index: epp_DomainInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainInfoRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainInfoRsp.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_DomainInfoRsp.h 12 Mar 2002 20:38:32 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAININFORSP_H + /** @file epp_DomainInfoRsp.h + * @brief Definition of epp_DomainInfoRsp and epp_DomainInfoRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericRsp.h" *************** *** 37,64 **** namespace eppobject { namespace domain { class epp_DomainInfoRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_roid_ref m_roid; ! epp_domain_status_seq_ref m_status; ! eppobject::epp::epp_string_ref m_registrant; ! epp_domain_contact_seq_ref m_contacts; ! eppobject::epp::epp_string_seq_ref m_name_servers; ! eppobject::epp::epp_string_seq_ref m_hosts; ! eppobject::epp::epp_string_ref m_client_id; ! eppobject::epp::epp_string_ref m_created_by; ! eppobject::epp::epp_datetime_ref m_created_date; ! eppobject::epp::epp_string_ref m_updated_by; ! eppobject::epp::epp_datetime_ref m_updated_date; ! eppobject::epp::epp_datetime_ref m_expiration_date; ! eppobject::epp::epp_datetime_ref m_transfer_date; ! eppobject::epp::epp_AuthInfo_ref m_auth_info; ! epp_DomainInfoRsp() {}; virtual ~epp_DomainInfoRsp() {} ! // Note: Cannot set simple types to NULL epp_DomainInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, --- 42,78 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain info responses + /// @see epp_GenericRsp for additional information class epp_DomainInfoRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object */ ! eppobject::epp::epp_roid_ref m_roid; /**< Repository Object IDentifier assigned to the domain */ ! epp_domain_status_seq_ref m_status; /**< Status of the domain object */ ! eppobject::epp::epp_string_ref m_registrant; /**< ID for the contact object associated with the ! * domain object as the object registrant */ ! epp_domain_contact_seq_ref m_contacts; /**< IDs for other contact objects associated with the domain object */ ! eppobject::epp::epp_string_seq_ref m_name_servers; /**< Fully qualified names of the delegated host objects ! * (name servers) associated with the domain object */ ! eppobject::epp::epp_string_seq_ref m_hosts; /**< Fully qualified names of the subordinate host objects that ! * exist under this superordinate domain object */ ! eppobject::epp::epp_string_ref m_client_id; /**< Identifier of the sponsoring client */ ! eppobject::epp::epp_string_ref m_created_by; /**< Identifier of the client that created the domain */ ! eppobject::epp::epp_datetime_ref m_created_date; /**< Date and time of domain object creation */ ! eppobject::epp::epp_string_ref m_updated_by; /**< Identifier of the client that last updated the domain */ ! eppobject::epp::epp_datetime_ref m_updated_date; /**< Date and time of the most recent domain modification */ ! eppobject::epp::epp_datetime_ref m_expiration_date; /**< Date and time identifying the end of the ! * domain object's registration period */ ! eppobject::epp::epp_datetime_ref m_transfer_date; /**< Date and time of the most recent successful domain transfer */ ! eppobject::epp::epp_AuthInfo_ref m_auth_info; /**< Authorization information associated with domain */ ! ! /// Null constructor epp_DomainInfoRsp() {}; + /// Destructor virtual ~epp_DomainInfoRsp() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, *************** *** 96,100 **** }; ! epp_DomainInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, --- 110,114 ---- }; ! /// Constructor, using only references epp_DomainInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, *************** *** 132,136 **** }; }; ! typedef refcnt_ptr<epp_DomainInfoRsp> epp_DomainInfoRsp_ref; --- 146,151 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainInfoRsp class typedef refcnt_ptr<epp_DomainInfoRsp> epp_DomainInfoRsp_ref; Index: epp_DomainRenewReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainRenewReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainRenewReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainRenewReq.h 12 Mar 2002 20:38:32 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINRENEWREQ_H + /** @file epp_DomainRenewReq.h + * @brief Definition of epp_DomainRenewReq and epp_DomainRenewReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 35,50 **** namespace eppobject { namespace domain { class epp_DomainRenewReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_date_ref m_current_expiration_date; ! epp_DomainPeriod_ref m_period; epp_DomainRenewReq() {}; virtual ~epp_DomainRenewReq() {} ! // Note: Cannot set simple types to NULL epp_DomainRenewReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, --- 40,60 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain renew requests + /// @see epp_GenericReq for additional information class epp_DomainRenewReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to be renewed */ ! eppobject::epp::epp_date_ref m_current_expiration_date; /**< Date on which the current validity period ends */ ! epp_DomainPeriod_ref m_period; /**< Number of units to be added to the registration period of the domain */ + /// Null constructor epp_DomainRenewReq() {}; + /// Destructor virtual ~epp_DomainRenewReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainRenewReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, *************** *** 58,62 **** }; ! epp_DomainRenewReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, --- 68,72 ---- }; ! /// Constructor, using only references epp_DomainRenewReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, *************** *** 71,74 **** --- 81,85 ---- }; + /// Typedef for the ref to the epp_DomainRenewReq class typedef refcnt_ptr<epp_DomainRenewReq> epp_DomainRenewReq_ref; Index: epp_DomainRenewRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainRenewRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainRenewRsp.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_DomainRenewRsp.h 12 Mar 2002 20:38:32 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINRENEWRSP_H + /** @file epp_DomainRenewRsp.h + * @brief Definition of epp_DomainRenewRsp and epp_DomainRenewRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericRsp.h" *************** *** 34,49 **** namespace eppobject { namespace domain { class epp_DomainRenewRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_datetime_ref m_expiration_date; ! epp_DomainRenewRsp() {}; virtual ~epp_DomainRenewRsp() {} ! // Note: Cannot set simple types to NULL epp_DomainRenewRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, --- 39,59 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain renew responses + /// @see epp_GenericRsp for additional information class epp_DomainRenewRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the created domain object */ ! eppobject::epp::epp_datetime_ref m_expiration_date; /**< Date and time identifying the end of the ! * domain object's registration period */ ! /// Null constructor epp_DomainRenewRsp() {}; + /// Destructor virtual ~epp_DomainRenewRsp() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainRenewRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_name, *************** *** 55,59 **** }; ! epp_DomainRenewRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, --- 65,69 ---- }; ! /// Constructor, using only references epp_DomainRenewRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_name, *************** *** 66,69 **** --- 76,80 ---- }; + /// Typedef for the ref to the epp_DomainRenewRsp class typedef refcnt_ptr<epp_DomainRenewRsp> epp_DomainRenewRsp_ref; Index: epp_DomainTransferReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainTransferReq.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainTransferReq.h 21 Feb 2002 14:06:03 -0000 1.7 --- epp_DomainTransferReq.h 12 Mar 2002 20:38:32 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINTRANSFERREQ_H + /** @file epp_DomainTransferReq.h + * @brief Definition of epp_DomainTransferReq and epp_DomainTransferReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 36,51 **** namespace eppobject { namespace domain { class epp_DomainTransferReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_TransferRequest_ref m_trans; ! eppobject::epp::epp_string_ref m_name; ! epp_DomainPeriod_ref m_period; epp_DomainTransferReq() {}; virtual ~epp_DomainTransferReq() {} ! // Note: Cannot set simple types to NULL epp_DomainTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, --- 41,62 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain transfer requests + /// @see epp_GenericReq for additional information class epp_DomainTransferReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_TransferRequest_ref m_trans; /**< Common and generic transfer request element */ ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to be transferred */ ! epp_DomainPeriod_ref m_period; /**< Number of units to be added to the registration period of the domain ! * object at completion of the transfer process */ + /// Null constructor epp_DomainTransferReq() {}; + /// Destructor virtual ~epp_DomainTransferReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, *************** *** 59,63 **** }; ! epp_DomainTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, --- 70,74 ---- }; ! /// Constructor, using only references epp_DomainTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, *************** *** 71,75 **** }; }; ! typedef refcnt_ptr<epp_DomainTransferReq> epp_DomainTransferReq_ref; --- 82,87 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainTransferReq class typedef refcnt_ptr<epp_DomainTransferReq> epp_DomainTransferReq_ref; Index: epp_DomainTransferRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainTransferRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainTransferRsp.h 8 Mar 2002 11:41:27 -0000 1.8 --- epp_DomainTransferRsp.h 12 Mar 2002 20:38:32 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINTRANSFERRSP_H + /** @file epp_DomainTransferRsp.h + * @brief Definition of epp_DomainTransferRsp and epp_DomainTransferRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericRsp.h" *************** *** 35,47 **** namespace eppobject { namespace domain { class epp_DomainTransferRsp : public epp::epp_GenericRsp { public: ! epp_DomainTrnData_ref m_trn_data; epp_DomainTransferRsp() {}; ! virtual ~epp_DomainTransferRsp() {} ! epp_DomainTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, epp_DomainTrnData_ref _m_trn_data) --- 40,57 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain transfer responses + /// @see epp_GenericRsp for additional information class epp_DomainTransferRsp : public epp::epp_GenericRsp { public: ! epp_DomainTrnData_ref m_trn_data; /**< Element containing all information about the transfer */ + /// Null constructor epp_DomainTransferRsp() {}; ! ! /// Destructor virtual ~epp_DomainTransferRsp() {} ! ! /// Constructor, using only references epp_DomainTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, epp_DomainTrnData_ref _m_trn_data) *************** *** 52,55 **** --- 62,66 ---- }; + /// Typedef for the ref to the epp_DomainTransferRsp class typedef refcnt_ptr<epp_DomainTransferRsp> epp_DomainTransferRsp_ref; Index: epp_DomainTrnData.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainTrnData.cc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** epp_DomainTrnData.cc 10 Mar 2002 19:47:37 -0000 1.2 --- epp_DomainTrnData.cc 12 Mar 2002 20:38:33 -0000 1.3 *************** *** 27,30 **** --- 27,36 ---- + /** @file epp_DomainTrnData.cc + * @brief Additional definitions for epp_DomainTrnData + * @author Asbjorn Steira Mikkelsen + * @see epp_DomainTrnData.h + */ + #include <domtools/dom_wrapper.h> #include "epp_DomainTrnData.h" Index: epp_DomainTrnData.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainTrnData.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_DomainTrnData.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_DomainTrnData.h 12 Mar 2002 20:38:33 -0000 1.2 *************** *** 29,33 **** #define __EPP_DOMAINTRNDATA_H ! #include <domtools/dom_wrapper.h> #include "epp_eppdata.h" #include "epp_PollResData.h" --- 29,37 ---- #define __EPP_DOMAINTRNDATA_H ! /** @file epp_DomainTrnData.h ! * @brief Definition of epp_DomainTrnData and epp_DomainTrnData_ref ! * @author Asbjorn Steira Mikkelsen ! */ ! #include "epp_eppdata.h" #include "epp_PollResData.h" *************** *** 35,49 **** namespace eppobject { namespace domain { class epp_DomainTrnData : public eppobject::epp::epp_PollResData { public: ! eppobject::epp::epp_string_ref m_name; ! eppobject::epp::epp_TransferStatusType_ref m_transfer_status; ! eppobject::epp::epp_string_ref m_request_client_id; ! eppobject::epp::epp_string_ref m_action_client_id; ! eppobject::epp::epp_datetime_ref m_request_date; ! eppobject::epp::epp_datetime_ref m_action_date; ! eppobject::epp::epp_datetime_ref m_expiration_date; epp_DomainTrnData() { --- 39,58 ---- namespace eppobject { namespace domain { + /// Class containing elements describing a domain transfer. + /// @see epp_PollResData for additional information class epp_DomainTrnData : public eppobject::epp::epp_PollResData { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object */ ! eppobject::epp::epp_TransferStatusType_ref m_transfer_status; /**< State of the most recent transfer request */ ! eppobject::epp::epp_string_ref m_request_client_id; /**< ID of the client that requested the object transfer */ ! eppobject::epp::epp_string_ref m_action_client_id; /**< ID of the client that should act upon the transfer request */ ! eppobject::epp::epp_datetime_ref m_request_date; /**< Date and time that the transfer was requested */ ! eppobject::epp::epp_datetime_ref m_action_date; /**< Date and time of a required or completed response */ ! eppobject::epp::epp_datetime_ref m_expiration_date; /**< End of the domain object's validity period if the ! * <transfer> command caused or causes a change in the ! * validity period */ + /// Null constructor, setting #m_type epp_DomainTrnData() { *************** *** 51,57 **** }; virtual ~epp_DomainTrnData() {} ! // Note: Cannot set simple types to NULL epp_DomainTrnData(eppobject::epp::epp_string _m_name, eppobject::epp::epp_TransferStatusType _m_transfer_status, --- 60,68 ---- }; + /// Destructor virtual ~epp_DomainTrnData() {} ! /// Constructor, using simple types when it can, setting #m_type ! /// @note Cannot set simple types to NULL epp_DomainTrnData(eppobject::epp::epp_string _m_name, eppobject::epp::epp_TransferStatusType _m_transfer_status, *************** *** 73,77 **** }; ! epp_DomainTrnData(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, --- 84,88 ---- }; ! /// Constructor, using only references, setting #m_type epp_DomainTrnData(eppobject::epp::epp_string_ref _m_name, eppobject::epp::epp_TransferStatusType_ref _m_transfer_status, *************** *** 93,96 **** --- 104,109 ---- }; + /// Returns the type of object + /// @return Type of epp_PollResData object eppobject::epp::epp_string getType() { *************** *** 98,112 **** }; eppobject::epp::epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode); }; typedef refcnt_ptr<epp_DomainTrnData> epp_DomainTrnData_ref; static eppobject::epp::epp_PollResData * createDomainPollResData() { return new epp_DomainTrnData(); } - - }}; --- 111,133 ---- }; + /** Parses a trnData dom_ptr, fills in the public attributes of this class, + * and returns a ref to an #epp_PollResData object that is really an + * epp_DomainTrnData object + * @param trnNode The trnData dom_ptr node + * @return The corresponding epp_DomainTrnData object + */ eppobject::epp::epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode); }; + /// Typedef for the ref to the epp_DomainTrnData class typedef refcnt_ptr<epp_DomainTrnData> epp_DomainTrnData_ref; + /// Creates a pointer to an epp_DomainTrnData-object and returns it + /// as an epp_PollResData pointer + /// @return Pointer to an epp_DomainTrnData object static eppobject::epp::epp_PollResData * createDomainPollResData() { return new epp_DomainTrnData(); } }}; Index: epp_DomainUpdateAddRemove.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateAddRemove.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_DomainUpdateAddRemove.h 20 Feb 2002 17:26:02 -0000 1.6 --- epp_DomainUpdateAddRemove.h 12 Mar 2002 20:38:33 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINUPDATEADDREMOVE_H + /** @file epp_UpdateUpdateAddRemove.h + * @brief Definition of epp_UpdateUpdateAddRemove and epp_UpdateUpdateAddRemove_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_DomainContact.h" *************** *** 35,50 **** namespace eppobject { namespace domain { class epp_DomainUpdateAddRemove { - public: - - eppobject::epp::epp_string_seq_ref m_name_servers; - epp_domain_contact_seq_ref m_contacts; - epp_domain_status_seq_ref m_status; epp_DomainUpdateAddRemove() {}; virtual ~epp_DomainUpdateAddRemove() {}; epp_DomainUpdateAddRemove(eppobject::epp::epp_string_seq_ref _m_name_servers, epp_domain_contact_seq_ref _m_contacts, --- 40,60 ---- namespace eppobject { namespace domain { + /// Class containing elements used in add/remove part of domain update requests class epp_DomainUpdateAddRemove { + public: + eppobject::epp::epp_string_seq_ref m_name_servers; /**< Fully qualified names of known host objects to + * provide resolution services for the domain */ + epp_domain_contact_seq_ref m_contacts;/**< IDs for other contact objects (to be) associated with the + * domain object */ + epp_domain_status_seq_ref m_status; /**< Status of the domain object */ + /// Null constructor epp_DomainUpdateAddRemove() {}; + /// Destructor virtual ~epp_DomainUpdateAddRemove() {}; + /// Constructor, using only references epp_DomainUpdateAddRemove(eppobject::epp::epp_string_seq_ref _m_name_servers, epp_domain_contact_seq_ref _m_contacts, *************** *** 57,60 **** --- 67,71 ---- }; + /// Typedef for the ref to the epp_DomainUpdateAddRemove class typedef refcnt_ptr<epp_DomainUpdateAddRemove> epp_DomainUpdateAddRemove_ref; Index: epp_DomainUpdateChange.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateChange.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_DomainUpdateChange.h 20 Feb 2002 17:26:02 -0000 1.7 --- epp_DomainUpdateChange.h 12 Mar 2002 20:38:33 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINUPDATECHANGE_H + /** @file epp_DomainUpdateChange.h + * @brief Definition of epp_DomainUpdateChange and epp_DomainUpdateChange_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_AuthInfo.h" *************** *** 34,48 **** namespace eppobject { namespace domain { class epp_DomainUpdateChange { - public: ! eppobject::epp::epp_string_ref m_registrant; ! eppobject::epp::epp_AuthInfo_ref m_auth_info; epp_DomainUpdateChange() {}; virtual ~epp_DomainUpdateChange() {}; ! // Note: Cannot set simple types to NULL epp_DomainUpdateChange(eppobject::epp::epp_string _m_registrant, eppobject::epp::epp_AuthInfo_ref _m_auth_info) --- 39,58 ---- namespace eppobject { namespace domain { + /// Class containing elements used in the change part of domain update requests class epp_DomainUpdateChange { ! public: ! eppobject::epp::epp_string_ref m_registrant; /**< ID for the contact object to be associated with the ! * domain object as the object registrant */ ! eppobject::epp::epp_AuthInfo_ref m_auth_info; /**< Authorization information to be associated with domain */ + /// Null constructor epp_DomainUpdateChange() {}; + /// Destructor virtual ~epp_DomainUpdateChange() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainUpdateChange(eppobject::epp::epp_string _m_registrant, eppobject::epp::epp_AuthInfo_ref _m_auth_info) *************** *** 52,56 **** }; ! epp_DomainUpdateChange(eppobject::epp::epp_string_ref _m_registrant, eppobject::epp::epp_AuthInfo_ref _m_auth_info) --- 62,66 ---- }; ! /// Constructor, using only references epp_DomainUpdateChange(eppobject::epp::epp_string_ref _m_registrant, eppobject::epp::epp_AuthInfo_ref _m_auth_info) *************** *** 60,64 **** }; }; ! typedef refcnt_ptr<epp_DomainUpdateChange> epp_DomainUpdateChange_ref; --- 70,75 ---- }; }; ! ! /// Typedef for the ref to the epp_DomainUpdateChange class typedef refcnt_ptr<epp_DomainUpdateChange> epp_DomainUpdateChange_ref; Index: epp_DomainUpdateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainUpdateReq.h 8 Mar 2002 11:41:27 -0000 1.8 --- epp_DomainUpdateReq.h 12 Mar 2002 20:38:33 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_DOMAINUPDATEREQ_H + /** @file epp_DomainUpdateReq.h + * @brief Definition of epp_DomainUpdateReq and epp_DomainUpdateReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_domaindata.h" #include "epp_GenericReq.h" *************** *** 36,53 **** namespace eppobject { namespace domain { class epp_DomainUpdateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; ! epp_DomainUpdateAddRemove_ref m_add; ! epp_DomainUpdateChange_ref m_change; ! epp_DomainUpdateAddRemove_ref m_remove; ! epp_DomainUpdateReq() {}; virtual ~epp_DomainUpdateReq() {} ! // Note: Cannot set simple types to NULL epp_DomainUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, --- 41,62 ---- namespace eppobject { namespace domain { + /// Class containing elements used in domain update requests + /// @see epp_GenericReq for additional information class epp_DomainUpdateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_name; /**< Fully qualified name of the domain object to be updated */ ! epp_DomainUpdateAddRemove_ref m_add; /**< Attribute values to be added to the object */ ! epp_DomainUpdateChange_ref m_change; /**< Object attribute values to be changed */ ! epp_DomainUpdateAddRemove_ref m_remove; /**< Attribute values to be removed from the object */ + /// Null constructor epp_DomainUpdateReq() {}; + /// Destructor virtual ~epp_DomainUpdateReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_DomainUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_name, *************** *** 63,67 **** }; ! epp_DomainUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, --- 72,76 ---- }; ! /// Constructor, using only references epp_DomainUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_name, *************** *** 78,81 **** --- 87,91 ---- }; + /// Typedef for the ref to the epp_DomainUpdateReq class typedef refcnt_ptr<epp_DomainUpdateReq> epp_DomainUpdateReq_ref; Index: epp_PollResData.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollResData.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_PollResData.h 8 Mar 2002 12:23:15 -0000 1.7 --- epp_PollResData.h 12 Mar 2002 20:38:33 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_POLLRESDATA_H + /** @file epp_PollResData.h + * @brief Definition of epp_PollResData and epp_PollResData_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include <domtools/dom_wrapper.h> *************** *** 35,51 **** class epp_PollResData; // Forward declaration... typedef refcnt_ptr<epp_PollResData> epp_PollResData_ref; class epp_PollResData { protected: ! epp_string m_type; public: epp_PollResData() {}; virtual ~epp_PollResData() {}; virtual epp_string getType() = 0; virtual epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode) = 0; --- 40,65 ---- class epp_PollResData; // Forward declaration... + /// Typedef for the ref to the epp_PollResData class typedef refcnt_ptr<epp_PollResData> epp_PollResData_ref; + /// Abstract class containing elements used in resData-part of poll responses class epp_PollResData { + protected: ! epp_string m_type; /**< The type of poll resData object */ public: + /// Null constructor epp_PollResData() {}; + /// Destructor virtual ~epp_PollResData() {}; + /// Returns the type of resData object virtual epp_string getType() = 0; + + /// Parses a trnData dom_ptr, fills in the public attributes of the class, + /// and returns a ref to an epp_PollResData object virtual epp_PollResData_ref createTrnData(const domtools::dom_ptr & trnNode) = 0; Index: epp_PollResFactory.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollResFactory.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_PollResFactory.cc 8 Mar 2002 11:41:27 -0000 1.1 --- epp_PollResFactory.cc 12 Mar 2002 20:38:33 -0000 1.2 *************** *** 26,29 **** --- 26,36 ---- ************************************************************************/ + + /** @file epp_PollResFactory.cc + * @brief Additional definitions for epp_PollResFactory + * @author Asbjorn Steira Mikkelsen + * @see epp_PollResFactory.h + */ + #include "epp_PollResFactory.h" Index: epp_PollResFactory.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollResFactory.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_PollResFactory.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_PollResFactory.h 12 Mar 2002 20:38:33 -0000 1.2 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_POLLRESFACTORY_H + /** @file epp_PollResFactory.h + * @brief Definition of epp_PollResFactory and epp_PollResFactory_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_eppdata.h" #include "epp_PollResData.h" *************** *** 35,53 **** --- 40,75 ---- namespace eppobject { namespace epp { + /// Class handling all the different poll resData responses class epp_PollResFactory { private: + /// Typedef of the epp_PollResData factory used in the class typedef map<epp_string, epp_PollResData * (*)(), less<epp_string> > FactoryMap; + /// The epp_PollResData factory static FactoryMap fm; public: + /// Null constructor epp_PollResFactory() {}; + /// Destructor virtual ~epp_PollResFactory() {}; + /** Checks if the resData factory map has an element corresponding to the namespaceURI + * and the element, and returns an object of the corresponding resData class if it is + * of known type + * @param namespaceURI Namespace URI of the poll resData element + * @param element Local name of the poll resData element + * @return NULL, or a pointer to the corresponding resData object + */ static epp_PollResData* create(const string & namespaceURI, const string & element); + /** Adds a possible poll resData element to the epp_PollResData factory map + * @param namespaceURI Namespace URI of the poll resData element + * @param element Local name of the poll resData element + * @param func Name of function used to create an object of the corresponding poll resData class + */ static void addClass(const string & namespaceURI, const string & element, *************** *** 56,59 **** --- 78,82 ---- }; + /// Typedef for the ref to the epp_PollResFactory class typedef refcnt_ptr<epp_PollResFactory> epp_PollResFactory_ref; Index: epp_dcpStatement.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_dcpStatement.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_dcpStatement.h 8 Mar 2002 11:41:27 -0000 1.1 --- epp_dcpStatement.h 12 Mar 2002 20:38:33 -0000 1.2 *************** *** 37,47 **** namespace eppobject { namespace epp { ! class epp_dcpStatement { public: ! epp_dcpPurpose_seq_ref m_purposes; ! epp_dcpRecipient_seq_ref m_recipients; ! epp_dcpRetention_seq_ref m_retentions; --- 37,49 ---- namespace eppobject { namespace epp { ! ! /// Class containing elements used to describe the server's policy for data ! /// collection purposes, data recipients, and data retention class epp_dcpStatement { public: ! epp_dcpPurpose_seq_ref m_purposes; /**< Data collection purpose */ ! epp_dcpRecipient_seq_ref m_recipients; /**< Data recipient */ ! epp_dcpRetention_seq_ref m_retentions; /**< Data retention */ |
From: Asbjorn M. <ste...@us...> - 2002-03-12 20:47:00
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv19181 Modified Files: Makefile.am Log Message: Cleaned up Makefile.am, and it now exports the lib/headers Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Makefile.am 8 Mar 2002 11:45:35 -0000 1.6 --- Makefile.am 12 Mar 2002 20:46:56 -0000 1.7 *************** *** 1,6 **** SUBDIRS = data ssl transport ! CLEANFILES = *~ ! DISTCLEANFILES = Makefile.in noinst_PROGRAMS = hello login logout poll \ --- 1,5 ---- SUBDIRS = data ssl transport ! pkglib_LIBRARIES = libepprtk.a noinst_PROGRAMS = hello login logout poll \ *************** *** 12,16 **** loginunspec status ! noinst_LIBRARIES = libepprtk.a common_lib = \ --- 11,47 ---- loginunspec status ! exportedheaders = \ ! config.h \ ! epp_Action.h \ ! epp_ContactCheck.h \ ! epp_ContactCreate.h \ ! epp_ContactDelete.h \ ! epp_ContactInfo.h \ ! epp_ContactTransfer.h \ ! epp_ContactUpdate.h \ ! epp_DomainCheck.h \ ! epp_DomainCreate.h \ ! epp_DomainDelete.h \ ! epp_DomainInfo.h \ ! epp_DomainRenew.h \ ! epp_DomainTransfer.h \ ! epp_DomainUpdate.h \ ! epp_Extension.h \ ! epp_Hello.h \ ! epp_HostCheck.h \ ! epp_HostCreate.h \ ! epp_HostDelete.h \ ! epp_HostInfo.h \ ! epp_HostUpdate.h \ ! epp_Login.h \ ! epp_Logout.h \ ! epp_Poll.h \ ! epp_Session.h \ ! epp_Status.h \ ! epp_Unspec.h \ ! ltoa.h \ ! testTools.h ! ! pkginclude_HEADERS = $(exportedheaders) common_lib = \ *************** *** 20,24 **** ssl/libnpssl.a - LDADD = $(common_lib) -L/usr/local/lib/domtools \ -ldomtools /usr/local/xerces/lib/libxerces.so -lpthread \ --- 51,54 ---- *************** *** 29,38 **** libepprtk_a_SOURCES = \ ! epp_Login.cc \ ! epp_Session.cc \ ! epp_Hello.cc \ ! epp_Logout.cc \ ! epp_Poll.cc \ ! epp_Status.cc \ epp_ContactCheck.cc \ epp_ContactCreate.cc \ --- 59,63 ---- libepprtk_a_SOURCES = \ ! $(exportedheaders) \ epp_ContactCheck.cc \ epp_ContactCreate.cc \ *************** *** 48,56 **** epp_DomainTransfer.cc \ epp_DomainUpdate.cc \ epp_HostCheck.cc \ epp_HostCreate.cc \ epp_HostDelete.cc \ epp_HostInfo.cc \ ! epp_HostUpdate.cc hello_SOURCES = \ --- 73,90 ---- epp_DomainTransfer.cc \ epp_DomainUpdate.cc \ + epp_Hello.cc \ epp_HostCheck.cc \ epp_HostCreate.cc \ epp_HostDelete.cc \ epp_HostInfo.cc \ ! epp_HostUpdate.cc \ ! epp_Login.cc \ ! epp_Logout.cc \ ! epp_Poll.cc \ ! epp_Session.cc \ ! epp_Status.cc ! ! CLEANFILES = *~ ! DISTCLEANFILES = Makefile.in hello_SOURCES = \ *************** *** 125,127 **** loginunspec_SOURCES = \ main_loginunspec.cc $(common) - --- 159,160 ---- |
From: Asbjorn M. <ste...@us...> - 2002-03-12 16:59:21
|
Update of /cvsroot/epp-rtk/epp-rtk/c++ In directory usw-pr-cvs1:/tmp/cvs-serv21053 Modified Files: README Log Message: Updated the brief content here a bit... Index: README =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/README,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** README 20 Feb 2002 17:26:01 -0000 1.4 --- README 12 Mar 2002 16:59:16 -0000 1.5 *************** *** 7,17 **** ----- ! This is a preliminary release of the C++-version of the EPP RTK. In order to compile the toolkit and the testprograms, you need to have the following installed: ! ¤ Xerces-C (http://xml.apache.org/xerces-c/) ! ¤ domtools (Should be part of this package) --- 7,19 ---- ----- ! This is the C++ version of the EPP RTK. It follows the 05/03 specification ! of the proposed EPP-standard. In order to compile the toolkit and the testprograms, you need to have the following installed: ! ¤ domtools (Available from http://sourceforge.net/projects/epp-rtk/) ! * openssl (Available from http://www.openssl.org/) ! ¤ Xerces-C (Available from http://xml.apache.org/xerces-c/) *************** *** 32,38 **** - "Action"-classes as defined in the IDL ! src/main_* src/testTools.h - Small testprograms to test each action-class ! 2001.06.19: ep...@gn... --- 34,40 ---- - "Action"-classes as defined in the IDL ! src/main_* src/testTools.* - Small testprograms to test each action-class ! 2002.03.12: ep...@gn... |
From: Asbjorn M. <ste...@us...> - 2002-03-12 14:21:09
|
Update of /cvsroot/epp-rtk/epp-rtk/c++ In directory usw-pr-cvs1:/tmp/cvs-serv17022 Modified Files: Makefile.am configure.in final.sh Log Message: -Changed package-name to epprtk -Added "make install" to final.sh in order to install lib/header files Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 8 Mar 2002 12:16:53 -0000 1.2 --- Makefile.am 12 Mar 2002 14:21:04 -0000 1.3 *************** *** 1,3 **** ! PACKAGE=epprtk_cpp VERSION=1.00 SUBDIRS=src --- 1,3 ---- ! PACKAGE=epprtk VERSION=1.00 SUBDIRS=src Index: configure.in =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/configure.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** configure.in 8 Mar 2002 12:16:53 -0000 1.5 --- configure.in 12 Mar 2002 14:21:04 -0000 1.6 *************** *** 2,6 **** AC_INIT(src/config.h) ! PACKAGE=epprtk_cpp VERSION=1.00 AUTOMAKE=automake --- 2,6 ---- AC_INIT(src/config.h) ! PACKAGE=epprtk VERSION=1.00 AUTOMAKE=automake *************** *** 26,29 **** --- 26,30 ---- AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h openssl/x509.h,, AC_MSG_ERROR("Missing header - probably missing openssl")) AC_CHECK_HEADERS(parsers/DOMParser.hpp util/PlatformUtils.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) + #AC_CHECK_HEADERS(domtools/domtools.h,, AC_MSG_ERROR("Missing header - probably missing domtools")) #Only here for deprecated functions: AC_CHECK_HEADERS(dom/DOM.hpp,, AC_MSG_ERROR("Missing header - probably missing Xerces")) Index: final.sh =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/final.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** final.sh 28 Jun 2001 16:39:55 -0000 1.2 --- final.sh 12 Mar 2002 14:21:04 -0000 1.3 *************** *** 1,3 **** #!/bin/bash ! automake && autoconf && ./configure && make clean && make CXXFLAGS="--ansi -O2 -DRELEASE" --- 1,3 ---- #!/bin/bash ! automake && autoconf && ./configure && make clean && make CXXFLAGS="--ansi -O2 -DRELEASE" && make install |
From: Asbjorn M. <ste...@us...> - 2002-03-12 14:18:05
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv16095 Modified Files: config.h Log Message: -Added new TCP-transport -Simplified include of transport header file Index: config.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/config.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.h 20 Feb 2002 17:26:01 -0000 1.2 --- config.h 12 Mar 2002 14:18:02 -0000 1.3 *************** *** 30,46 **** #include <domtools/dom_output.h> #define TRANSPORT_IOSTREAM 1 #define TRANSPORT_SSL 2 // Change transport here: #define MYTRANSPORT TRANSPORT_SSL - #if MYTRANSPORT==TRANSPORT_SSL - #include "transport/epp_TransportSSL.h" - #else - #include "transport/epp_TransportIOStream.h" - #endif - namespace eppobject { namespace epp { --- 30,42 ---- #include <domtools/dom_output.h> + #include "transport/transports.h" #define TRANSPORT_IOSTREAM 1 #define TRANSPORT_SSL 2 + #define TRANSPORT_TCP 3 // Change transport here: #define MYTRANSPORT TRANSPORT_SSL namespace eppobject { namespace epp { *************** *** 49,52 **** --- 45,50 ---- #if MYTRANSPORT==TRANSPORT_SSL typedef epptransport::epp_TransportSSL EPPTransport; + #elif MYTRANSPORT==TRANSPORT_TCP + typedef epptransport::epp_TransportTCP EPPTransport; #else typedef epptransport::epp_TransportIOStream EPPTransport; |
From: Asbjorn M. <ste...@us...> - 2002-03-12 14:13:36
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv15042 Modified Files: epp_Poll.cc Log Message: Fixed a memory leak. Index: epp_Poll.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Poll.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_Poll.cc 8 Mar 2002 12:00:15 -0000 1.9 --- epp_Poll.cc 12 Mar 2002 14:13:31 -0000 1.10 *************** *** 128,131 **** --- 128,133 ---- } + delete ptr; + } // if "resChildNode" |
From: Asbjorn M. <ste...@us...> - 2002-03-12 13:33:24
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/ssl In directory usw-pr-cvs1:/tmp/cvs-serv2071 Modified Files: Makefile.am Log Message: Cleaned up Makefile.am, and it now exports the lib/headers Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/ssl/Makefile.am,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Makefile.am 8 Mar 2002 11:11:34 -0000 1.3 --- Makefile.am 12 Mar 2002 13:33:22 -0000 1.4 *************** *** 1,12 **** ! noinst_LIBRARIES = libnpssl.a ! CLEANFILES = *~ ! DISTCLEANFILES = Makefile.in libnpssl_a_SOURCES = \ ! npssl.h \ npssl.cc ! LDFLAGS = ! INCLUDES =-I/usr/local/ssl/include -I/usr/local --- 1,16 ---- ! pkglib_LIBRARIES = libnpssl.a ! exportedheaders = \ ! npssl.h + pkgincludedir = $(includedir)/$(PACKAGE)/ssl + pkginclude_HEADERS = $(exportedheaders) libnpssl_a_SOURCES = \ ! $(exportedheaders) \ npssl.cc ! INCLUDES =-I/usr/local/ssl/include ! ! CLEANFILES = *~ ! DISTCLEANFILES = Makefile.in |
From: Asbjorn M. <ste...@us...> - 2002-03-12 13:32:45
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv1907 Modified Files: Makefile.am Log Message: Cleaned up Makefile.am, and it now exports the lib/headers Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 8 Mar 2002 11:41:27 -0000 1.2 --- Makefile.am 12 Mar 2002 13:32:42 -0000 1.3 *************** *** 1,7 **** ! noinst_LIBRARIES = libdata.a ! libdata_a_SOURCES = epp_eppXMLbase.cc epp_contactXMLbase.cc \ ! epp_domainXMLbase.cc epp_hostXMLbase.cc epp_PollResFactory.cc \ ! epp_DomainTrnData.cc epp_ContactTrnData.cc CLEANFILES = *~ --- 1,114 ---- ! pkglib_LIBRARIES = libdata.a ! exportedheaders = \ ! epp_AuthInfo.h \ ! epp_CheckResult.h \ ! epp_Command.h \ ! epp_ContactAddress.h \ ! epp_ContactCheckReq.h \ ! epp_ContactCheckRsp.h \ ! epp_ContactCreateReq.h \ ! epp_ContactCreateRsp.h \ ! epp_ContactDeleteReq.h \ ! epp_ContactDeleteRsp.h \ ! epp_ContactInfoReq.h \ ! epp_ContactInfoRsp.h \ ! epp_ContactNameAddress.h \ ! epp_ContactPhone.h \ ! epp_ContactStatus.h \ ! epp_ContactTransferReq.h \ ! epp_ContactTransferRsp.h \ ! epp_ContactTrnData.h \ ! epp_ContactUpdateAddRemove.h \ ! epp_ContactUpdateChange.h \ ! epp_ContactUpdateReq.h \ ! epp_ContactUpdateRsp.h \ ! epp_ContactVoice.h \ ! epp_Credentials.h \ ! epp_DataCollectionPolicy.h \ ! epp_DomainCheckReq.h \ ! epp_DomainCheckRsp.h \ ! epp_DomainContact.h \ ! epp_DomainCreateReq.h \ ! epp_DomainCreateRsp.h \ ! epp_DomainDeleteReq.h \ ! epp_DomainDeleteRsp.h \ ! epp_DomainInfoReq.h \ ! epp_DomainInfoRsp.h \ ! epp_DomainPeriod.h \ ! epp_DomainRenewReq.h \ ! epp_DomainRenewRsp.h \ ! epp_DomainStatus.h \ ! epp_DomainTransferReq.h \ ! epp_DomainTransferRsp.h \ ! epp_DomainTrnData.h \ ! epp_DomainUpdateAddRemove.h \ ! epp_DomainUpdateChange.h \ ! epp_DomainUpdateReq.h \ ! epp_DomainUpdateRsp.h \ ! epp_Exception.h \ ! epp_GenericCheckRsp.h \ ! epp_GenericReq.h \ ! epp_GenericRsp.h \ ! epp_Greeting.h \ ! epp_HostAddress.h \ ! epp_HostCheckReq.h \ ! epp_HostCheckRsp.h \ ! epp_HostCreateReq.h \ ! epp_HostCreateRsp.h \ ! epp_HostDeleteReq.h \ ! epp_HostDeleteRsp.h \ ! epp_HostInfoReq.h \ ! epp_HostInfoRsp.h \ ! epp_HostStatus.h \ ! epp_HostUpdateAddRemove.h \ ! epp_HostUpdateChange.h \ ! epp_HostUpdateReq.h \ ! epp_HostUpdateRsp.h \ ! epp_LoginReq.h \ ! epp_LoginRsp.h \ ! epp_LogoutReq.h \ ! epp_LogoutRsp.h \ ! epp_MessageQueue.h \ ! epp_Options.h \ ! epp_PollContactTransfer.h \ ! epp_PollDomainTransfer.h \ ! epp_PollReq.h \ ! epp_PollResData.h \ ! epp_PollResDataUnion.h \ ! epp_PollResFactory.h \ ! epp_PollRsp.h \ ! epp_Response.h \ ! epp_Result.h \ ! epp_ResultData.h \ ! epp_Service.h \ ! epp_ServiceMenu.h \ ! epp_StatusReq.h \ ! epp_StatusResultData.h \ ! epp_StatusRsp.h \ ! epp_TransID.h \ ! epp_TransferRequest.h \ ! epp_XMLException.h \ ! epp_contactXMLbase.h \ ! epp_contactdata.h \ ! epp_dcpStatement.h \ ! epp_domainXMLbase.h \ ! epp_domaindata.h \ ! epp_eppXMLbase.h \ ! epp_eppdata.h \ ! epp_hostXMLbase.h \ ! epp_hostdata.h ! ! pkgincludedir = $(includedir)/$(PACKAGE)/data ! pkginclude_HEADERS = $(exportedheaders) ! ! libdata_a_SOURCES = \ ! epp_ContactTrnData.cc \ ! epp_DomainTrnData.cc \ ! epp_PollResFactory.cc \ ! epp_contactXMLbase.cc \ ! epp_domainXMLbase.cc \ ! epp_eppXMLbase.cc \ ! epp_hostXMLbase.cc CLEANFILES = *~ |
From: Asbjorn M. <ste...@us...> - 2002-03-12 13:30:46
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv1199 Modified Files: Makefile.am Added Files: transports.h Log Message: -Added new file (transports.h) listing all valid transports. -Cleaned up Makefile.am, and it now exports the lib/headers --- NEW FILE: transports.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __TRANSPORTS_H #define __TRANSPORTS_H #include "epp_TransportIOStream.h" #include "epp_TransportSSL.h" #include "epp_TransportTCP.h" #endif Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/Makefile.am,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Makefile.am 10 Mar 2002 17:40:13 -0000 1.2 --- Makefile.am 12 Mar 2002 13:30:43 -0000 1.3 *************** *** 1,7 **** ! noinst_LIBRARIES = libtransport.a ! libtransport_a_SOURCES = epp_TransportIOStream.cc \ ! epp_TransportSSL.cc epp_TransportTCP.cc CLEANFILES = *~ --- 1,20 ---- ! pkglib_LIBRARIES = libtransport.a ! exportedheaders = \ ! epp_TransportBase.h \ ! epp_TransportConn.h \ ! epp_TransportIOStream.h \ ! epp_TransportSSL.h \ ! epp_TransportTCP.h \ ! transports.h + pkgincludedir = $(includedir)/$(PACKAGE)/transport + pkginclude_HEADERS = $(exportedheaders) + + libtransport_a_SOURCES = \ + $(exportedheaders) \ + epp_TransportIOStream.cc \ + epp_TransportSSL.cc \ + epp_TransportTCP.cc CLEANFILES = *~ |
From: Asbjorn M. <ste...@us...> - 2002-03-11 12:54:13
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv9878 Modified Files: epp_TransportSSL.cc epp_TransportTCP.cc Log Message: TCP/SSL-transports now stripping off trailing whitespace in requests. writeToServer in TCP now writing the string to cout for debugging purposes... Index: epp_TransportSSL.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.cc,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_TransportSSL.cc 10 Mar 2002 17:42:37 -0000 1.10 --- epp_TransportSSL.cc 11 Mar 2002 12:54:08 -0000 1.11 *************** *** 52,57 **** cout << "\n</Writing_to_server>\n"; // </fixme> - if(!connected()) { throw epp_TrException(__FILE__, __LINE__, "Not connected to server"); --- 52,65 ---- cout << "\n</Writing_to_server>\n"; // </fixme> + string send_xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"; + send_xml += xml_string; + + // Deleting trailing whitespace from request: + unsigned long lastNotWhite = send_xml.find_last_not_of(" \t\r\n"); + if(lastNotWhite != (send_xml.length()-1) && lastNotWhite != 0) { + send_xml.erase(lastNotWhite+1, send_xml.length()); + } + if(!connected()) { throw epp_TrException(__FILE__, __LINE__, "Not connected to server"); *************** *** 59,64 **** try { ! sslserver->bufferedPutS("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"); ! sslserver->bufferedPutS(xml_string); sslserver->flush(); } --- 67,71 ---- try { ! sslserver->bufferedPutS(send_xml); sslserver->flush(); } Index: epp_TransportTCP.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportTCP.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_TransportTCP.cc 10 Mar 2002 17:37:07 -0000 1.1 --- epp_TransportTCP.cc 11 Mar 2002 12:54:08 -0000 1.2 *************** *** 62,65 **** --- 62,66 ---- } + epp_TransportTCP::epp_TransportTCP() : epp_TransportConn() { *************** *** 127,133 **** --- 128,147 ---- void epp_TransportTCP::writeToServer(const string & xml_string) { + // <FIXME>For testing purposes only: + cout << "<Writing_to_server>\n"; + cout << xml_string; + cout << endl; + cout << "\n</Writing_to_server>\n"; + // </fixme> + string send_xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"; send_xml += xml_string; + // Deleting trailing whitespace from request: + unsigned long lastNotWhite = send_xml.find_last_not_of(" \t\r\n"); + if(lastNotWhite != (send_xml.length()-1) && lastNotWhite != 0) { + send_xml.erase(lastNotWhite+1, send_xml.length()); + } + int len_ = send_xml.length(); |
From: Asbjorn M. <ste...@us...> - 2002-03-10 19:47:40
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv7998 Modified Files: epp_DomainTrnData.cc Log Message: Tried to cout a non-existing element (commented out line...). Index: epp_DomainTrnData.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainTrnData.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_DomainTrnData.cc 8 Mar 2002 11:41:27 -0000 1.1 --- epp_DomainTrnData.cc 10 Mar 2002 19:47:37 -0000 1.2 *************** *** 49,53 **** if(nodeName == string(elemPrefix + ":name")) { domt->m_name.ref(new epp_string(DTChildNode->getNodeData())); ! // cout << "name: " << *domt->m_domain_name << endl; } // if "name" --- 49,53 ---- if(nodeName == string(elemPrefix + ":name")) { domt->m_name.ref(new epp_string(DTChildNode->getNodeData())); ! // cout << "name: " << *domt->m_name << endl; } // if "name" |
From: Asbjorn M. <ste...@us...> - 2002-03-10 19:46:41
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv7765 Modified Files: testTools.cc Log Message: Deleted emppty "<extension/>" element in testLogin as it is not legal accoring to EPP 05/03... Index: testTools.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** testTools.cc 9 Mar 2002 11:58:01 -0000 1.7 --- testTools.cc 10 Mar 2002 19:46:39 -0000 1.8 *************** *** 304,308 **** l_req->m_cmd->m_creds->m_password.ref(new epp_string(password)); - l_req->m_cmd->m_ext.ref(new epp_Extension()); l_req->m_cmd->m_client_trid.ref(new epp_trid("LogIn-1")); --- 304,307 ---- |
From: Asbjorn M. <ste...@us...> - 2002-03-10 19:45:44
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv7604 Modified Files: epp_Unspec.h epp_Extension.h Log Message: Added/changed JavaDocs... Index: epp_Unspec.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Unspec.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_Unspec.h 8 Mar 2002 12:00:14 -0000 1.5 --- epp_Unspec.h 10 Mar 2002 19:45:41 -0000 1.6 *************** *** 30,36 **** /** @file epp_Unspec.h ! * @brief Deprecated! Declaration of the server-specific "unspecified" element * @author Asbjorn Steira Mikkelsen ! * @deprecated Replaced by epp_Extension.h */ --- 30,36 ---- /** @file epp_Unspec.h ! * @brief Deprecated! Definition of epp_Unspec and epp_Unspec_ref * @author Asbjorn Steira Mikkelsen ! * @deprecated Replaced by epp_Extension.h from IDL 05/03 */ *************** *** 39,43 **** namespace eppobject { namespace epp { ! /// Deprecated! Replaced by epp_Extension class epp_Unspec { --- 39,44 ---- namespace eppobject { namespace epp { ! /// Unspecified element used for server-defined command extensions. ! /// @deprecated Replaced by epp_Extension from IDL 05/03 class epp_Unspec { *************** *** 50,62 **** virtual ~epp_Unspec() {}; ! /** Virtual function used to convert a DOM-tree to an epp_string. To * be overloaded by sub-classes. ! * @return An empty epp_string */ virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; ! /** Virtual function used to convert an epp_string to a DOM-tree. To * be overloaded by sub-classes. ! * @param An XML epp_string */ virtual void fromXML(const eppobject::epp::epp_string & xml) {}; --- 51,63 ---- virtual ~epp_Unspec() {}; ! /** Virtual function used to convert a DOM-tree to an #epp_string. To * be overloaded by sub-classes. ! * @return An empty #epp_string */ virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; ! /** Virtual function used to convert an #epp_string to a DOM-tree. To * be overloaded by sub-classes. ! * @param xml An XML #epp_string */ virtual void fromXML(const eppobject::epp::epp_string & xml) {}; Index: epp_Extension.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/epp_Extension.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** epp_Extension.h 8 Mar 2002 12:00:14 -0000 1.1 --- epp_Extension.h 10 Mar 2002 19:45:41 -0000 1.2 *************** *** 29,47 **** #define __EPP_EXTENSION_H #include "data/epp_eppdata.h" namespace eppobject { namespace epp { ! class epp_Extension { public: epp_Extension() {}; virtual ~epp_Extension() {}; virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; virtual void fromXML(const eppobject::epp::epp_string & xml) {}; }; typedef refcnt_ptr<epp_Extension> epp_Extension_ref; --- 29,66 ---- #define __EPP_EXTENSION_H + /** @file epp_Extension.h + * @brief Deprecated! Definition of epp_Extension and epp_Extension_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "data/epp_eppdata.h" namespace eppobject { namespace epp { ! ! /// Extension element used for server-defined response extensions. class epp_Extension { public: + + /// Constructor epp_Extension() {}; + /// Deconstructor virtual ~epp_Extension() {}; + /** Virtual function used to convert a DOM-tree to an #epp_string. To + * be overloaded by sub-classes. + * @return An empty #epp_string + */ virtual eppobject::epp::epp_string toXML() { return eppobject::epp::epp_string(); }; + + /** Virtual function used to convert an #epp_string to a DOM-tree. To + * be overloaded by sub-classes. + * @param xml An XML #epp_string + */ virtual void fromXML(const eppobject::epp::epp_string & xml) {}; }; + /// Typedef for the ref to the epp_Extension class typedef refcnt_ptr<epp_Extension> epp_Extension_ref; |
From: Asbjorn M. <ste...@us...> - 2002-03-10 17:42:40
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv31858 Modified Files: epp_TransportSSL.cc epp_TransportSSL.h Log Message: -Can now handle "</epp>" not being at the end of a line... -Clean up Index: epp_TransportSSL.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.cc,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_TransportSSL.cc 20 Feb 2002 17:26:02 -0000 1.9 --- epp_TransportSSL.cc 10 Mar 2002 17:42:37 -0000 1.10 *************** *** 29,33 **** #include <openssl/ssl.h> ! // <FIXME>Some cleanup needed...</fixme> using namespace epptransport; --- 29,42 ---- #include <openssl/ssl.h> ! // Socket: ! #include <sys/types.h> ! #include <sys/socket.h> ! #include <netinet/in.h> ! #include <arpa/inet.h> ! #include <stdio.h> ! #include <unistd.h> ! #include <netdb.h> ! ///////// ! using namespace epptransport; *************** *** 45,53 **** ! if(!sslserver) { throw epp_TrException(__FILE__, __LINE__, "Not connected to server"); } - // <FIXME>Does not handle whitespace set to true?!?</fixme> try { sslserver->bufferedPutS("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"); --- 54,61 ---- ! if(!connected()) { throw epp_TrException(__FILE__, __LINE__, "Not connected to server"); } try { sslserver->bufferedPutS("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"); *************** *** 62,68 **** string epp_TransportSSL::readFromServer() { ! ! if(!sslserver) ! throw epp_TrException(__FILE__, __LINE__, "Not connected to server"); string s; --- 70,76 ---- string epp_TransportSSL::readFromServer() { ! if(!connected()) { ! throw epp_TrException(__FILE__, __LINE__, "Not connected to server"); ! } string s; *************** *** 70,87 **** try { ! string line; ! line = sslserver->bufferedGetS(); - // <FIXME>Must handle a situation where "</epp>" is not on a line of its own...</fixme> - while(line.find("</epp>") == string::npos) { - s += line; - line = sslserver->bufferedGetS(); - } - s += line; } catch(...) { throw epp_TrException(__FILE__, __LINE__, "Unable to read from server"); } ! return s; } --- 78,116 ---- try { ! char c; ! while(connected()) { ! c = sslserver->getch(); ! s += c; ! if(c == '<') { // if "<" ! c = sslserver->getch(); ! s += c; ! if(c == '/') { // if "</" ! c = sslserver->getch(); ! s += c; ! if(c == 'e') { // if "</e" ! c = sslserver->getch(); ! s += c; ! if(c == 'p') { // if "</ep" ! c = sslserver->getch(); ! s += c; ! if(c == 'p') { // if "</epp" ! c = sslserver->getch(); ! s += c; ! if(c == '>') { // if "</epp>" ! break; ! } // if "</epp>" ! } // if "</epp" ! } // if "</ep" ! } // if "</e" ! } // if "</" ! } // if "<" ! ! } // while } catch(...) { throw epp_TrException(__FILE__, __LINE__, "Unable to read from server"); } ! return s; } *************** *** 108,111 **** --- 137,142 ---- void epp_TransportSSL::connect() { + struct sockaddr_in address; + sockfd = socket(AF_INET, SOCK_STREAM, 0); address.sin_family = AF_INET; *************** *** 117,129 **** address.sin_port = ntohs(m_serverPort); ! ! // <FIXME>For testing purposes only:</fixme> ! cout << "Trying to connect to " << m_serverName << ":" << m_serverPort << endl; ! ! int len; ! len = sizeof(address); ! int result; ! result = ::connect(sockfd,(struct sockaddr *) &address, len); if(result == -1) { --- 148,155 ---- address.sin_port = ntohs(m_serverPort); ! int len = sizeof(address); ! // cout << "Connecting to " << m_serverName << ":" << m_serverPort << endl; ! int result = ::connect(sockfd,(struct sockaddr *) &address, len); if(result == -1) { Index: epp_TransportSSL.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportSSL.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_TransportSSL.h 8 Mar 2002 11:06:23 -0000 1.8 --- epp_TransportSSL.h 10 Mar 2002 17:42:37 -0000 1.9 *************** *** 33,51 **** #include "epp_TransportConn.h" - // Socket: - #include <sys/types.h> - #include <sys/socket.h> - #include <netinet/in.h> - #include <arpa/inet.h> - #include <stdio.h> - #include <unistd.h> - #include <netdb.h> - ///////// - - - // <FIXME>Some cleanup needed...</fixme> namespace epptransport { ! class epp_TransportSSL : public epp_TransportConn { --- 33,39 ---- #include "epp_TransportConn.h" namespace epptransport { ! class epp_TransportSSL : public epp_TransportConn { *************** *** 58,62 **** npbase::npssl *sslserver; int sockfd; - struct sockaddr_in address; public: --- 46,49 ---- *************** *** 65,69 **** { sslserver = NULL; ! m_certFile = "/usr/share/ssl/certs/client.pem"; //<fixme>needs to be configurable...</fixme> }; --- 52,57 ---- { sslserver = NULL; ! // Default cert-file: ! m_certFile = "/usr/share/ssl/certs/client.pem"; }; |
From: Asbjorn M. <ste...@us...> - 2002-03-10 17:40:16
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv31541 Modified Files: Makefile.am Log Message: Added TCP-transport... Index: Makefile.am =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/Makefile.am,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Makefile.am 19 Jun 2001 19:16:38 -0000 1.1 --- Makefile.am 10 Mar 2002 17:40:13 -0000 1.2 *************** *** 1,5 **** noinst_LIBRARIES = libtransport.a ! libtransport_a_SOURCES = epp_TransportIOStream.cc epp_TransportSSL.cc --- 1,6 ---- noinst_LIBRARIES = libtransport.a ! libtransport_a_SOURCES = epp_TransportIOStream.cc \ ! epp_TransportSSL.cc epp_TransportTCP.cc |
From: Asbjorn M. <ste...@us...> - 2002-03-10 17:39:13
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv31078 Modified Files: epp_TransportConn.h Log Message: Changed default server to epp.nic.name Index: epp_TransportConn.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/transport/epp_TransportConn.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** epp_TransportConn.h 20 Feb 2002 17:26:02 -0000 1.3 --- epp_TransportConn.h 10 Mar 2002 17:39:09 -0000 1.4 *************** *** 43,47 **** epp_TransportConn() { ! m_serverName = "127.0.0.1"; m_serverPort = 3121; }; --- 43,47 ---- epp_TransportConn() { ! m_serverName = "epp.nic.name"; m_serverPort = 3121; }; *************** *** 52,56 **** virtual string readFromServer() = 0; ! virtual void connect(const string & serverName, const unsigned long & serverPort) = 0; virtual void connect() = 0; virtual void disconnect() = 0; --- 52,57 ---- virtual string readFromServer() = 0; ! virtual void connect(const string & serverName, ! const unsigned long & serverPort) = 0; virtual void connect() = 0; virtual void disconnect() = 0; *************** *** 61,65 **** return m_serverName; }; ! // Deprecated, use setServerName instead virtual void setServerIP(const string & serverIP) --- 62,66 ---- return m_serverName; }; ! // Deprecated, use setServerName instead virtual void setServerIP(const string & serverIP) |
From: Asbjorn M. <ste...@us...> - 2002-03-10 17:37:11
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/transport In directory usw-pr-cvs1:/tmp/cvs-serv30211 Added Files: epp_TransportTCP.h epp_TransportTCP.cc Log Message: Added new transport, standard TCP/socket. --- NEW FILE: epp_TransportTCP.h --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #ifndef __EPP_TRANSPORTTCP_H #define __EPP_TRANSPORTTCP_H #include <string> #include "epp_TransportConn.h" namespace epptransport { class epp_TransportTCP : public epp_TransportConn { private: char readbuf[16384]; int sockfd; unsigned int pos; int len; unsigned int timeout; bool fillBuf(void); enum { READ = 1, WRITE = 2 }; protected: char rbuf[4096]; public: epp_TransportTCP(); virtual ~epp_TransportTCP() { disconnect(); }; void writeToServer(const string & xml_string); string readFromServer(); bool select(int type) const; void connect(const string & serverName, const unsigned long & serverPort); void connect(); void disconnect(); int getC(); }; }; #endif --- NEW FILE: epp_TransportTCP.cc --- /************************************************************************ * EPP RTK C++ * Copyright (C) 2001, 2002 The Global Name Registry, Limited * * This library is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Contact information: ep...@gn... * * EPP RTK * The Global Name Registry, Limited * 125 High Holborn * London WC1V 6QA * United Kingdom ************************************************************************/ #include "epp_TransportTCP.h" #include <sys/time.h> #include <sys/errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <signal.h> #include <stdio.h> #include <unistd.h> #include <netdb.h> using namespace epptransport; // Converts ascii text to in_addr struct. // NULL is returned if the address can not be found. static struct sockaddr_in *atoaddr(const string & address) { struct hostent *host; static struct sockaddr_in saddr; // First try it as aaa.bbb.ccc.ddd. saddr.sin_addr.s_addr = inet_addr(address.c_str()); if ((signed int)saddr.sin_addr.s_addr != -1) { return &saddr; } host = gethostbyname(address.c_str()); if (host != NULL) { memcpy(&saddr.sin_addr.s_addr,host->h_addr,(unsigned int)host->h_length); return &saddr; } return (struct sockaddr_in *)NULL; } epp_TransportTCP::epp_TransportTCP() : epp_TransportConn() { sockfd = -1; pos = 0; len = 0; timeout = 0; readbuf[0] = '\0'; memset(rbuf, 0, sizeof(rbuf)); } bool epp_TransportTCP::fillBuf (void) { if (timeout > 0) { #ifdef SOCKET_DEBUG cerr << "timeout enabled. filling buf" << endl; #endif if (select(READ)) { // move data between pos and len to start of buffer len = ::read(sockfd,&readbuf[pos],(size_t)(sizeof(readbuf)-pos)); if (len <= 0) return false; return true; } else { return false; } } else { // move data between pos and len to start of buffer len = ::read(sockfd,&readbuf[pos],sizeof(readbuf)-pos); if (len <= 0) return false; return true; } } bool epp_TransportTCP::select(int type) const { if (sockfd == -1) return false; for (;;) { fd_set rfds; fd_set wfds; struct timeval tv; tv.tv_sec = (long)timeout; tv.tv_usec = 0; FD_ZERO(&rfds); FD_ZERO(&wfds); if (type & READ) FD_SET(sockfd, &rfds); if (type & WRITE) FD_SET(sockfd, &wfds); #ifdef SOCKET_DEBUG cerr << "before select" << endl; #endif int retval = ::select(sockfd + 1, &rfds, &wfds, (fd_set *)NULL, &tv); #ifdef SOCKET_DEBUG cerr << "after select, retval = " << retval << endl; #endif if (retval > 0) return true; else if (retval == -1 && errno != EINTR) return false; else throw epp_TrException(__FILE__, __LINE__, "Socket timed out"); } } void epp_TransportTCP::writeToServer(const string & xml_string) { string send_xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>"; send_xml += xml_string; int len_ = send_xml.length(); #ifdef SOCKET_DEBUG cerr << "<<< " << send_xml.c_str() << endl; #endif size_t bytes_sent = 0; int this_write; size_t count; if (len_ < 0) len_ = (int)strlen(send_xml.c_str()); count = (unsigned int)len_; while (bytes_sent < count) { do { if (timeout > 0) { if (select(WRITE)) { this_write = write(sockfd, send_xml.c_str(), count - bytes_sent); } else { throw epp_TrException(__FILE__, __LINE__, "Unable to write to server"); } } else { this_write = write(sockfd, send_xml.c_str(), count - bytes_sent); } } while ( (this_write < 0) && (errno == EINTR) ); if (this_write <= 0) { if (errno == EPIPE) { (void)signal(SIGPIPE, SIG_IGN); throw epp_TrException(__FILE__, __LINE__, "Unable to write to server"); } } bytes_sent += (unsigned int)this_write; send_xml += this_write; } } int epp_TransportTCP::getC() { if (len == -1) return -1; if (pos >= (unsigned int)len) { pos = 0; (void)fillBuf(); } if (len <= 0) return -1; return (unsigned int)(readbuf[pos++] & 0xff); } string epp_TransportTCP::readFromServer() { string s; int c = 0; while((c = getC()) != -1) { s += (char)c; if((char)c == '<') { // if "<" if((c = getC()) == -1) break; s += (char)c; if((char)c == '/') { // if "</" if((c = getC()) == -1) break; s += (char)c; if((char)c == 'e') { // if "</e" if((c = getC()) == -1) break; s += (char)c; if((char)c == 'p') { // if "</ep" if((c = getC()) == -1) break; s += (char)c; if((char)c == 'p') { // if "</epp" if((c = getC()) == -1) break; s += (char)c; if((char)c == '>') { // if "</epp>" break; } // if "</epp>" } // if "</epp" } // if "</ep" } // if "</e" } // if "</" } // if "<" } // while return s; } void epp_TransportTCP::connect(const string & serverName, const unsigned long & serverPort) { m_serverName = serverName; m_serverPort = serverPort; connect(); } void epp_TransportTCP::connect() { struct sockaddr_in *address; sockfd = ::socket(AF_INET,(int)SOCK_STREAM, 0); if (sockfd == -1) { throw epp_TrException(__FILE__, __LINE__, "Unable to connect to server"); } address = atoaddr(m_serverName); if (!address) { disconnect(); throw epp_TrException(__FILE__, __LINE__, "Unable to resolve hostname");; } address->sin_family = AF_INET; address->sin_port = htons(m_serverPort); //lint -e740 if (-1== ::connect (sockfd, (struct sockaddr *)address, sizeof(struct sockaddr_in))) { disconnect(); throw epp_TrException(__FILE__, __LINE__, "Unable to connect to server"); } } void epp_TransportTCP::disconnect() { if (sockfd != -1) { while (-1 == ::close(sockfd)) { if (errno == EINTR) continue; return; } } sockfd = -1; return; } |
Update of /cvsroot/epp-rtk/epp-rtk/c++/src/data In directory usw-pr-cvs1:/tmp/cvs-serv11308 Modified Files: epp_Command.h epp_ContactAddress.h epp_ContactCheckReq.h epp_ContactCheckRsp.h epp_ContactCreateReq.h epp_ContactCreateRsp.h epp_ContactDeleteReq.h epp_ContactDeleteRsp.h epp_ContactInfoReq.h epp_ContactInfoRsp.h epp_ContactPhone.h epp_ContactTransferReq.h epp_ContactTransferRsp.h epp_ContactUpdateAddRemove.h epp_ContactUpdateChange.h epp_ContactUpdateReq.h epp_ContactUpdateRsp.h epp_ContactVoice.h epp_Credentials.h epp_DomainCheckReq.h epp_DomainCheckRsp.h epp_DomainDeleteReq.h epp_DomainDeleteRsp.h epp_DomainInfoReq.h epp_DomainUpdateRsp.h epp_Exception.h epp_HostCheckReq.h epp_HostCheckRsp.h epp_HostDeleteReq.h epp_HostDeleteRsp.h epp_HostInfoReq.h epp_HostUpdateRsp.h epp_LoginReq.h epp_LoginRsp.h epp_PollContactTransfer.h epp_PollDomainTransfer.h epp_PollResDataUnion.h epp_Result.h epp_Service.h epp_TransID.h epp_XMLException.h Log Message: Added more documentation (using JavaDoc tags), and changed some of the existing documentation. Index: epp_Command.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Command.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_Command.h 8 Mar 2002 11:41:27 -0000 1.8 --- epp_Command.h 9 Mar 2002 15:48:45 -0000 1.9 *************** *** 77,81 **** }; ! /// Typedef for the ref to the epp_Result class typedef refcnt_ptr<epp_Command> epp_Command_ref; --- 77,81 ---- }; ! /// Typedef for the ref to the epp_Command class typedef refcnt_ptr<epp_Command> epp_Command_ref; Index: epp_ContactAddress.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactAddress.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactAddress.h 22 Feb 2002 15:46:02 -0000 1.7 --- epp_ContactAddress.h 9 Mar 2002 15:48:45 -0000 1.8 *************** *** 42,48 **** public: ! eppobject::epp::epp_string_ref m_street1; /**< Line 1 of contact street address */ ! eppobject::epp::epp_string_ref m_street2; /**< Line 2 of contact street address */ ! eppobject::epp::epp_string_ref m_street3; /**< Line 3 of contact street address */ eppobject::epp::epp_string_ref m_city; /**< Contact city */ eppobject::epp::epp_string_ref m_state_province; /**< Contact state/province */ --- 42,48 ---- public: ! eppobject::epp::epp_string_ref m_street1; /**< Line 1 of street address */ ! eppobject::epp::epp_string_ref m_street2; /**< Line 2 of street address */ ! eppobject::epp::epp_string_ref m_street3; /**< Line 3 of street address */ eppobject::epp::epp_string_ref m_city; /**< Contact city */ eppobject::epp::epp_string_ref m_state_province; /**< Contact state/province */ Index: epp_ContactCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCheckReq.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactCheckReq.h 22 Feb 2002 17:14:14 -0000 1.9 --- epp_ContactCheckReq.h 9 Mar 2002 15:48:45 -0000 1.10 *************** *** 39,43 **** namespace eppobject { namespace contact { ! /// Class containing all elements used in contact check requests /// @see epp_GenericReq for additional information class epp_ContactCheckReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace contact { ! /// Class containing elements used in contact check requests /// @see epp_GenericReq for additional information class epp_ContactCheckReq : public epp::epp_GenericReq { Index: epp_ContactCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCheckRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_ContactCheckRsp.h 9 Mar 2002 15:48:45 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace contact { ! /// Class containing all elements used in contact check responses /// @see epp_GenericCheckRsp for additional information class epp_ContactCheckRsp : public epp::epp_GenericCheckRsp { --- 39,43 ---- namespace eppobject { namespace contact { ! /// Class containing elements used in contact check responses /// @see epp_GenericCheckRsp for additional information class epp_ContactCheckRsp : public epp::epp_GenericCheckRsp { Index: epp_ContactCreateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCreateReq.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactCreateReq.h 21 Feb 2002 14:06:02 -0000 1.9 --- epp_ContactCreateReq.h 9 Mar 2002 15:48:45 -0000 1.10 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTCREATEREQ_H + /** @file epp_ContactCreateReq.h + * @brief Definition of epp_ContactCreateReq and epp_ContactCreateReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericReq.h" *************** *** 37,56 **** namespace eppobject { namespace contact { class epp_ContactCreateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; ! epp_ContactNameAddress_ref m_ascii_address; ! epp_ContactNameAddress_ref m_i15d_address; ! epp_ContactPhone_ref m_voice; ! epp_ContactPhone_ref m_fax; ! eppobject::epp::epp_string_ref m_email; ! eppobject::epp::epp_AuthInfo_ref m_auth_info; epp_ContactCreateReq() {}; virtual ~epp_ContactCreateReq() {} ! // Note: Cannot set simple types to NULL epp_ContactCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id, --- 42,66 ---- namespace eppobject { namespace contact { + /// Class containing elements used in contact create requests + /// @see epp_GenericReq for additional information class epp_ContactCreateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; /**< Desired server-unique identifier for the contact to be created */ ! 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 */ ! eppobject::epp::epp_string_ref m_email; /**< E-mail address of contact */ ! eppobject::epp::epp_AuthInfo_ref m_auth_info; /**< Authorization information to be associated with contact */ + /// Null constructor epp_ContactCreateReq() {}; + /// Destructor virtual ~epp_ContactCreateReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id, *************** *** 72,76 **** }; ! epp_ContactCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id, --- 82,86 ---- }; ! /// Constructor, using only references epp_ContactCreateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id, *************** *** 93,96 **** --- 103,107 ---- }; + /// Typedef for the ref to the epp_ContactCreateReq class typedef refcnt_ptr<epp_ContactCreateReq> epp_ContactCreateReq_ref; Index: epp_ContactCreateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactCreateRsp.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactCreateRsp.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_ContactCreateRsp.h 9 Mar 2002 15:48:45 -0000 1.10 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTCREATERSP_H + /** @file epp_ContactCreateRsp.h + * @brief Definition of epp_ContactCreateRsp and epp_ContactCreateRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericRsp.h" *************** *** 34,48 **** namespace eppobject { namespace contact { class epp_ContactCreateRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_id; ! eppobject::epp::epp_datetime_ref m_creation_date; epp_ContactCreateRsp() {}; virtual ~epp_ContactCreateRsp() {}; ! // Note: Cannot set simple types to NULL epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_id, --- 39,58 ---- namespace eppobject { namespace contact { + /// Class containing elements used in contact create responses + /// @see epp_GenericRsp for additional information class epp_ContactCreateRsp : public epp::epp_GenericRsp { public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique identifier for the created contact */ ! eppobject::epp::epp_datetime_ref m_creation_date; /**< Date and time of contact object creation */ + /// Null constructor epp_ContactCreateRsp() {}; + /// Destructor virtual ~epp_ContactCreateRsp() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_id, *************** *** 54,58 **** }; ! epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_id, --- 64,68 ---- }; ! /// Constructor, using only references epp_ContactCreateRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_id, *************** *** 65,68 **** --- 75,79 ---- }; + /// Typedef for the ref to the epp_ContactCreateRsp class typedef refcnt_ptr<epp_ContactCreateRsp> epp_ContactCreateRsp_ref; Index: epp_ContactDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactDeleteReq.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactDeleteReq.h 22 Feb 2002 17:14:14 -0000 1.9 --- epp_ContactDeleteReq.h 9 Mar 2002 15:48:45 -0000 1.10 *************** *** 39,43 **** namespace eppobject { namespace contact { ! /// Class containing all elements used in contact delete requests /// @see epp_GenericReq for additional information class epp_ContactDeleteReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace contact { ! /// Class containing elements used in contact delete requests /// @see epp_GenericReq for additional information class epp_ContactDeleteReq : public epp::epp_GenericReq { Index: epp_ContactDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactDeleteRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactDeleteRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_ContactDeleteRsp.h 9 Mar 2002 15:48:45 -0000 1.9 *************** *** 38,42 **** namespace eppobject { namespace contact { ! /// Class containing all elements used in contact delete responses /// @see epp_GenericRsp for additional information class epp_ContactDeleteRsp : public epp::epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace contact { ! /// Class containing elements used in contact delete responses /// @see epp_GenericRsp for additional information class epp_ContactDeleteRsp : public epp::epp_GenericRsp { Index: epp_ContactInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoReq.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactInfoReq.h 22 Feb 2002 17:14:14 -0000 1.9 --- epp_ContactInfoReq.h 9 Mar 2002 15:48:45 -0000 1.10 *************** *** 33,36 **** --- 33,37 ---- * @author Asbjorn Steira Mikkelsen */ + #include "epp_contactdata.h" #include "epp_GenericReq.h" *************** *** 38,42 **** namespace eppobject { namespace contact { ! /// Class containing all elements used in contact info requests /// @see epp_GenericReq for additional information class epp_ContactInfoReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace contact { ! /// Class containing elements used in contact info requests /// @see epp_GenericReq for additional information class epp_ContactInfoReq : public epp::epp_GenericReq { Index: epp_ContactInfoRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactInfoRsp.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactInfoRsp.h 21 Feb 2002 14:06:03 -0000 1.9 --- epp_ContactInfoRsp.h 9 Mar 2002 15:48:46 -0000 1.10 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTINFORSP_H + /** @file epp_ContactInfoRsp.h + * @brief Definition of epp_ContactInfoRsp and epp_ContactInfoRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericRsp.h" *************** *** 38,65 **** namespace eppobject { namespace contact { class epp_ContactInfoRsp : public epp::epp_GenericRsp { - public: - eppobject::epp::epp_string_ref m_id; - eppobject::epp::epp_roid_ref m_roid; - epp_ContactNameAddress_ref m_ascii_address; - epp_ContactNameAddress_ref m_i15d_address; - epp_ContactPhone_ref m_voice; - epp_ContactPhone_ref m_fax; - eppobject::epp::epp_string_ref m_email; - epp_contact_status_seq_ref m_status; - eppobject::epp::epp_string_ref m_client_id; - eppobject::epp::epp_string_ref m_created_by; - eppobject::epp::epp_datetime_ref m_created_date; - eppobject::epp::epp_string_ref m_updated_by; - eppobject::epp::epp_datetime_ref m_updated_date; - eppobject::epp::epp_datetime_ref m_transfer_date; - eppobject::epp::epp_AuthInfo_ref m_auth_info; epp_ContactInfoRsp() {}; virtual ~epp_ContactInfoRsp() {} ! // Note: Cannot set simple types to NULL epp_ContactInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_id, --- 43,75 ---- namespace eppobject { namespace contact { + /// Class containing elements used in contact info responses + /// @see epp_GenericRsp for additional information class epp_ContactInfoRsp : public epp::epp_GenericRsp { + public: + 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 */ + eppobject::epp::epp_string_ref m_email; /**< E-mail address of contact */ + epp_contact_status_seq_ref m_status; /**< Status of the contact object */ + eppobject::epp::epp_string_ref m_client_id; /**< Identifier of the sponsoring client */ + eppobject::epp::epp_string_ref m_created_by; /**< Identifier of the client that created the contact */ + eppobject::epp::epp_datetime_ref m_created_date; /**< Date and time of contact object creation */ + eppobject::epp::epp_string_ref m_updated_by; /**< Identifier of the client that last updated the contact */ + eppobject::epp::epp_datetime_ref m_updated_date; /**< Date and time of the most recent object modification */ + eppobject::epp::epp_datetime_ref m_transfer_date; /**< Date and time of the most recent successful object transfer */ + eppobject::epp::epp_AuthInfo_ref m_auth_info; /**< Authorization information associated with contact */ + /// Null constructor epp_ContactInfoRsp() {}; + /// Destructor virtual ~epp_ContactInfoRsp() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string _m_id, *************** *** 97,101 **** }; ! epp_ContactInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_id, --- 107,111 ---- }; ! /// Constructor, using only references epp_ContactInfoRsp(eppobject::epp::epp_Response_ref _m_rsp, eppobject::epp::epp_string_ref _m_id, *************** *** 134,137 **** --- 144,148 ---- }; + /// Typedef for the ref to the epp_ContactInfoRsp class typedef refcnt_ptr<epp_ContactInfoRsp> epp_ContactInfoRsp_ref; Index: epp_ContactPhone.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactPhone.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_ContactPhone.h 22 Feb 2002 15:46:02 -0000 1.4 --- epp_ContactPhone.h 9 Mar 2002 15:48:46 -0000 1.5 *************** *** 38,42 **** namespace eppobject { namespace contact { ! /// Class containing elements used to describe a Contact Telephone/Fax Number class epp_ContactPhone { --- 38,42 ---- namespace eppobject { namespace contact { ! /// Class containing elements used to describe a contact telephone/fax number class epp_ContactPhone { Index: epp_ContactTransferReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactTransferReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactTransferReq.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_ContactTransferReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTTRANSFERREQ_H + /** @file epp_ContactTransferReq.h + * @brief Definition of epp_ContactTransferReq and epp_ContactTransferReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericReq.h" *************** *** 35,49 **** namespace eppobject { namespace contact { class epp_ContactTransferReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_TransferRequest_ref m_trans; ! eppobject::epp::epp_string_ref m_id; epp_ContactTransferReq() {}; virtual ~epp_ContactTransferReq() {} ! // Note: Cannot set simple types to NULL epp_ContactTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, --- 40,59 ---- namespace eppobject { namespace contact { + /// Class containing elements used in contact transfer requests + /// @see epp_GenericReq for additional information class epp_ContactTransferReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_TransferRequest_ref m_trans; /**< Common and generic transfer request element */ ! eppobject::epp::epp_string_ref m_id; /**< Server-unique ID of the contact object to be transferred */ + /// Null constructor epp_ContactTransferReq() {}; + /// Destructor virtual ~epp_ContactTransferReq() {} ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, *************** *** 55,59 **** }; ! epp_ContactTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, --- 65,69 ---- }; ! /// Constructor, using only references epp_ContactTransferReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_TransferRequest_ref _m_trans, *************** *** 66,69 **** --- 76,80 ---- }; + /// Typedef for the ref to the epp_ContactTransferReq class typedef refcnt_ptr<epp_ContactTransferReq> epp_ContactTransferReq_ref; Index: epp_ContactTransferRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactTransferRsp.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_ContactTransferRsp.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_ContactTransferRsp.h 9 Mar 2002 15:48:46 -0000 1.10 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTTRANSFERRSP_H + /** @file epp_ContactTransferRsp.h + * @brief Definition of epp_ContactTransferRsp and epp_ContactTransferRsp_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericRsp.h" *************** *** 35,46 **** namespace eppobject { namespace contact { class epp_ContactTransferRsp : public epp::epp_GenericRsp { public: ! epp_ContactTrnData_ref m_trn_data; epp_ContactTransferRsp() {}; virtual ~epp_ContactTransferRsp() {} epp_ContactTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, epp_ContactTrnData_ref _m_trn_data) --- 40,57 ---- namespace eppobject { namespace contact { + /// Class containing elements used in contact transfer responses + /// @see epp_GenericRsp for additional information class epp_ContactTransferRsp : public epp::epp_GenericRsp { + public: ! epp_ContactTrnData_ref m_trn_data; /**< Transfer element with all information about the transfer */ + /// Null constructor epp_ContactTransferRsp() {}; + /// Destructor virtual ~epp_ContactTransferRsp() {} + /// Constructor, using only references epp_ContactTransferRsp(eppobject::epp::epp_Response_ref _m_rsp, epp_ContactTrnData_ref _m_trn_data) *************** *** 51,54 **** --- 62,66 ---- }; + /// Typedef for the ref to the epp_ContactTransferRsp class typedef refcnt_ptr<epp_ContactTransferRsp> epp_ContactTransferRsp_ref; Index: epp_ContactUpdateAddRemove.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactUpdateAddRemove.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** epp_ContactUpdateAddRemove.h 20 Feb 2002 17:26:02 -0000 1.5 --- epp_ContactUpdateAddRemove.h 9 Mar 2002 15:48:46 -0000 1.6 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTUPDATEADDREMOVE_H + /** @file epp_ContactUpdateAddRemove.h + * @brief Definition of epp_ContactUpdateAddRemove and epp_ContactUpdateAddRemove_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_ContactStatus.h" *************** *** 34,45 **** namespace eppobject { namespace contact { class epp_ContactUpdateAddRemove { public: ! epp_contact_status_seq_ref m_status; epp_ContactUpdateAddRemove() {}; virtual ~epp_ContactUpdateAddRemove() {}; epp_ContactUpdateAddRemove(epp_contact_status_seq_ref _m_status) { --- 39,55 ---- namespace eppobject { namespace contact { + /// Class containing elements used in add/remove part of contact update requests class epp_ContactUpdateAddRemove { + public: ! epp_contact_status_seq_ref m_status; /**< Status of the contact object */ + /// Null constructor epp_ContactUpdateAddRemove() {}; + /// Destructor virtual ~epp_ContactUpdateAddRemove() {}; + /// Constructor, using only references epp_ContactUpdateAddRemove(epp_contact_status_seq_ref _m_status) { *************** *** 48,51 **** --- 58,62 ---- }; + /// Typedef for the ref to the epp_ContactUpdateAddRemove class typedef refcnt_ptr<epp_ContactUpdateAddRemove> epp_ContactUpdateAddRemove_ref; Index: epp_ContactUpdateChange.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactUpdateChange.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_ContactUpdateChange.h 20 Feb 2002 17:26:02 -0000 1.7 --- epp_ContactUpdateChange.h 9 Mar 2002 15:48:46 -0000 1.8 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTUPDATECHANGE_H + /** @file epp_ContactUpdateChange.h + * @brief Definition of epp_ContactUpdateChange and epp_ContactUpdateChange_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_ContactNameAddress.h" *************** *** 36,54 **** namespace eppobject { namespace contact { class epp_ContactUpdateChange { - public: ! epp_ContactNameAddress_ref m_ascii_address; ! epp_ContactNameAddress_ref m_i15d_address; ! epp_ContactPhone_ref m_voice; ! epp_ContactPhone_ref m_fax; ! eppobject::epp::epp_string_ref m_email; ! eppobject::epp::epp_AuthInfo_ref m_auth_info; epp_ContactUpdateChange() {}; virtual ~epp_ContactUpdateChange() {}; ! // Note: Cannot set simple types to NULL epp_ContactUpdateChange(epp_ContactNameAddress_ref _m_ascii_address, epp_ContactNameAddress_ref _m_i15d_address, --- 41,63 ---- namespace eppobject { namespace contact { + /// Class containing elements used in the change part of contact update requests class epp_ContactUpdateChange { ! 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 */ ! eppobject::epp::epp_string_ref m_email; /**< E-mail address of contact */ ! eppobject::epp::epp_AuthInfo_ref m_auth_info; /**< Authorization information to be associated with contact */ + /// Null constructor epp_ContactUpdateChange() {}; + /// Destructor virtual ~epp_ContactUpdateChange() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactUpdateChange(epp_ContactNameAddress_ref _m_ascii_address, epp_ContactNameAddress_ref _m_i15d_address, *************** *** 66,70 **** }; ! epp_ContactUpdateChange(epp_ContactNameAddress_ref _m_ascii_address, epp_ContactNameAddress_ref _m_i15d_address, --- 75,79 ---- }; ! /// Constructor, using only references epp_ContactUpdateChange(epp_ContactNameAddress_ref _m_ascii_address, epp_ContactNameAddress_ref _m_i15d_address, *************** *** 82,86 **** }; }; ! typedef refcnt_ptr<epp_ContactUpdateChange> epp_ContactUpdateChange_ref; --- 91,96 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactUpdateChange class typedef refcnt_ptr<epp_ContactUpdateChange> epp_ContactUpdateChange_ref; Index: epp_ContactUpdateReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactUpdateReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactUpdateReq.h 21 Feb 2002 14:06:03 -0000 1.8 --- epp_ContactUpdateReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 29,32 **** --- 29,37 ---- #define __EPP_CONTACTUPDATEREQ_H + /** @file epp_ContactUpdateReq.h + * @brief Definition of epp_ContactUpdateReq and epp_ContactUpdateReq_ref + * @author Asbjorn Steira Mikkelsen + */ + #include "epp_contactdata.h" #include "epp_GenericReq.h" *************** *** 36,52 **** namespace eppobject { namespace contact { class epp_ContactUpdateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; ! epp_ContactUpdateAddRemove_ref m_add; ! epp_ContactUpdateAddRemove_ref m_remove; ! epp_ContactUpdateChange_ref m_change; epp_ContactUpdateReq() {}; virtual ~epp_ContactUpdateReq() {}; ! // Note: Cannot set simple types to NULL epp_ContactUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id, --- 41,62 ---- namespace eppobject { namespace contact { + /// Class containing elements used in contact update requests + /// @see epp_GenericReq for additional information class epp_ContactUpdateReq : public epp::epp_GenericReq { public: ! eppobject::epp::epp_string_ref m_id; /**< Server-unique ID of the contact object to be updated */ ! epp_ContactUpdateAddRemove_ref m_add; /**< Attribute values to be added to the object */ ! epp_ContactUpdateAddRemove_ref m_remove; /**< Attribute values to be removed from the object */ ! epp_ContactUpdateChange_ref m_change; /**< Object attribute values to be changed */ + /// Null constructor epp_ContactUpdateReq() {}; + /// Destructor virtual ~epp_ContactUpdateReq() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_ContactUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string _m_id, *************** *** 62,66 **** }; ! epp_ContactUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id, --- 72,76 ---- }; ! /// Constructor, using only references epp_ContactUpdateReq(eppobject::epp::epp_Command_ref _m_cmd, eppobject::epp::epp_string_ref _m_id, *************** *** 76,80 **** }; }; ! typedef refcnt_ptr<epp_ContactUpdateReq> epp_ContactUpdateReq_ref; --- 86,91 ---- }; }; ! ! /// Typedef for the ref to the epp_ContactUpdateReq class typedef refcnt_ptr<epp_ContactUpdateReq> epp_ContactUpdateReq_ref; Index: epp_ContactUpdateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactUpdateRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_ContactUpdateRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_ContactUpdateRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 38,42 **** namespace eppobject { namespace contact { ! /// Class containing all elements used in contact update responses /// @see epp_GenericRsp for additional information class epp_ContactUpdateRsp : public epp::epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace contact { ! /// Class containing elements used in contact update responses /// @see epp_GenericRsp for additional information class epp_ContactUpdateRsp : public epp::epp_GenericRsp { Index: epp_ContactVoice.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_ContactVoice.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** epp_ContactVoice.h 8 Mar 2002 11:41:27 -0000 1.10 --- epp_ContactVoice.h 9 Mar 2002 15:48:46 -0000 1.11 *************** *** 32,36 **** * @brief Deprecated! Definition of epp_ContactVoice and epp_ContactVoice_ref * @author Asbjorn Steira Mikkelsen ! * @deprecated From IDL 04/02 replaced by epp_ContactPhone.h */ --- 32,36 ---- * @brief Deprecated! Definition of epp_ContactVoice and epp_ContactVoice_ref * @author Asbjorn Steira Mikkelsen ! * @deprecated Replaced by epp_ContactPhone.h from IDL 04/02 */ *************** *** 39,43 **** namespace eppobject { namespace contact { ! /// Deprecated! Replaced by epp_ContactPhone class epp_ContactVoice { --- 39,44 ---- namespace eppobject { namespace contact { ! /// Class containing elements used to describe a contact telephone number ! /// @deprecated Replaced by epp_ContactPhone from IDL 04/02 class epp_ContactVoice { Index: epp_Credentials.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Credentials.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Credentials.h 22 Feb 2002 15:46:02 -0000 1.6 --- epp_Credentials.h 9 Mar 2002 15:48:46 -0000 1.7 *************** *** 80,84 **** }; ! /// Typedef for the ref to the epp_Options class typedef refcnt_ptr<epp_Credentials> epp_Credentials_ref; --- 80,84 ---- }; ! /// Typedef for the ref to the epp_Credentials class typedef refcnt_ptr<epp_Credentials> epp_Credentials_ref; Index: epp_DomainCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCheckReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainCheckReq.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_DomainCheckReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace domain { ! /// Class containing all elements used in domain check requests /// @see epp_GenericReq for additional information class epp_DomainCheckReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace domain { ! /// Class containing elements used in domain check requests /// @see epp_GenericReq for additional information class epp_DomainCheckReq : public epp::epp_GenericReq { Index: epp_DomainCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainCheckRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_DomainCheckRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace domain { ! /// Class containing all elements used in domain check responses /// @see epp_GenericCheckRsp for additional information class epp_DomainCheckRsp : public epp::epp_GenericCheckRsp { --- 39,43 ---- namespace eppobject { namespace domain { ! /// Class containing elements used in domain check responses /// @see epp_GenericCheckRsp for additional information class epp_DomainCheckRsp : public epp::epp_GenericCheckRsp { Index: epp_DomainDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainDeleteReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainDeleteReq.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_DomainDeleteReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace domain { ! /// Class containing all elements used in domain delete requests /// @see epp_GenericReq for additional information class epp_DomainDeleteReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace domain { ! /// Class containing elements used in domain delete requests /// @see epp_GenericReq for additional information class epp_DomainDeleteReq : public epp::epp_GenericReq { Index: epp_DomainDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainDeleteRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainDeleteRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_DomainDeleteRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 38,42 **** namespace eppobject { namespace domain { ! /// Class containing all elements used in domain delete responses /// @see epp_GenericRsp for additional information class epp_DomainDeleteRsp : public epp::epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace domain { ! /// Class containing elements used in domain delete responses /// @see epp_GenericRsp for additional information class epp_DomainDeleteRsp : public epp::epp_GenericRsp { Index: epp_DomainInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainInfoReq.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_DomainInfoReq.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_DomainInfoReq.h 9 Mar 2002 15:48:46 -0000 1.10 *************** *** 39,43 **** namespace eppobject { namespace domain { ! /// Class containing all elements used in domain info requests /// @see epp_GenericReq for additional information class epp_DomainInfoReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace domain { ! /// Class containing elements used in domain info requests /// @see epp_GenericReq for additional information class epp_DomainInfoReq : public epp::epp_GenericReq { Index: epp_DomainUpdateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_DomainUpdateRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_DomainUpdateRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_DomainUpdateRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 38,42 **** namespace eppobject { namespace domain { ! /// Class containing all elements used in domain update responses /// @see epp_GenericRsp for additional information class epp_DomainUpdateRsp : public epp::epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace domain { ! /// Class containing elements used in domain update responses /// @see epp_GenericRsp for additional information class epp_DomainUpdateRsp : public epp::epp_GenericRsp { Index: epp_Exception.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Exception.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_Exception.h 8 Mar 2002 11:41:27 -0000 1.6 --- epp_Exception.h 9 Mar 2002 15:48:46 -0000 1.7 *************** *** 67,72 **** /// Returns the error details ! /// @note Kept for backwards compatibility ! /// @deprecated Only returns epp_results_seq_ref. Access data directly instead. virtual epp_result_seq_ref getDetails() { --- 67,71 ---- /// Returns the error details ! /// @deprecated Only returns #epp_result_seq_ref. Access the data directly instead. virtual epp_result_seq_ref getDetails() { Index: epp_HostCheckReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostCheckReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostCheckReq.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_HostCheckReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace host { ! /// Class containing all elements used in host check requests /// @see epp_GenericReq for additional information class epp_HostCheckReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace host { ! /// Class containing elements used in host check requests /// @see epp_GenericReq for additional information class epp_HostCheckReq : public epp::epp_GenericReq { Index: epp_HostCheckRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostCheckRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostCheckRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_HostCheckRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace host { ! /// Class containing all elements used in host check responses /// @see epp_GenericCheckRsp for additional information class epp_HostCheckRsp : public epp::epp_GenericCheckRsp { --- 39,43 ---- namespace eppobject { namespace host { ! /// Class containing elements used in host check responses /// @see epp_GenericCheckRsp for additional information class epp_HostCheckRsp : public epp::epp_GenericCheckRsp { Index: epp_HostDeleteReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostDeleteReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostDeleteReq.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_HostDeleteReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace host { ! /// Class containing all elements used in host delete requests /// @see epp_GenericReq for additional information class epp_HostDeleteReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace host { ! /// Class containing elements used in host delete requests /// @see epp_GenericReq for additional information class epp_HostDeleteReq : public epp::epp_GenericReq { Index: epp_HostDeleteRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostDeleteRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostDeleteRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_HostDeleteRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 38,42 **** namespace eppobject { namespace host { ! /// Class containing all elements used in host delete responses /// @see epp_GenericRsp for additional information class epp_HostDeleteRsp : public epp::epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace host { ! /// Class containing elements used in host delete responses /// @see epp_GenericRsp for additional information class epp_HostDeleteRsp : public epp::epp_GenericRsp { Index: epp_HostInfoReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostInfoReq.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostInfoReq.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_HostInfoReq.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 39,43 **** namespace eppobject { namespace host { ! /// Class containing all elements used in host info requests /// @see epp_GenericReq for additional information class epp_HostInfoReq : public epp::epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace host { ! /// Class containing elements used in host info requests /// @see epp_GenericReq for additional information class epp_HostInfoReq : public epp::epp_GenericReq { Index: epp_HostUpdateRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_HostUpdateRsp.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_HostUpdateRsp.h 22 Feb 2002 17:14:14 -0000 1.8 --- epp_HostUpdateRsp.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 38,42 **** namespace eppobject { namespace host { ! /// Class containing all elements used in host update responses /// @see epp_GenericRsp for additional information class epp_HostUpdateRsp : public epp::epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace host { ! /// Class containing elements used in host update responses /// @see epp_GenericRsp for additional information class epp_HostUpdateRsp : public epp::epp_GenericRsp { Index: epp_LoginReq.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_LoginReq.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_LoginReq.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_LoginReq.h 9 Mar 2002 15:48:46 -0000 1.10 *************** *** 39,43 **** namespace eppobject { namespace epp { ! /// Class containing all elements used in login requests /// @see epp_GenericReq for additional information class epp_LoginReq : public epp_GenericReq { --- 39,43 ---- namespace eppobject { namespace epp { ! /// Class containing elements used in login requests /// @see epp_GenericReq for additional information class epp_LoginReq : public epp_GenericReq { Index: epp_LoginRsp.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_LoginRsp.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_LoginRsp.h 22 Feb 2002 17:14:14 -0000 1.7 --- epp_LoginRsp.h 9 Mar 2002 15:48:46 -0000 1.8 *************** *** 38,42 **** namespace eppobject { namespace epp { ! /// Class containing all elements used in login responses /// @see epp_GenericRsp for additional information class epp_LoginRsp : public epp_GenericRsp { --- 38,42 ---- namespace eppobject { namespace epp { ! /// Class containing elements used in login responses /// @see epp_GenericRsp for additional information class epp_LoginRsp : public epp_GenericRsp { Index: epp_PollContactTransfer.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollContactTransfer.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** epp_PollContactTransfer.h 8 Mar 2002 11:41:27 -0000 1.4 --- epp_PollContactTransfer.h 9 Mar 2002 15:48:46 -0000 1.5 *************** *** 29,32 **** --- 29,38 ---- #define __EPP_POLLCONTACTTRANSFER_H + /** @file epp_PollContactTransfer.h + * @brief Deprecated! Definition of epp_PollContactTransfer and epp_PollContactTransfer_ref + * @author Asbjorn Steira Mikkelsen + * @deprecated Replaced by epp_ContactTrnData.h from EPP 04/02, IDL 05/03 + */ + #include "epp_eppdata.h" #include "epp_AuthInfo.h" *************** *** 34,49 **** namespace eppobject { namespace epp { ! // deprecated class epp_PollContactTransfer { - public: ! epp_string_ref m_contact_id; ! epp_AuthInfo_ref m_auth_info; epp_PollContactTransfer() {}; virtual ~epp_PollContactTransfer() {}; ! // Note: Cannot set simple types to NULL epp_PollContactTransfer(epp_string _m_contact_id, epp_AuthInfo_ref _m_auth_info) --- 40,59 ---- namespace eppobject { namespace epp { ! /// Class containing elements used in poll responses to describe a contact transfer ! /// @deprecated Replaced by eppobject::contact::epp_ContactTrnData from EPP 04/02, IDL 05/03 class epp_PollContactTransfer { ! public: ! epp_string_ref m_contact_id; /**< Server-unique ID of the contact object requested for transfer */ ! epp_AuthInfo_ref m_auth_info; /**< Authorization information associated with contact */ + /// Null constructor epp_PollContactTransfer() {}; + /// Destructor virtual ~epp_PollContactTransfer() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_PollContactTransfer(epp_string _m_contact_id, epp_AuthInfo_ref _m_auth_info) *************** *** 53,56 **** --- 63,67 ---- }; + /// Constructor, using only references epp_PollContactTransfer(epp_string_ref _m_contact_id, epp_AuthInfo_ref _m_auth_info) *************** *** 61,65 **** }; ! typedef refcnt_ptr<epp_PollContactTransfer> epp_PollContactTransfer_ref; --- 72,77 ---- }; ! ! /// Typedef for the ref to the epp_PollContactTransfer class typedef refcnt_ptr<epp_PollContactTransfer> epp_PollContactTransfer_ref; Index: epp_PollDomainTransfer.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollDomainTransfer.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** epp_PollDomainTransfer.h 8 Mar 2002 11:41:27 -0000 1.6 --- epp_PollDomainTransfer.h 9 Mar 2002 15:48:46 -0000 1.7 *************** *** 29,32 **** --- 29,38 ---- #define __EPP_POLLDOMAINTRANSFER_H + /** @file epp_PollDomainTransfer.h + * @brief Deprecated! Definition of epp_PollDomainTransfer and epp_PollDomainTransfer_ref + * @author Asbjorn Steira Mikkelsen + * @deprecated Replaced by epp_DomainTrnData.h from EPP 04/02, IDL 05/03 + */ + #include "epp_eppdata.h" #include "epp_AuthInfo.h" *************** *** 34,49 **** namespace eppobject { namespace epp { ! // Deprecated class epp_PollDomainTransfer { - public: ! epp_string_ref m_domain_name; ! epp_AuthInfo_ref m_auth_info; epp_PollDomainTransfer() {}; virtual ~epp_PollDomainTransfer() {}; ! // Note: Cannot set simple types to NULL epp_PollDomainTransfer(epp_string _m_domain_name, epp_AuthInfo_ref _m_auth_info) --- 40,59 ---- namespace eppobject { namespace epp { ! /// Class containing elements used in poll responses to describe a domain transfer ! /// @deprecated Replaced by eppobject::domain::epp_DomainTrnData from EPP 04/02, IDL 05/03 class epp_PollDomainTransfer { ! public: ! epp_string_ref m_domain_name; /**< Fully qualified name of the domain object requested for transfer */ ! epp_AuthInfo_ref m_auth_info; /**< Authorization information associated with domain */ + /// Null constructor epp_PollDomainTransfer() {}; + /// Destructor virtual ~epp_PollDomainTransfer() {}; ! /// Constructor, using simple types when it can ! /// @note Cannot set simple types to NULL epp_PollDomainTransfer(epp_string _m_domain_name, epp_AuthInfo_ref _m_auth_info) *************** *** 53,57 **** }; ! epp_PollDomainTransfer(epp_string_ref _m_domain_name, epp_AuthInfo_ref _m_auth_info) --- 63,67 ---- }; ! /// Constructor, using only references epp_PollDomainTransfer(epp_string_ref _m_domain_name, epp_AuthInfo_ref _m_auth_info) *************** *** 62,65 **** --- 72,76 ---- }; + /// Typedef for the ref to the epp_PollContactTransfer class typedef refcnt_ptr<epp_PollDomainTransfer> epp_PollDomainTransfer_ref; Index: epp_PollResDataUnion.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_PollResDataUnion.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** epp_PollResDataUnion.h 8 Mar 2002 11:41:27 -0000 1.7 --- epp_PollResDataUnion.h 9 Mar 2002 15:48:46 -0000 1.8 *************** *** 29,32 **** --- 29,38 ---- #define __EPP_POLLRESDATAUNION_H + /** @file epp_PollResDataUnion.h + * @brief Deprecated! Definition of epp_PollResDataUnion and epp_PollResDataUnion_ref + * @author Asbjorn Steira Mikkelsen + * @deprecated Functionality replaced by epp_PollResFactory.h from IDL 05/03 + */ + #include "epp_eppdata.h" #include "epp_DomainTrnData.h" *************** *** 37,49 **** namespace eppobject { namespace epp { ! // Deprecated class epp_PollResDataUnion { private: ! epp_PollResDataType_ref _disc; ! epp_DomainTrnData_ref _m_domain_transfer; ! epp_ContactTrnData_ref _m_contact_transfer; public: void _d(const epp_PollResDataType & discriminant) { --- 43,82 ---- namespace eppobject { namespace epp { ! /// Class containing the actual poll response data object ! /// @deprecated Functionality replaced by epp_PollResFactory from IDL 05/03 class epp_PollResDataUnion { + private: ! epp_PollResDataType_ref _disc; /**< Type of poll response data object */ ! epp_DomainTrnData_ref _m_domain_transfer; /**< Domain transfer poll object */ ! epp_ContactTrnData_ref _m_contact_transfer; /**< Contact transfer poll object */ public: + /// Null constructor + epp_PollResDataUnion() {}; + + /// Destructor + virtual ~epp_PollResDataUnion() {}; + + /// Copy constructor + epp_PollResDataUnion(const epp_PollResDataUnion & u) + { + switch(u._d()) { + case DOMAIN_TRANSFER: + _m_domain_transfer = u.m_domain_transfer(); + break; + case CONTACT_TRANSFER: + _m_contact_transfer = u.m_contact_transfer(); + break; + default: + break; + } + _disc = u._d(); + } + + /** Function to set the type of poll response data object + * @param discriminant The poll response data object type + */ void _d(const epp_PollResDataType & discriminant) { *************** *** 51,78 **** } epp_PollResDataType _d() const { ! if(_disc == NULL) ! { ! throw epp_XMLException("epp_PollResDataUnion is not initialized"); ! } return *_disc; } epp_DomainTrnData_ref m_domain_transfer() const { ! if(_disc == NULL) ! { ! throw epp_XMLException("epp_PollResDataUnion is not initialized"); ! } ! if(*_disc != DOMAIN_TRANSFER) ! { ! throw epp_XMLException("epp_PollResDataUnion is not of type DOMAIN_TRANSFER"); ! } return _m_domain_transfer; ! } void m_domain_transfer(const epp_DomainTrnData_ref & param) { --- 84,120 ---- } + /** Function to return the type of poll response data object + * @return The poll response data object type + * @throw epp_XMLException If the object type has not been initialized + */ epp_PollResDataType _d() const { ! if(_disc == NULL) { ! throw epp_XMLException("epp_PollResDataUnion is not initialized"); ! } return *_disc; } + /** Function to return the domain transfer poll object + * @return The domain transfer poll object + * @throw epp_XMLException If the object type has not been initialized + * or is of the wrong type + */ epp_DomainTrnData_ref m_domain_transfer() const { ! if(_disc == NULL) { ! throw epp_XMLException("epp_PollResDataUnion is not initialized"); ! } ! if(*_disc != DOMAIN_TRANSFER) { ! throw epp_XMLException("epp_PollResDataUnion is not of type DOMAIN_TRANSFER"); ! } return _m_domain_transfer; ! } + /** Function to set the domain transfer poll object + * @param param Domain transfer poll object + */ void m_domain_transfer(const epp_DomainTrnData_ref & param) { *************** *** 81,99 **** } epp_ContactTrnData_ref m_contact_transfer() const { ! if(_disc == NULL) ! { ! throw epp_XMLException("epp_PollResDataUnion is not initialized"); ! } ! if(*_disc != CONTACT_TRANSFER) ! { ! throw epp_XMLException("epp_PollResDataUnion is not of type CONTACT_TRANSFER"); ! } return _m_contact_transfer; } void m_contact_transfer(const epp_ContactTrnData_ref & param) { --- 123,147 ---- } + /** Function to return the contact transfer poll object + * @return The contact transfer poll object + * @throw epp_XMLException If the object type has not been initialized + * or is of the wrong type + */ epp_ContactTrnData_ref m_contact_transfer() const { ! if(_disc == NULL) { ! throw epp_XMLException("epp_PollResDataUnion is not initialized"); ! } ! if(*_disc != CONTACT_TRANSFER) { ! throw epp_XMLException("epp_PollResDataUnion is not of type CONTACT_TRANSFER"); ! } return _m_contact_transfer; } + /** Function to set the contact transfer poll object + * @param param The contact transfer poll object + */ void m_contact_transfer(const epp_ContactTrnData_ref & param) { *************** *** 102,126 **** } - epp_PollResDataUnion() {}; - - epp_PollResDataUnion(const epp_PollResDataUnion & u) { - switch(u._d()) { - case DOMAIN_TRANSFER: - _m_domain_transfer = u.m_domain_transfer(); - break; - case CONTACT_TRANSFER: - _m_contact_transfer = u.m_contact_transfer(); - break; - default: - break; - } - - _disc = u._d(); - } - - virtual ~epp_PollResDataUnion() {}; - }; ! typedef refcnt_ptr<epp_PollResDataUnion> epp_PollResDataUnion_ref; --- 150,156 ---- } }; ! ! /// Typedef for the ref to the epp_PollResDataUnion class typedef refcnt_ptr<epp_PollResDataUnion> epp_PollResDataUnion_ref; Index: epp_Result.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Result.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** epp_Result.h 8 Mar 2002 11:41:27 -0000 1.8 --- epp_Result.h 9 Mar 2002 15:48:46 -0000 1.9 *************** *** 50,54 **** epp_string_ref m_lang; /**< Language of the human-readable response (iso639) */ epp_string_ref m_id; /**< ID to uniquely identify the message returned (used for the Poll command) */ ! epp_ResultData_ref m_data; /** Used to return information in response to a <status> command */ /// Null constructor --- 50,54 ---- epp_string_ref m_lang; /**< Language of the human-readable response (iso639) */ epp_string_ref m_id; /**< ID to uniquely identify the message returned (used for the Poll command) */ ! epp_ResultData_ref m_data; /**< Used to return information in response to a <status> command */ /// Null constructor Index: epp_Service.h =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/data/epp_Service.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** epp_Service.h 8 Mar 2002 11:41:27 -0000 1.9 --- epp_Service.h 9 Mar 2002 15:48:46 -0000 1.10 *************** *** 32,36 **** * @brief Deprecated! Definition of epp_Service and epp_Service_ref * @author Asbjorn Steira Mikkelsen ! * @deprecated From EPP/IDL 05/03 just a string of the URI of the services */ --- 32,36 ---- * @brief Deprecated! Definition of epp_Service and epp_Servi... [truncated message content] |
From: Asbjorn M. <ste...@us...> - 2002-03-09 11:58:05
|
Update of /cvsroot/epp-rtk/epp-rtk/c++/src In directory usw-pr-cvs1:/tmp/cvs-serv2905 Modified Files: main_hello.cc main_login.cc main_poll.cc testTools.cc Log Message: -Added ifdef's to testLogin to handle automatic testing better -Some whitespace-changes Index: main_hello.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_hello.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** main_hello.cc 8 Mar 2002 12:11:51 -0000 1.6 --- main_hello.cc 9 Mar 2002 11:58:01 -0000 1.7 *************** *** 206,219 **** epp_Hello_ref l_obj(new epp_Hello()); - - epp_Greeting_ref myGr = test.connectAndGetGreeting(); test.processAction(l_obj); epp_Greeting_ref l_rsp = l_obj->getResponseData(); ! #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; --- 206,219 ---- epp_Hello_ref l_obj(new epp_Hello()); + epp_Greeting_ref myGr = test.connectAndGetGreeting(); + test.processAction(l_obj); epp_Greeting_ref l_rsp = l_obj->getResponseData(); ! #ifndef TEST_IO_REQUEST2CERR printRsp(l_rsp); ! #endif return 0; Index: main_login.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_login.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main_login.cc 8 Mar 2002 12:11:51 -0000 1.7 --- main_login.cc 9 Mar 2002 11:58:01 -0000 1.8 *************** *** 92,96 **** l_obj->setRequestData(*l_req); ! test.connectAndGetGreeting(); --- 92,96 ---- l_obj->setRequestData(*l_req); ! test.connectAndGetGreeting(); *************** *** 100,105 **** #ifndef TEST_IO_REQUEST2CERR ! printRsp(l_rsp); ! #endif return 0; --- 100,105 ---- #ifndef TEST_IO_REQUEST2CERR ! printRsp(l_rsp); ! #endif return 0; Index: main_poll.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/main_poll.cc,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** main_poll.cc 8 Mar 2002 12:11:51 -0000 1.7 --- main_poll.cc 9 Mar 2002 11:58:01 -0000 1.8 *************** *** 158,162 **** printRsp(l_rsp); #endif ! cout << "\n----------------------------------\n"; --- 158,162 ---- printRsp(l_rsp); #endif ! cout << "\n----------------------------------\n"; Index: testTools.cc =================================================================== RCS file: /cvsroot/epp-rtk/epp-rtk/c++/src/testTools.cc,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** testTools.cc 8 Mar 2002 12:11:51 -0000 1.6 --- testTools.cc 9 Mar 2002 11:58:01 -0000 1.7 *************** *** 280,293 **** void testLogIn(epp_Session & mySession, const string & username, const string & password) { ! #ifdef TEST_IO_REQUEST2CERR ! return; ! #endif ! ! #ifdef TEST_IO_RESULT2CERR ! return; #endif - try { // Filling Login-object: --- 280,294 ---- void testLogIn(epp_Session & mySession, const string & username, const string & password) { + + #if MYTRANSPORT==TRANSPORT_IOSTREAM + #ifdef TEST_IO_REQUEST2CERR + return; + #endif ! #ifdef TEST_IO_RESULT2CERR ! return; ! #endif #endif try { // Filling Login-object: *************** *** 324,329 **** // Print response: printResponsePart(l_rsp->m_rsp); ! } catch(...) { --- 325,331 ---- // Print response: + #if MYTRANSPORT==TRANSPORT_IOSTREAM printResponsePart(l_rsp->m_rsp); ! #endif } catch(...) { |