SAGA C++ API 1.6
saga::detail::permissions< Derived > Struct Template Reference

The SAGA permissions interface. More...

#include <permissions.hpp>

Inheritance diagram for saga::detail::permissions< Derived >:

List of all members.

Public Member Functions

void permissions_allow (std::string permission_id, int flag)
 Set a permission flag for this object instance.
void permissions_deny (std::string permission_id, int flag)
 Remove a permission flag from this object instance.
bool permissions_check (std::string permission_id, int flag) const
 Check this object instance for a permission flag.
std::string get_owner () const
 Returns the owner of this object instance.
std::string get_group () const
 Returns the group of the owner of this object instance.

Detailed Description

template<typename Derived>
struct saga::detail::permissions< Derived >

The SAGA permissions interface.

TODO .

Definition at line 68 of file detail/permissions.hpp.


Member Function Documentation

template<typename Derived>
void saga::detail::permissions< Derived >::permissions_allow ( std::string  permission_id,
int  flag 
) [inline]

Set a permission flag for this object instance.

Parameters:
permission_idThe permission to set the flag for
flagThe flag to set

TODO .

Definition at line 113 of file detail/permissions.hpp.

template<typename Derived>
void saga::detail::permissions< Derived >::permissions_deny ( std::string  permission_id,
int  flag 
) [inline]

Remove a permission flag from this object instance.

Parameters:
permission_idThe permission to remove the flag from
flagThe flag to remove

TODO .

Definition at line 129 of file detail/permissions.hpp.

template<typename Derived>
bool saga::detail::permissions< Derived >::permissions_check ( std::string  permission_id,
int  flag 
) const [inline]

Check this object instance for a permission flag.

Parameters:
permission_idThe permission to check for a flag
flagThe flag to check for

TODO .

Definition at line 145 of file detail/permissions.hpp.

template<typename Derived>
std::string saga::detail::permissions< Derived >::get_owner ( ) const [inline]

Returns the owner of this object instance.

Returns:
The owner's name

TODO .

Definition at line 161 of file detail/permissions.hpp.

template<typename Derived>
std::string saga::detail::permissions< Derived >::get_group ( ) const [inline]

Returns the group of the owner of this object instance.

Returns:
The group's name

TODO .

Definition at line 176 of file detail/permissions.hpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines