~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/table_reader.cc

  • Committer: Brian Aker
  • Date: 2009-04-13 16:22:40 UTC
  • mfrom: (971.1.78 mordred)
  • Revision ID: brian@gaz-20090413162240-ugi3gvhofmcuglzl
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
#include <iostream>
10
10
#include <string>
11
 
#include <drizzled/serialize/table.pb.h>
 
11
#include <drizzled/message/table.pb.h>
12
12
#include <google/protobuf/io/zero_copy_stream.h>
13
13
#include <google/protobuf/io/zero_copy_stream_impl.h>
14
14
 
15
15
using namespace std;
16
 
using namespace drizzle;
 
16
using namespace drizzled::message;
17
17
using namespace google::protobuf::io;
18
18
 
19
19
/*
20
20
  Written from Google proto example
21
21
*/
22
22
 
23
 
void print_field(const ::drizzle::Table::Field &field)
 
23
void print_field(const ::drizzled::message::Table::Field &field)
24
24
{
25
25
  cout << "\t`" << field.name() << "`";
26
26
 
143
143
    cout << " COMMENT `" << field.comment() << "` ";
144
144
}
145
145
 
146
 
void print_engine(const ::drizzle::Table::StorageEngine &engine)
 
146
void print_engine(const ::drizzled::message::Table::StorageEngine &engine)
147
147
{
148
148
  int32_t x;
149
149
 
156
156
  }
157
157
}
158
158
 
159
 
void print_index(const ::drizzle::Table::Index &index)
 
159
void print_index(const ::drizzled::message::Table::Index &index)
160
160
{
161
161
 
162
162
  if (index.is_primary())
182
182
  cout << "\t";
183
183
}
184
184
 
185
 
void print_table_stats(const ::drizzle::Table::TableStats&) 
 
185
void print_table_stats(const ::drizzled::message::Table::TableStats&) 
186
186
{
187
187
 
188
188
}
189
189
 
190
 
void print_table_options(const ::drizzle::Table::TableOptions &options)
 
190
void print_table_options(const ::drizzled::message::Table::TableOptions &options)
191
191
{
192
192
  if (options.has_comment())
193
193
    cout << " COMMENT = '" << options.comment() << "' " << endl;
247
247
}
248
248
 
249
249
 
250
 
void print_table(const ::drizzle::Table &table)
 
250
void print_table(const ::drizzled::message::Table &table)
251
251
{
252
252
  int32_t x;
253
253