~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/protocol.h

  • Committer: Monty Taylor
  • Date: 2009-04-10 18:17:59 UTC
  • mto: (992.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 990.
  • Revision ID: mordred@inaugust.com-20090410181759-wr58on1xxc9lwzut
Made plugin registration go through Plugin_registry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
 
93
93
class ProtocolFactory
94
94
{
 
95
  std::string name;
95
96
public:
96
 
  ProtocolFactory() {}
 
97
  ProtocolFactory(std::string name_arg): name(name_arg) {}
 
98
  ProtocolFactory(const char *name_arg): name(name_arg) {}
97
99
  virtual ~ProtocolFactory() {}
98
100
  virtual Protocol *operator()(void)= 0;
 
101
  std::string getName() {return name;}
99
102
};
100
103
 
101
104
#endif /* DRIZZLED_PLUGIN_PROTOCOL_H */