~brianaker/drizzle/libdrizzle-tests

« back to all changes in this revision

Viewing changes to drizzled/identifier/user.h

  • Committer: Mark Atwood
  • Date: 2011-10-21 14:25:19 UTC
  • mfrom: (2440.2.28 rf)
  • Revision ID: me@mark.atwood.name-20111021142519-bqnyqrkthibv70rc
Tags: 2011.10.28
mergeĀ lp:~olafvdspek/drizzle/refactor6

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#pragma once
22
22
 
23
 
#include <string>
24
 
#include <boost/shared_ptr.hpp>
25
23
#include <drizzled/common_fwd.h>
26
24
#include <drizzled/identifier.h>
27
 
#include <drizzled/visibility.h>
28
25
 
29
26
namespace drizzled {
30
27
namespace identifier {
46
43
    MYSQL_HASH
47
44
  };
48
45
 
49
 
  User():
 
46
  User() :
50
47
    password_type(NONE)
51
48
  { }
52
49
 
53
 
  User(const std::string &username_arg):
 
50
  User(str_ref user_arg) :
54
51
    password_type(NONE),
55
 
    _user(username_arg),
56
 
    _address("")
 
52
    _user(to_string(user_arg))
57
53
  { }
58
54
 
59
55
  virtual std::string getSQLPath() const