21 #ifndef _QPID_CONSOLE_PACKAGE_H_
22 #define _QPID_CONSOLE_PACKAGE_H_
39 Package(
const std::string& n) : name(n) {}
40 const std::string&
getName()
const {
return name; }
47 NameHash(
const std::string& n,
const uint8_t* h) : name(n) {
48 for (
int i = 0; i < 16; i++)
54 bool operator() (
const NameHash& lhs,
const NameHash& rhs)
const
56 if (lhs.name != rhs.name)
57 return lhs.name < rhs.name;
59 for (
int i = 0; i < 16; i++)
60 if (lhs.hash[i] != rhs.hash[i])
61 return lhs.hash[i] < rhs.hash[i];
66 typedef std::map<NameHash, SchemaClass*, NameHashComp> ClassMap;
68 const std::string name;
71 SchemaClass* getClass(
const std::string& className,
uint8_t* hash);
72 void addClass(
const std::string& className,
uint8_t* hash,
73 SchemaClass* schemaClass);
Package(const std::string &n)
const std::string & getName() const
This file was automatically generated from the AMQP specification.