From OpenSCADAWiki
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 5: | Line 5: | ||
* ''string longDescr( );'' — Users group long description. | * ''string longDescr( );'' — Users group long description. | ||
* ''bool sysItem( );'' — The sign of the system user. | * ''bool sysItem( );'' — The sign of the system user. | ||
− | * ''string DB( );'' — Users' group | + | * ''string DB( bool qTop = false );'' — Users' group storage address, ''qTop'' for the storage queue top. |
* ''string tbl( );'' — Address of the table of the users' group DB. | * ''string tbl( );'' — Address of the table of the users' group DB. | ||
− | * ''string fullDB( );'' — | + | * ''string fullDB( bool qTop = false );'' — Full name of the table of the users' group storage, ''qTop'' for the storage queue top. |
* ''void setDescr( const string &vl );'' — Setting users group description to ''vl''. | * ''void setDescr( const string &vl );'' — Setting users group description to ''vl''. | ||
* ''void setLongDescr( const string &vl );'' — Setting users group long description to ''vl''. | * ''void setLongDescr( const string &vl );'' — Setting users group long description to ''vl''. | ||
− | * ''void setDB( const string &vl );'' — Setting the users' group | + | * ''void setDB( const string &vl, bool qTop = false );'' — Setting the users' group storage address, ''qTop'' for the storage queue top. |
* ''bool user( const string &name );'' — Check for the user's belonging to the group ''name''. | * ''bool user( const string &name );'' — Check for the user's belonging to the group ''name''. | ||
* ''void userAdd( const string &name );'' — Addition of the user ''name'' to the group. | * ''void userAdd( const string &name );'' — Addition of the user ''name'' to the group. | ||
* ''void userDel( const string &name );'' — Deleting of the user ''name'' from the group. | * ''void userDel( const string &name );'' — Deleting of the user ''name'' from the group. | ||
* ''TSeсurity &owner( ) const;'' — "Security" subsystem - the owner of the users' group. | * ''TSeсurity &owner( ) const;'' — "Security" subsystem - the owner of the users' group. |
Revision as of 18:45, 10 September 2021
Public methods:
- TGroup( const string &name, const string &db, TElem *el ); — Initializing constructor.
- string name( ); — Users group name.
- string descr( ); — Users group description.
- string longDescr( ); — Users group long description.
- bool sysItem( ); — The sign of the system user.
- string DB( bool qTop = false ); — Users' group storage address, qTop for the storage queue top.
- string tbl( ); — Address of the table of the users' group DB.
- string fullDB( bool qTop = false ); — Full name of the table of the users' group storage, qTop for the storage queue top.
- void setDescr( const string &vl ); — Setting users group description to vl.
- void setLongDescr( const string &vl ); — Setting users group long description to vl.
- void setDB( const string &vl, bool qTop = false ); — Setting the users' group storage address, qTop for the storage queue top.
- bool user( const string &name ); — Check for the user's belonging to the group name.
- void userAdd( const string &name ); — Addition of the user name to the group.
- void userDel( const string &name ); — Deleting of the user name from the group.
- TSeсurity &owner( ) const; — "Security" subsystem - the owner of the users' group.