From OpenSCADAWiki
Jump to: navigation, search

Public methods:

  • bool access( const string &user, char mode, int owner, int groups, int access ); — Check the access of the user in the mode to the resource with the owner, groups (separated ',') and permition access.
  • 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.