~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session/table_messages.h

mergeĀ lp:~linuxjedi/drizzle/trunk-remove-drizzleadmin

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_SESSION_TABLE_MESSAGES_H
22
 
#define DRIZZLED_SESSION_TABLE_MESSAGES_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/util/string.h>
25
24
#include <drizzled/message/table.h>
26
25
 
27
26
#include <boost/unordered_map.hpp>
28
27
 
29
 
namespace drizzled
30
 
{
31
 
 
32
 
namespace identifier { class Table; }
33
 
namespace message { class Table; }
34
 
namespace util { struct insensitive_hash; }
35
 
namespace util { struct insensitive_equal_to; }
36
 
 
37
 
namespace session
38
 
{
39
 
 
40
 
class TableMessages
 
28
namespace drizzled {
 
29
namespace session {
 
30
 
 
31
class DRIZZLED_API TableMessages
41
32
{
42
33
  typedef boost::unordered_map<std::string, message::Table, util::insensitive_hash, util::insensitive_equal_to> Cache;
43
34
 
44
35
  Cache table_message_cache;
45
36
 
46
37
public:
47
 
  bool storeTableMessage(const identifier::Table &identifier, message::Table &table_message);
 
38
  bool storeTableMessage(const identifier::Table &identifier, const message::Table &table_message);
48
39
  bool removeTableMessage(const identifier::Table &identifier);
49
40
  bool getTableMessage(const identifier::Table &identifier, message::Table &table_message);
50
41
  bool doesTableMessageExist(const identifier::Table &identifier);
54
45
} /* namespace session */
55
46
} /* namespace drizzled */
56
47
 
57
 
#endif /* DRIZZLED_SESSION_TABLE_MESSAGES_H */