From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 1: | Line 1: | ||
'''Public methods:''' | '''Public methods:''' | ||
− | * '' | + | * ''char access( const string &user, char mode, const string &owner, const string &group, int perm );'' — Checking the access of the ''user'' in the ''mode'' to the resource with the ''owner'', ''group'' (several groups are separated by ',') and permition ''perm''. |
* ''void usrList( vector<string> &list ) const;'' — The list of the users ''list''. | * ''void usrList( vector<string> &list ) const;'' — The list of the users ''list''. | ||
* ''void usrGrpList( const string &name, vector<string> &list );'' — The list of the users' groups ''list'', in which the user ''name'' is included. | * ''void usrGrpList( const string &name, vector<string> &list );'' — The list of the users' groups ''list'', in which the user ''name'' is included. |
Latest revision as of 23:19, 15 February 2025
Public methods:
- char access( const string &user, char mode, const string &owner, const string &group, int perm ); — Checking the access of the user in the mode to the resource with the owner, group (several groups are separated by ',') and permition perm.
- void usrList( vector<string> &list ) const; — The list of the users list.
- void usrGrpList( const string &name, vector<string> &list ); — The list of the users' groups list, in which the user name is included.
- bool usrPresent( const string &name ) const; — Check fro the presence of the specified user name.
- string usrAdd( const string &name, const string &db = DB_GEN ); — Addition of the user name with the saving to the DB db. Returns the end created name of the user.
- void usrDel( const string &name, bool complete = false ); — Deleting of the user name with the possibility of the completely deleting complete.
- AutoHD<TUser> usrAt( const string &name ) const; — Attaching of the user name.
- void grpList( vector<string> &list ) const; — The list of the users' groups list.
- bool grpPresent( const string &name ) const; — Check fro the presence of the specified users' group name.
- string grpAdd( const string &name, const string &db = DB_GEN ); — Addition of the users' group name with the saving to the DB db. Returns the end created name of the user group.
- void grpDel( const string &name, bool complete = false ); — Deleting of the users' group name with the possibility of the completely deleting complete.
- AutoHD<TGroup> grpAt( const string &name ) const; — Connection to the users' group name.