DRDE/ACTK1_0/se/ACExtensionCommand.hpp

45 lines
1.3 KiB
C++
Raw 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.
*/
class ACExtensionCommand : public SendSE
{
public:
ACExtensionCommand(
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