~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/regex_policy/policy.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-14 17:13:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110814171326-e6nnh3q5cp3o0tk3
Remove unnecessary constructors and destructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
namespace fs= boost::filesystem;
37
37
 
38
 
namespace regex_policy {
 
38
namespace regex_policy
 
39
{
39
40
 
40
41
static const fs::path DEFAULT_POLICY_FILE= SYSCONFDIR "/drizzle.policy";
41
42
 
84
85
  }
85
86
  bool userMatches(std::string &str);
86
87
  bool objectMatches(std::string &object_id);
87
 
  bool isRestricted() const;
 
88
  bool isRestricted();
88
89
  const std::string&getUser() const
89
90
  {
90
91
    return user;
136
137
  return boost::regex_match(object_id, object_re);
137
138
}
138
139
 
139
 
inline bool PolicyItem::isRestricted() const
 
140
inline bool PolicyItem::isRestricted()
140
141
{
141
142
  return action == POLICY_DENY;
142
143
}