~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/schema_identifier.h

  • Committer: Brian Aker
  • Date: 2010-07-09 08:40:41 UTC
  • mfrom: (1643.3.13 rollup)
  • Revision ID: brian@gaz-20100709084041-tkghyfbzwvfqypi8
MergeĀ IS

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
#include <functional>
46
46
#include <iostream>
47
47
 
 
48
 
48
49
namespace drizzled {
49
50
 
 
51
static std::string catalog("");
 
52
 
50
53
class SchemaIdentifier
51
54
{
52
55
  std::string db;
53
56
  std::string db_path;
54
57
  std::string lower_db;
55
58
 
 
59
 
56
60
  // @note this should be changed to protected once Session contains an
57
61
  // identifier for current db.
58
62
public:
76
80
    return db;
77
81
  }
78
82
 
 
83
  const std::string &getCatalogName() const
 
84
  {
 
85
    return catalog;
 
86
  }
 
87
 
79
88
  bool isValid() const;
80
89
  bool compare(std::string arg) const;
81
90
 
109
118
 
110
119
};
111
120
 
112
 
typedef std::list <SchemaIdentifier> SchemaIdentifierList;
 
121
typedef std::vector <SchemaIdentifier> SchemaIdentifiers;
113
122
 
114
123
} /* namespace drizzled */
115
124