23 #include <drizzled/enum.h>
25 #include <drizzled/util/data_ref.h>
33 #include <boost/algorithm/string.hpp>
36 namespace identifier {
43 bool compare(
const std::string &arg)
const;
45 const std::string &getPath()
const
50 const std::string &getName()
const
55 const std::string &name()
const
60 virtual std::string getSQLPath()
const
65 size_t getHashValue()
const
72 return boost::ilexicographical_compare(left.getName(), right.getName());
75 friend std::ostream& operator<<(std::ostream& output,
const Catalog &identifier)
77 return output <<
"Catalog:(" << identifier.getName() <<
", " << identifier.getPath() <<
")";
82 return boost::iequals(left.getName(), right.getName());
98 inline std::size_t hash_value(
Catalog const& b)
100 return b.getHashValue();