From OpenSCADAWiki
Jump to: navigation, search

Public methods:

  • TVariant( ); — Default constructor.
  • TVariant( char ivl ); TVariant( bool ivl ); — Boolean type constructor.
  • TVariant( int64_t ivl ); TVariant( int ivl ); — Integer type constructor.
  • TVariant( double ivl ); — Real type constructor.
  • TVariant( string ivl ); — String type constructor.
  • TVariant( const char *var ); — String type constructor.
  • TVariant( AutoHD<TVarObj> ivl ); TVariant( TVarObj *ivl ); — Object constructor.
  • TVariant( const TVariant &var ); — Copying constructor.
  • bool operator==( const TVariant &vr ) const; — Check the object for equality.
  • bool operator!=( const TVariant &vr ) const; — Check the object for not equality.
  • TVariant &operator=( const TVariant &vr ); — Copy of the object.
  • bool isNull( ) const; — Signs that the object is not initiated.
  • bool isEVal( ) const; — Value into the object is error.
  • Type type( ) const; — Value's type.
  • void setType( Type tp, bool fix = false, bool stdStringOmit = false ); — Set type tp for fixing it fix and use as constant allow stdStringOmit.
  • bool isModify( ); — Modification flag. It serves in the object functions to indicate the modification of variables.
  • void setModify( bool vl = true ); — Set of the modification flag.
  • virtual char getB( ) const; operator char( ); — Getting the value as the boolean one.
  • virtual int64_t getI( ) const; operator int64_t( ); operator int( ); — Getting the value as the integer one.
  • virtual double getR( ) const; operator double( ); — Getting the value as the real one.
  • virtual string getS( ) const; operator string( ); — Getting the value as the string one.
  • virtual AutoHD<TVarObj> getO( ) const; operator AutoHD<TVarObj>( ); — Getting the object.
  • virtual void setB( char val ); — Set to the value the boolean one.
  • virtual void setI( int64_t val ); — Set to the value the integer one.
  • virtual void setR( double val ); — Set to the value the real one.
  • virtual void setS( const string &val ); — Set to the value the string one.
  • virtual void setO( AutoHD<TVarObj> val ); — Set the object.