From OpenSCADAWiki
Jump to: navigation, search
(Importing a new version from external source)
(Importing a new version from external source)
 
Line 11: Line 11:
 
* ''bool isCfg( );'' — Sign of the value object created in base of a configuration element.
 
* ''bool isCfg( );'' — Sign of the value object created in base of a configuration element.
 
* ''bool dataActive( );'' — Activity (updatable) flag of data.
 
* ''bool dataActive( );'' — Activity (updatable) flag of data.
 +
* ''bool isTransl( ) const;'' — Complex control of the field translation, that is taking into account all factors.
 +
* ''bool noTransl( ) const;'' — The sign "No translation" is provided to disable the translation of text variables for the element.
 +
* ''void setNoTransl( bool vl );'' — Setting of the sign "No translation".
 
* ''TVariant get( long long *tm = NULL, bool sys = false );'' — Request of the value for the specified time ''tm''. If NULL then it will be returned the last value.
 
* ''TVariant get( long long *tm = NULL, bool sys = false );'' — Request of the value for the specified time ''tm''. If NULL then it will be returned the last value.
 
* ''string getS( long long *tm = NULL, bool sys = false );'' — Request of the string type value for the specified time ''tm''. If NULL then it will be returned the last value.
 
* ''string getS( long long *tm = NULL, bool sys = false );'' — Request of the string type value for the specified time ''tm''. If NULL then it will be returned the last value.
Line 28: Line 31:
 
* ''bool reqFlg( );'' — Get the request flag.
 
* ''bool reqFlg( );'' — Get the request flag.
 
* ''void setReqFlg( bool vl );'' — Set the request flag.
 
* ''void setReqFlg( bool vl );'' — Set the request flag.
* ''TFld &fld( );'' — Descriptor of the attribute's structure.
+
* ''TFld &fld( ) const;'' — Descriptor of the attribute's structure.

Latest revision as of 20:28, 8 March 2025

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:'''
* ''TVal( );'' — Default constructor.
* ''TVal( TFld &fld );'' — Initialization as the repository of dynamic data.
* ''TVal( TCfg &cfg );'' — Initialization as the reflection of static data (DB).
* ''string DAQPath( );'' — Getting for DAQ-address of the element.
* ''void setFld( TFld &fld );'' — Initialization as the repository of dynamic data.
* ''void setCfg( TCfg &cfg );'' — Initialization as the reflection of static data (DB).
* ''string name( );'' — Attribute's name.
* ''int64_t time( );'' — Timestamp of the the last/current value (10<sup>-6</sup>s).
* ''void setTime( int64_t vl );'' — Setting the timestamp outside the value setting.
* ''bool isCfg( );'' — Sign of the value object created in base of a configuration element.
* ''bool dataActive( );'' — Activity (updatable) flag of data.
* ''bool isTransl( ) const;'' — Complex control of the field translation, that is taking into account all factors.
* ''bool noTransl( ) const;'' — The sign "No translation" is provided to disable the translation of text variables for the element.
* ''void setNoTransl( bool vl );'' — Setting of the sign "No translation".
* ''TVariant get( long long *tm = NULL, bool sys = false );'' — Request of the value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''string getS( long long *tm = NULL, bool sys = false );'' — Request of the string type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''double getR( long long *tm = NULL, bool sys = false );'' — Request of the real type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''int64_t getI( long long *tm = NULL, bool sys = false );'' — Request of the integer type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''char getB( long long *tm = NULL, bool sys = false );'' — Request of the boolean type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''AutoHD<TVarObj> getO( int64_t *tm = NULL, bool sys = false );'' — Request of the object type value.
* ''void set( const TVariant &value, long long tm = 0, bool sys = false );'' — Setting of the value ''value''.
* ''void setS( const string &value, long long tm = 0, bool sys = false );'' — Setting of the string type value ''value''.
* ''void setR( double value, long long tm = 0, bool sys = false );'' — Setting of the real type value ''value''.
* ''void setI( int64_t value, long long tm = 0, bool sys = false );'' — Setting of the integer type value ''value''.
* ''void setB( char value, long long tm = 0, bool sys = false );'' — Setting of the boolean type value ''value''.
* ''void setO( AutoHD<TVarObj> value, int64_t tm = 0, bool sys = false );'' — Setting of the object type value ''value''.
* ''AutoHD<TVArchive> arch( );'' — Getting the associated with the value archive.
* ''void setArch( const AutoHD<TVArchive> &vl );'' — Setting the associated with the value archive.
* ''string setArch( const string &nm = "" );'' — Setting/creation new archive with proposed name ''nm'' or automatic, if name empty.
* ''bool reqFlg( );'' — Get the request flag.
* ''void setReqFlg( bool vl );'' — Set the request flag.
* ''TFld &fld( ) const;'' — Descriptor of the attribute's structure.
Translation'''Public methods:'''
* ''TVal( );'' — Default constructor.
* ''TVal( TFld &fld );'' — Initialization as the repository of dynamic data.
* ''TVal( TCfg &cfg );'' — Initialization as the reflection of static data (DB).
* ''string DAQPath( );'' — Getting for DAQ-address of the element.
* ''void setFld( TFld &fld );'' — Initialization as the repository of dynamic data.
* ''void setCfg( TCfg &cfg );'' — Initialization as the reflection of static data (DB).
* ''string name( );'' — Attribute's name.
* ''int64_t time( );'' — Timestamp of the the last/current value (10<sup>-6</sup>s).
* ''void setTime( int64_t vl );'' — Setting the timestamp outside the value setting.
* ''bool isCfg( );'' — Sign of the value object created in base of a configuration element.
* ''bool dataActive( );'' — Activity (updatable) flag of data.
* ''bool isTransl( ) const;'' — Complex control of the field translation, that is taking into account all factors.
* ''bool noTransl( ) const;'' — The sign "No translation" is provided to disable the translation of text variables for the element.
* ''void setNoTransl( bool vl );'' — Setting of the sign "No translation".
* ''TVariant get( long long *tm = NULL, bool sys = false );'' — Request of the value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''string getS( long long *tm = NULL, bool sys = false );'' — Request of the string type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''double getR( long long *tm = NULL, bool sys = false );'' — Request of the real type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''int64_t getI( long long *tm = NULL, bool sys = false );'' — Request of the integer type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''char getB( long long *tm = NULL, bool sys = false );'' — Request of the boolean type value for the specified time ''tm''. If NULL then it will be returned the last value.
* ''AutoHD<TVarObj> getO( int64_t *tm = NULL, bool sys = false );'' — Request of the object type value.
* ''void set( const TVariant &value, long long tm = 0, bool sys = false );'' — Setting of the value ''value''.
* ''void setS( const string &value, long long tm = 0, bool sys = false );'' — Setting of the string type value ''value''.
* ''void setR( double value, long long tm = 0, bool sys = false );'' — Setting of the real type value ''value''.
* ''void setI( int64_t value, long long tm = 0, bool sys = false );'' — Setting of the integer type value ''value''.
* ''void setB( char value, long long tm = 0, bool sys = false );'' — Setting of the boolean type value ''value''.
* ''void setO( AutoHD<TVarObj> value, int64_t tm = 0, bool sys = false );'' — Setting of the object type value ''value''.
* ''AutoHD<TVArchive> arch( );'' — Getting the associated with the value archive.
* ''void setArch( const AutoHD<TVArchive> &vl );'' — Setting the associated with the value archive.
* ''string setArch( const string &nm = "" );'' — Setting/creation new archive with proposed name ''nm'' or automatic, if name empty.
* ''bool reqFlg( );'' — Get the request flag.
* ''void setReqFlg( bool vl );'' — Set the request flag.
* ''TFld &fld( ) const;'' — Descriptor of the attribute's structure.

Public methods:

  • TVal( ); — Default constructor.
  • TVal( TFld &fld ); — Initialization as the repository of dynamic data.
  • TVal( TCfg &cfg ); — Initialization as the reflection of static data (DB).
  • string DAQPath( ); — Getting for DAQ-address of the element.
  • void setFld( TFld &fld ); — Initialization as the repository of dynamic data.
  • void setCfg( TCfg &cfg ); — Initialization as the reflection of static data (DB).
  • string name( ); — Attribute's name.
  • int64_t time( ); — Timestamp of the the last/current value (10-6s).
  • void setTime( int64_t vl ); — Setting the timestamp outside the value setting.
  • bool isCfg( ); — Sign of the value object created in base of a configuration element.
  • bool dataActive( ); — Activity (updatable) flag of data.
  • bool isTransl( ) const; — Complex control of the field translation, that is taking into account all factors.
  • bool noTransl( ) const; — The sign "No translation" is provided to disable the translation of text variables for the element.
  • void setNoTransl( bool vl ); — Setting of the sign "No translation".
  • TVariant get( long long *tm = NULL, bool sys = false ); — Request of the value for the specified time tm. If NULL then it will be returned the last value.
  • string getS( long long *tm = NULL, bool sys = false ); — Request of the string type value for the specified time tm. If NULL then it will be returned the last value.
  • double getR( long long *tm = NULL, bool sys = false ); — Request of the real type value for the specified time tm. If NULL then it will be returned the last value.
  • int64_t getI( long long *tm = NULL, bool sys = false ); — Request of the integer type value for the specified time tm. If NULL then it will be returned the last value.
  • char getB( long long *tm = NULL, bool sys = false ); — Request of the boolean type value for the specified time tm. If NULL then it will be returned the last value.
  • AutoHD<TVarObj> getO( int64_t *tm = NULL, bool sys = false ); — Request of the object type value.
  • void set( const TVariant &value, long long tm = 0, bool sys = false ); — Setting of the value value.
  • void setS( const string &value, long long tm = 0, bool sys = false ); — Setting of the string type value value.
  • void setR( double value, long long tm = 0, bool sys = false ); — Setting of the real type value value.
  • void setI( int64_t value, long long tm = 0, bool sys = false ); — Setting of the integer type value value.
  • void setB( char value, long long tm = 0, bool sys = false ); — Setting of the boolean type value value.
  • void setO( AutoHD<TVarObj> value, int64_t tm = 0, bool sys = false ); — Setting of the object type value value.
  • AutoHD<TVArchive> arch( ); — Getting the associated with the value archive.
  • void setArch( const AutoHD<TVArchive> &vl ); — Setting the associated with the value archive.
  • string setArch( const string &nm = "" ); — Setting/creation new archive with proposed name nm or automatic, if name empty.
  • bool reqFlg( ); — Get the request flag.
  • void setReqFlg( bool vl ); — Set the request flag.
  • TFld &fld( ) const; — Descriptor of the attribute's structure.