MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
table_hosts.h
1 /* Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License as published by
5  the Free Software Foundation; version 2 of the License.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15 
16 #ifndef TABLE_HOSTS_H
17 #define TABLE_HOSTS_H
18 
19 #include "pfs_column_types.h"
20 #include "cursor_by_host.h"
21 #include "table_helper.h"
22 
23 struct PFS_host;
24 
33 struct row_hosts
34 {
39 };
40 
43 {
44 public:
48  static PFS_engine_table* create();
49  static int delete_all_rows();
50 
51 protected:
52  virtual int read_row_values(TABLE *table,
53  unsigned char *buf,
54  Field **fields,
55  bool read_all);
56 
57 
58 protected:
59  table_hosts();
60 
61 public:
62  ~table_hosts()
63  {}
64 
65 private:
66  virtual void make_row(PFS_host *pfs);
67 
69  static THR_LOCK m_table_lock;
71  static TABLE_FIELD_DEF m_field_def;
72 
74  row_hosts m_row;
76  bool m_row_exists;
77 };
78 
80 #endif