0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
TableInfo.h
Go to the documentation of this file.
1 /* -*- c++ -*-
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; version 3 of the
9  * License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef Tools_client_rangeserver_TableInfo_h
23 #define Tools_client_rangeserver_TableInfo_h
24 
25 #include <Hypertable/Lib/Schema.h>
27 
28 #include <Hyperspace/Session.h>
29 
30 #include <Common/String.h>
31 
32 namespace Tools {
33 namespace client {
34 namespace rangeserver {
35 
36  class TableInfo {
37  public:
38  TableInfo(const String &toplevel_dir, const String &table_id);
39 
40  void load(Hyperspace::SessionPtr &hyperspace);
41 
43  void get_schema_ptr(SchemaPtr &schema) { schema = m_schema; }
44 
45  private:
49  };
50 }}}
51 
52 #endif // Tools_client_rangeserver_TableInfo_h
std::string String
A String is simply a typedef to std::string.
Definition: String.h:44
Declarations for TableIdentifier and TableIdentifierManaged.
Declarations for Schema.
Wrapper for TableIdentifier providing member storage.
std::shared_ptr< Session > SessionPtr
Definition: Session.h:734
void get_schema_ptr(SchemaPtr &schema)
Definition: TableInfo.h:43
TableIdentifierManaged m_table
Definition: TableInfo.h:46
TableInfo(const String &toplevel_dir, const String &table_id)
Definition: TableInfo.cc:40
TableIdentifier * get_table_identifier()
Definition: TableInfo.h:42
A String class based on std::string.
Forward declarations.
std::shared_ptr< Schema > SchemaPtr
Smart pointer to Schema.
Definition: Schema.h:465
void load(Hyperspace::SessionPtr &hyperspace)
Definition: TableInfo.cc:45