~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/protocol.h

Cleaned up Protocol plugin interface (now a class factory) and moved libdrizzlclient to oldlibdrizzle to be clear.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
class Session;
27
27
class String;
28
28
 
29
 
#if 0
30
 
 
31
 
class Field;
32
 
class String;
33
 
class i_string;
34
 
class my_decimal;
35
 
typedef struct st_drizzle_field DRIZZLE_FIELD;
36
 
typedef struct st_drizzle_rows DRIZZLE_ROWS;
37
 
typedef struct st_drizzle_time DRIZZLE_TIME;
38
 
#endif
39
 
 
40
29
class Protocol
41
30
{
42
31
protected:
131
120
  virtual bool store(Field *field)=0;
132
121
};
133
122
 
 
123
class ProtocolFactory
 
124
{
 
125
public:
 
126
  ProtocolFactory() {}
 
127
  virtual ~ProtocolFactory() {}
 
128
  virtual Protocol *operator()(void)= 0;
 
129
};
 
130
 
134
131
#endif /* DRIZZLED_PLUGIN_PROTOCOL_H */