diff options
author | Nuno Santos <nsantos@apache.org> | 2008-03-25 20:30:01 +0000 |
---|---|---|
committer | Nuno Santos <nsantos@apache.org> | 2008-03-25 20:30:01 +0000 |
commit | aefbf926e26e61460a5a11533361a8da9c11bb9c (patch) | |
tree | 3971bd2ad4ae9108b0b20239bf08020e9753b4ce /cpp/managementgen/templates | |
parent | 5444def1a124b7ef609ad2a585d333a4654c736a (diff) | |
download | qpid-python-aefbf926e26e61460a5a11533361a8da9c11bb9c.tar.gz |
QPID-877: applied patch from Ted Ross
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@640970 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/managementgen/templates')
-rw-r--r-- | cpp/managementgen/templates/Class.cpp | 5 | ||||
-rw-r--r-- | cpp/managementgen/templates/Class.h | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/cpp/managementgen/templates/Class.cpp b/cpp/managementgen/templates/Class.cpp index 2a3f71e262..3c3dfff5a2 100644 --- a/cpp/managementgen/templates/Class.cpp +++ b/cpp/managementgen/templates/Class.cpp @@ -106,11 +106,12 @@ void /*MGEN:Class.NameCap*/::writeConfig (Buffer& buf) /*MGEN:Class.WriteConfig*/ } -void /*MGEN:Class.NameCap*/::writeInstrumentation (Buffer& buf) +void /*MGEN:Class.NameCap*/::writeInstrumentation (Buffer& buf, bool skipHeaders) { instChanged = false; - writeTimestamps (buf); + if (!skipHeaders) + writeTimestamps (buf); /*MGEN:Class.WriteInst*/ // Maintenance of hi-lo statistics diff --git a/cpp/managementgen/templates/Class.h b/cpp/managementgen/templates/Class.h index 82fac00d47..047d7cc950 100644 --- a/cpp/managementgen/templates/Class.h +++ b/cpp/managementgen/templates/Class.h @@ -25,8 +25,9 @@ #include "qpid/sys/Mutex.h" #include "qpid/management/ManagementObject.h" +#include "qpid/framing/Uuid.h" -namespace qpid { +namespace qpid { namespace management { class /*MGEN:Class.NameCap*/ : public ManagementObject @@ -45,7 +46,8 @@ class /*MGEN:Class.NameCap*/ : public ManagementObject // Private Methods static void writeSchema (qpid::framing::Buffer& buf); void writeConfig (qpid::framing::Buffer& buf); - void writeInstrumentation (qpid::framing::Buffer& buf); + void writeInstrumentation (qpid::framing::Buffer& buf, + bool skipHeaders = false); void doMethod (std::string methodName, qpid::framing::Buffer& inBuf, qpid::framing::Buffer& outBuf); |