DRDE/ACTK1_0/se/ACProxyCommand.hpp

45 lines
1.3 KiB
C++
Raw Permalink Normal View History

2014-01-24 22:23:30 +00:00
#ifndef __PROTOCOLEXTENSIONCOMMAND_HPP
#define __PROTOCOLEXTENSIONCOMMAND_HPP
#include "se/SendSE.hpp"
#include "se/CommandType.hpp"
#include "se/ObjectType.hpp"
#include "se/Extension.hpp"
#include "xml/XStr.hpp"
#include <xercesc/dom/DOMElement.hpp>
/**
* Base class for AusReg Cliever protocol extension commands. Instances of this
* class are responsible for building the part of the XML DOM tree common to
* all ACTK 1.0 protocol extension commands.
*/
2014-01-28 18:16:48 +00:00
class ACProxyCommandCommand : public SendSE
2014-01-24 22:23:30 +00:00
{
public:
2014-01-28 18:16:48 +00:00
ACProxyCommandCommand(
2014-01-24 22:23:30 +00:00
const CommandType* commandType,
const ObjectType* objectType,
const std::string& ident,
const Extension& ext);
// We can not use the xmlWriter API until the base class is
// constructed, so we disable the default command element
// creation in the base class initialized for Command and do
// our own construction here.
protected:
DOMElement *command;
DOMElement *cmdElement;
DOMElement *objElement;
const CommandType *cmdType;
const ObjectType *objType;
const Extension& extension;
private:
virtual std::string toXMLImpl();
};
#endif // __PROTOCOLEXTENSIONCOMMAND_HPP