~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/command_reader.h

  • Committer: Brian Aker
  • Date: 2009-10-12 22:46:41 UTC
  • mfrom: (1130.2.27 plugin-base-class)
  • Revision ID: brian@gaz-20091012224641-gjo56i190y8c98xg
Merge Monty, default class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 * A command reader is a class which is able to read Command messages from some source
33
33
 */
34
34
 
 
35
namespace drizzled
 
36
{
35
37
/* some forward declarations needed */
36
 
namespace drizzled
37
 
{
38
 
  namespace message
39
 
  {
40
 
    class Command;
41
 
  }
42
 
}
 
38
namespace message { class Command; }
43
39
 
44
 
namespace drizzled
45
 
{
46
40
namespace plugin
47
41
{
48
42
 
50
44
/**
51
45
 * Class which can read Command messages from some source
52
46
 */
53
 
class CommandReader
 
47
class CommandReader : public Plugin
54
48
{
 
49
  CommandReader();
 
50
  CommandReader(const CommandReader &);
 
51
  CommandReader& operator=(const CommandReader &);
55
52
public:
56
 
  CommandReader() {}
 
53
  explicit CommandReader(std::string name_arg) : Plugin(name_arg) {}
57
54
  virtual ~CommandReader() {}
58
55
  /**
59
56
   * Read and fill a Command message with the supplied