~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message.h

  • Committer: Brian Aker
  • Date: 2010-10-27 23:31:42 UTC
  • mto: (1887.2.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1888.
  • Revision ID: brian@tangent.org-20101027233142-lmo86qafuoz1xmk2
Move table_share over into definition and fix header.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_MESSAGE_H
22
22
#define DRIZZLED_MESSAGE_H
23
23
 
24
 
#include <drizzled/message/table.h>
25
 
#include <drizzled/message/schema.h>
26
 
#if 0
27
 
#include <drizzled/message/transaction.pb.h>
28
 
#include <google/protobuf/text_format.h>
29
 
#endif
30
 
#include <drizzled/identifier.h>
 
24
#include "drizzled/message/table.pb.h"
 
25
#include "drizzled/message/schema.pb.h"
31
26
 
32
27
#include <boost/shared_ptr.hpp>
33
28
 
34
29
namespace drizzled {
35
30
namespace message {
36
31
 
 
32
void init(drizzled::message::Schema &arg, const std::string &name_arg);
 
33
void init(drizzled::message::Table &arg, const std::string &name_arg, const std::string &schema_arg, const std::string &engine_arg);
 
34
 
37
35
void update(drizzled::message::Schema &arg);
38
36
void update(drizzled::message::Table &arg);
39
37
 
40
 
bool is_numeric(const drizzled::message::Table::Field &type);
41
 
 
42
 
const std::string &type(const drizzled::message::Table::Field &type);
43
 
const std::string &type(drizzled::message::Table::Field::FieldType type);
44
 
const std::string &type(drizzled::message::Table::ForeignKeyConstraint::ForeignKeyOption type);
45
 
const std::string &type(bool type);
46
 
const std::string &type(drizzled::message::Table::Index::IndexType type);
47
 
const std::string &type(drizzled::message::Table::ForeignKeyConstraint::ForeignKeyMatchOption type);
48
 
const std::string &type(drizzled::message::Table::TableType type);
49
 
 
50
 
#if 0
51
 
std::ostream& operator<<(std::ostream& output, const message::Transaction &message);
52
 
std::ostream& operator<<(std::ostream& output, const message::Table &message);
53
 
#endif
54
 
 
 
38
typedef boost::shared_ptr<drizzled::message::Schema> SchemaPtr;
55
39
 
56
40
} /* namespace message */
57
41
} /* namespace drizzled */