ITK Function Reference
(V10000.1.0.60_20160308.00)
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
epm
epm_access_control.h
Go to the documentation of this file.
1
/*==============================================================================
2
Copyright (c) 2003-2005 UGS Corporation
3
Unpublished - All Rights Reserved
4
==============================================================================*/
5
12
/* */
13
14
#ifndef EPM_ACCESS_CONTROL_H
15
#define EPM_ACCESS_CONTROL_H
16
17
#include <
epm/epm.h
>
18
#include <epm/libepm_exports.h>
19
32
#define AM_NO_ACCESS_MASK 0
33
#define AM_DELETE_MASK ( 1 << 0 )
34
#define AM_CHANGE_MASK ( 1 << 1 )
35
#define AM_WRITE_MASK ( 1 << 2 )
36
#define AM_READ_MASK ( 1 << 3 )
37
#define AM_COPY_MASK ( 1 << 4 )
38
#define AM_PROMOTE_MASK ( 1 << 5 )
39
#define AM_DEMOTE_MASK ( 1 << 6 )
40
42
typedef
struct
TC_access_control_s
{
43
char
*
role_name
;
44
char
*
group_name
;
45
logical
allow_sub_groups
;
46
int
access_codes
;
47
}
TC_access_control_t
;
48
49
typedef
struct
TC_access_control_list_s
{
50
int
count
;
51
TC_access_control_t
*
controls
;
52
}
TC_access_control_list_t
;
53
54
typedef
struct
TC_reviewer_s
{
55
char
*
role_name
;
56
char
*
group_name
;
57
logical
allow_sub_groups
;
58
}
TC_reviewer_t
;
59
60
typedef
struct
TC_reviewer_team_s
{
61
int
count
;
62
TC_reviewer_t
*
reviewers
;
63
}
TC_reviewer_team_t
;
64
65
#define EPM_accessor_equal( ac1, ac2 ) \
66
( \
67
( \
68
( ac1.allow_sub_groups && ac2.allow_sub_groups ) || \
69
( ! ac1.allow_sub_groups && ! ac2.allow_sub_groups ) \
70
) && \
71
strcmp( ac1.role_name, ac2.role_name ) == 0 && \
72
strcmp( ac1.group_name, ac2.group_name ) == 0 \
73
)
74
80
//For deImanization
81
#include <
epm/iman_epm_access_control.h
>
82
83
#include <epm/libepm_undef.h>
84
#endif