|
#ifndef OutgoingXMLPacket__INCLUDED
#define OutgoingXMLPacket__INCLUDED
#pragma once
#include "Symbols.h"
#include "xmlParser.h"
class XMLPROTOCOL_API OutgoingXMLPacket : public PushFramework::OutgoingPacket
{
public:
OutgoingXMLPacket(unsigned int uCommandID);
virtual ~OutgoingXMLPacket();
void setArgumentAsText(char* argName, const char* sArgVal);
void setArgumentAsInt(char* argName, int iArgVal);
void setArgumentAsBool(char* argName, bool bArgVal);
virtual bool Encode();
virtual unsigned int getBufferLen();
virtual char* getBuffer();
unsigned int getRequestId();
virtual bool ConstructXML() = 0;
XMLNode getOutputXML();
virtual void* CreateInstance() = 0;
private:
unsigned int uCommandID;
XMLNode xRoot;
bool bEncoded;
char* pEncodedString;
unsigned int uBufferSize;
};
#endif // OutgoingXMLPacket__INCLUDED
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.