#include "variable.h" Variable::Variable() : eType( Null ), iValue( 0 ) { } Variable::Variable( Type eType ) : eType( eType ), iValue( 0 ) { if( eType == String ) { sValue = new Bu::String(); } } Variable::Variable( int64_t iValue ) : eType( Int ), iValue( iValue ) { } Variable::Variable( double fValue ) : eType( Float ), fValue( fValue ) { } Variable::Variable( bool bValue ) : eType( Bool ), bValue( bValue ) { } Variable::Variable( const Bu::String &sValue ) : eType( String ), iValue( 0 ) { this->sValue = new Bu::String( sValue ); } Variable::~Variable() { if( eType == String ) delete sValue; }