diff options
Diffstat (limited to 'qpid/cpp/managementgen/qmfgen/templates/Event.cpp')
-rw-r--r-- | qpid/cpp/managementgen/qmfgen/templates/Event.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/qpid/cpp/managementgen/qmfgen/templates/Event.cpp b/qpid/cpp/managementgen/qmfgen/templates/Event.cpp index 0289d678ef..dea02fd545 100644 --- a/qpid/cpp/managementgen/qmfgen/templates/Event.cpp +++ b/qpid/cpp/managementgen/qmfgen/templates/Event.cpp @@ -58,9 +58,9 @@ void Event/*MGEN:Event.NameCap*/::registerSelf(ManagementAgent* agent) void Event/*MGEN:Event.NameCap*/::writeSchema (std::string& schema) { -#define BUFSIZE 65536 - char _msgChars[BUFSIZE]; - ::qpid::framing::Buffer buf(_msgChars, BUFSIZE); + const int _bufSize = 65536; + char _msgChars[_bufSize]; + ::qpid::framing::Buffer buf(_msgChars, _bufSize); ::qpid::framing::FieldTable ft; // Schema class header: @@ -80,6 +80,20 @@ void Event/*MGEN:Event.NameCap*/::writeSchema (std::string& schema) } } +void Event/*MGEN:Event.NameCap*/::encode(std::string& _sBuf) const +{ + const int _bufSize=65536; + char _msgChars[_bufSize]; + ::qpid::framing::Buffer buf(_msgChars, _bufSize); + +/*MGEN:Event.ArgEncodes*/ + + uint32_t _bufLen = buf.getPosition(); + buf.reset(); + + buf.getRawData(_sBuf, _bufLen); +} + void Event/*MGEN:Event.NameCap*/::mapEncode(::qpid::messaging::VariantMap& map) const { using namespace ::qpid::messaging; |