~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/identifier/user.h

  • Committer: Brian Aker
  • Date: 2011-02-12 06:56:00 UTC
  • mto: This revision was merged to the branch mainline in revision 2161.
  • Revision ID: brian@tangent.org-20110212065600-m6c68fybw51rflhj
Further strip out includes.

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"
 
29
 
28
30
namespace drizzled
29
31
{
30
32
namespace identifier
35
37
  @brief A set of Session members describing the current authenticated user.
36
38
*/
37
39
 
38
 
class User {
 
40
class User : public Identifier
 
41
{
39
42
public:
40
43
  typedef boost::shared_ptr<User> shared_ptr;
41
44
  typedef boost::shared_ptr<const User> const_shared_ptr;
42
 
  static shared_ptr make_shared();
 
45
  typedef const User& const_reference;
 
46
  DRIZZLED_API static shared_ptr make_shared();
43
47
 
44
48
  enum PasswordType
45
49
  {
53
57
    _address("")
54
58
  { }
55
59
 
 
60
  virtual void getSQLPath(std::string &arg) const;
 
61
 
56
62
  const std::string& address() const
57
63
  {
58
64
    return _address;