From OpenSCADAWiki
Jump to: navigation, search
(Importing a new version from external source)
(Importing a new version from external source)
 
Line 15: Line 15:
 
* ''void valDet( TValElem *cnt );'' — Is called automatically when the structure is detached from the data storage ''cnt''.
 
* ''void valDet( TValElem *cnt );'' — Is called automatically when the structure is detached from the data storage ''cnt''.
 
* ''ResMtx &resEl( );'' — Mutex for access to containers of the fields.
 
* ''ResMtx &resEl( );'' — Mutex for access to containers of the fields.
 +
* ''unsigned contN( );'' — Counter of the connected containers.

Latest revision as of 16:22, 10 June 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Documents/API)
'''Public methods:'''
* ''TElem( const string &name = "" );'' — Initialization of the structure with the specified name ''name''.
* ''TElem( const TElem &src );'' — Copying constructor.
* ''TElem &operator=( const TElem &src );'' — Copying from ''src''.
* ''string &elName( );'' — The name if the structure.
* ''void fldList( vector<string> &list ) const;'' — The cell's list in the structure ''list''.
* ''unsigned fldSize( ) const;'' — The number of cells in the structure.
* ''unsigned fldId( const string &name, bool noex = false );'' — Getting the index of the cell from its identifier ''name''. Set ''noex'' on no the cell present caused return overall cells number, without exception generation.
* ''bool fldPresent( const string &name );'' — Check for the presence of the specified cell ''name''.
* ''int fldAdd( TFld *fld, int id = -1 );'' — Addition/insert of the cell ''fld'' to the position ''id'' (-1 — insert to the end).
* ''void fldDel( unsigned int id );'' — Deleting of the cell  ''id''.
* ''TFld &fldAt( unsigned int id ) const;'' — Getting of the cell ''id''.
* ''void fldClear( );'' — Removing all cells.
* ''void valAtt( TValElem *cnt );'' — Is called automatically when the structure is attached to the data storage ''cnt''.
* ''void valDet( TValElem *cnt );'' — Is called automatically when the structure is detached from the data storage ''cnt''.
* ''ResMtx &resEl( );'' — Mutex for access to containers of the fields.
* ''unsigned contN( );'' — Counter of the connected containers.
Translation'''Public methods:'''
* ''TElem( const string &name = "" );'' — Initialization of the structure with the specified name ''name''.
* ''TElem( const TElem &src );'' — Copying constructor.
* ''TElem &operator=( const TElem &src );'' — Copying from ''src''.
* ''string &elName( );'' — The name if the structure.
* ''void fldList( vector<string> &list ) const;'' — The cell's list in the structure ''list''.
* ''unsigned fldSize( ) const;'' — The number of cells in the structure.
* ''unsigned fldId( const string &name, bool noex = false );'' — Getting the index of the cell from its identifier ''name''. Set ''noex'' on no the cell present caused return overall cells number, without exception generation.
* ''bool fldPresent( const string &name );'' — Check for the presence of the specified cell ''name''.
* ''int fldAdd( TFld *fld, int id = -1 );'' — Addition/insert of the cell ''fld'' to the position ''id'' (-1 — insert to the end).
* ''void fldDel( unsigned int id );'' — Deleting of the cell  ''id''.
* ''TFld &fldAt( unsigned int id ) const;'' — Getting of the cell ''id''.
* ''void fldClear( );'' — Removing all cells.
* ''void valAtt( TValElem *cnt );'' — Is called automatically when the structure is attached to the data storage ''cnt''.
* ''void valDet( TValElem *cnt );'' — Is called automatically when the structure is detached from the data storage ''cnt''.
* ''ResMtx &resEl( );'' — Mutex for access to containers of the fields.
* ''unsigned contN( );'' — Counter of the connected containers.

Public methods:

  • TElem( const string &name = "" ); — Initialization of the structure with the specified name name.
  • TElem( const TElem &src ); — Copying constructor.
  • TElem &operator=( const TElem &src ); — Copying from src.
  • string &elName( ); — The name if the structure.
  • void fldList( vector<string> &list ) const; — The cell's list in the structure list.
  • unsigned fldSize( ) const; — The number of cells in the structure.
  • unsigned fldId( const string &name, bool noex = false ); — Getting the index of the cell from its identifier name. Set noex on no the cell present caused return overall cells number, without exception generation.
  • bool fldPresent( const string &name ); — Check for the presence of the specified cell name.
  • int fldAdd( TFld *fld, int id = -1 ); — Addition/insert of the cell fld to the position id (-1 — insert to the end).
  • void fldDel( unsigned int id ); — Deleting of the cell id.
  • TFld &fldAt( unsigned int id ) const; — Getting of the cell id.
  • void fldClear( ); — Removing all cells.
  • void valAtt( TValElem *cnt ); — Is called automatically when the structure is attached to the data storage cnt.
  • void valDet( TValElem *cnt ); — Is called automatically when the structure is detached from the data storage cnt.
  • ResMtx &resEl( ); — Mutex for access to containers of the fields.
  • unsigned contN( ); — Counter of the connected containers.