#include <Action.H>
Inheritance diagram for Action:
Public Member Functions | |
virtual | ~Action () |
virtual destructor | |
virtual void | set_xml_template (const string &xml_template)=0 |
Sets the xml template and parses the tags (pure virtual). | |
string | get_xml () |
Returns XML. | |
ActionType | who_am_i () |
Returns Action type. | |
virtual void | set_response (const string &xml_payload, DomParser *parser)=0 |
Pure virtual method to set response from a XML document. | |
Response * | get_response () |
Returns raw pointer to the response. | |
Command * | get_command () |
Returns raw pointer to the command. | |
Protected Member Functions | |
Action (const ActionType &type) | |
Constructor that forces childs to set their types. | |
void | set_xml_template_common (const string &xml_template) |
Sets the xml template and parses the tags (protected). | |
Protected Attributes | |
auto_ptr< Command > | _command |
Generic command. | |
auto_ptr< Response > | _response |
Generic response. | |
ActionType | _type |
Action type. | |
string | _xml |
XML command. |
Action::Action | ( | const ActionType & | type | ) | [inline, protected] |
Command* Action::get_command | ( | ) | [inline] |
Returns raw pointer to the command.
Reimplemented in BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainRenew, BrDomainUpdate, BrOrgCheck, BrOrgCreate, BrOrgInfo, BrOrgUpdate, ContactCheck, ContactCreate, ContactInfo, ContactUpdate, DomainCheck, DomainCreate, DomainInfo, DomainRenew, DomainUpdate, Login, and Poll.
Response* Action::get_response | ( | ) | [inline] |
Returns raw pointer to the response.
Reimplemented in BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainRenew, BrDomainUpdate, BrOrgCheck, BrOrgInfo, ContactCheck, ContactCreate, ContactInfo, DomainCheck, DomainCreate, DomainInfo, DomainRenew, and Poll.
string Action::get_xml | ( | ) | [inline] |
Returns XML.
virtual void Action::set_response | ( | const string & | xml_payload, | |
DomParser * | parser | |||
) | [pure virtual] |
Pure virtual method to set response from a XML document.
xml_payload | XML document | |
parser | reference to the XML parser |
Implemented in ContactCheck, ContactCreate, ContactInfo, ContactUpdate, DomainCheck, DomainCreate, DomainInfo, DomainRenew, DomainUpdate, Login, Logout, and Poll.
virtual void Action::set_xml_template | ( | const string & | xml_template | ) | [pure virtual] |
Sets the xml template and parses the tags (pure virtual).
xml_template | XML template |
Implemented in BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainUpdate, BrOrgCheck, BrOrgCreate, BrOrgInfo, BrOrgUpdate, ContactCheck, ContactCreate, ContactInfo, ContactUpdate, DomainCheck, DomainCreate, DomainInfo, DomainRenew, DomainUpdate, Login, Logout, and Poll.
void Action::set_xml_template_common | ( | const string & | xml_template | ) | [inline, protected] |
Sets the xml template and parses the tags (protected).
xml_template | XML template |
ActionType Action::who_am_i | ( | ) | [inline] |