~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/user.h

  • Committer: Monty Taylor
  • Date: 2011-02-12 21:49:59 UTC
  • mto: (2165.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110212214959-bve8sh4hu761y48m
Updated the windows build to be able to build from the command line and not to show warnings on strncpy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <string>
26
26
#include <boost/shared_ptr.hpp>
27
27
 
28
 
#include <drizzled/visibility.h>
 
28
#include "drizzled/visibility.h"
29
29
 
30
30
namespace drizzled
31
31
{
47
47
 
48
48
  enum PasswordType
49
49
  {
50
 
    NONE,
51
50
    PLAIN_TEXT,
52
51
    MYSQL_HASH
53
52
  };
54
53
 
55
54
  User():
56
 
    password_type(NONE),
 
55
    password_type(PLAIN_TEXT),
57
56
    _user(""),
58
57
    _address("")
59
58
  { }
60
59
 
61
60
  virtual void getSQLPath(std::string &arg) const;
62
61
 
63
 
  bool hasPassword() const
64
 
  {
65
 
    switch (password_type)
66
 
    {
67
 
    case NONE:
68
 
      return false;
69
 
    case PLAIN_TEXT:
70
 
    case MYSQL_HASH:
71
 
      break;
72
 
    }
73
 
 
74
 
    return true;
75
 
  }
76
 
 
77
62
  const std::string& address() const
78
63
  {
79
64
    return _address;