Warning, file /include/opencascade/OSD_Protection.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _OSD_Protection_HeaderFile
0018 #define _OSD_Protection_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <OSD_SingleProtection.hxx>
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046 class OSD_Protection
0047 {
0048 public:
0049
0050 DEFINE_STANDARD_ALLOC
0051
0052
0053
0054
0055
0056
0057
0058
0059 Standard_EXPORT OSD_Protection();
0060
0061
0062 Standard_EXPORT OSD_Protection(const OSD_SingleProtection System, const OSD_SingleProtection User, const OSD_SingleProtection Group, const OSD_SingleProtection World);
0063
0064
0065 Standard_EXPORT void Values (OSD_SingleProtection& System, OSD_SingleProtection& User, OSD_SingleProtection& Group, OSD_SingleProtection& World);
0066
0067
0068 Standard_EXPORT void SetValues (const OSD_SingleProtection System, const OSD_SingleProtection User, const OSD_SingleProtection Group, const OSD_SingleProtection World);
0069
0070
0071 Standard_EXPORT void SetSystem (const OSD_SingleProtection priv);
0072
0073
0074 Standard_EXPORT void SetUser (const OSD_SingleProtection priv);
0075
0076
0077 Standard_EXPORT void SetGroup (const OSD_SingleProtection priv);
0078
0079
0080 Standard_EXPORT void SetWorld (const OSD_SingleProtection priv);
0081
0082
0083 Standard_EXPORT OSD_SingleProtection System() const;
0084
0085
0086 Standard_EXPORT OSD_SingleProtection User() const;
0087
0088
0089 Standard_EXPORT OSD_SingleProtection Group() const;
0090
0091
0092 Standard_EXPORT OSD_SingleProtection World() const;
0093
0094
0095
0096
0097 Standard_EXPORT void Add (OSD_SingleProtection& aProt, const OSD_SingleProtection aRight);
0098
0099
0100
0101
0102
0103 Standard_EXPORT void Sub (OSD_SingleProtection& aProt, const OSD_SingleProtection aRight);
0104
0105
0106 friend class OSD_FileNode;
0107 friend class OSD_File;
0108 friend class OSD_Directory;
0109
0110
0111 protected:
0112
0113
0114
0115
0116
0117 private:
0118
0119
0120
0121
0122 Standard_EXPORT Standard_Integer Internal() const;
0123
0124
0125 OSD_SingleProtection s;
0126 OSD_SingleProtection u;
0127 OSD_SingleProtection g;
0128 OSD_SingleProtection w;
0129
0130
0131 };
0132
0133
0134
0135
0136
0137
0138
0139 #endif