From 3cfbdf0e60c94733c0a79e94bdf8627afc6bb2a4 Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 21 Sep 2010 21:48:41 +0000 Subject: QMFv2 Additions: - QMFv2 schema encoding completed - Schema queries handled by the agent and initiated by the console by user request - Full query support with predicates evaluated on the agent (regex not yet implemented) - Agent filtering in the console - Agent aging in the console - Unit tests git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@999662 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qmf/SchemaIdImpl.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpp/src/qmf/SchemaIdImpl.h') diff --git a/cpp/src/qmf/SchemaIdImpl.h b/cpp/src/qmf/SchemaIdImpl.h index df3cc076b9..ae1a3d8d3b 100644 --- a/cpp/src/qmf/SchemaIdImpl.h +++ b/cpp/src/qmf/SchemaIdImpl.h @@ -69,6 +69,15 @@ namespace qmf { return lhs.getHash() < rhs.getHash(); } }; + + struct SchemaIdCompareNoHash { + bool operator() (const SchemaId& lhs, const SchemaId& rhs) const + { + if (lhs.getName() != rhs.getName()) + return lhs.getName() < rhs.getName(); + return lhs.getPackageName() < rhs.getPackageName(); + } + }; } #endif -- cgit v1.2.1