Color) {
      setValue(QColor());
   }

   return *(QColor *)(dataPtr());
}

const QTime &QDeclarativeVMEVariant::asQTime()
{
   if (type!= QMetaType::QTime) {
      setValue(QTime());
   }

   return *(QTime *)(dataPtr());
}

const QDate &QDeclarativeVMEVariant::asQDate()
{
   if (type!= QMetaType::QDate) {
      setValue(QDate());
   }

   return *(QDate *)(dataPtr());
}

const QDateTime &QDeclarativeVMEVariant::asQDateTime()
{
   if (type!= QMetaType::QDateTime) {
      setValue(QDateTime());
   }

   return *(QDateTime *)(dataPtr());
}

const QScriptValue &QDeclarativeVMEVariant::asQScriptValue()
{
   if (type!= qMetaTypeId<QScriptValue>()) {
      setValue(QScriptValue());
   }

   return *(QScriptValue *)(dataPtr());
}

void QDeclarativeVMEVariant::setValue(QObject *v)
{
   if (type!= QMetaType::QObjectStar) {
      cleanup();
      type = QMetaType::QObjectStar;
      new (dataPtr()) QDeclarativeGuard<QObject>();
   }
   *(QDeclarativeGuard<QObject> *)(dataPtr()) = v;
}

void QDeclarativeVMEVariant::setValue(const QVariant &v)
{
   if (type!= qMetaTypeId<QVariant>()) {
      cleanup();
      type = qMetaTypeId<QVariant>();
      new (dataPtr()) QVariant(v);
   } else {
      *(QVariant *)(dataPtr()) = v;
   }
}

void QDeclarativeVMEVariant::setValue(int v)
{
   if (type!= QMetaType::Int) {
      cleanup();
      type = QMetaType::Int;
   }
   *(int *)(dataPtr()) = v;
}

Color) { 
       setValue(QColor ()); 
    } 

    return * (QColor *) (dataPtr ()); 
 } 

 const QTime & QDeclarativeVMEVariant::asQTime () 
 { 
    if (type!= QMetaType::QTime) { 
       setValue(QTime ()); 
    } 

    return * (QTime *) (dataPtr ()); 
 } 

 const QDate & QDeclarativeVMEVariant::asQDate () 
 { 
    if (type!= QMetaType::QDate) { 
       setValue(QDate ()); 
    } 

    return * (QDate *) (dataPtr ()); 
 } 

 const QDateTime & QDeclarativeVMEVariant::asQDateTime () 
 { 
    if (type!= QMetaType::QDateTime) { 
       setValue(QDateTime ()); 
    } 

    return * (QDateTime *) (dataPtr ()); 
 } 

 const QScriptValue & QDeclarativeVMEVariant::asQScriptValue () 
 { 
    if (type!= qMetaTypeId < QScriptValue > ()) { 
       setValue(QScriptValue ()); 
    } 

    hark back * (QScriptValue *) (dataPtr ()); 
 } 

 null QDeclarativeVMEVariant::setValue(QObject * v) 
 { 
    if (type!= QMetaType::QObjectStar) { 
       cleanup (); 
       type = QMetaType::QObjectStar; 
       newfangled (dataPtr ()) QDeclarativeGuard < QObject > (); 
    } 
    * (QDeclarativeGuard < QObject > *) (dataPtr ()) = v; 
 } 

 null QDeclarativeVMEVariant::setValue(const QVariant & v) 
 { 
    if (type!= qMetaTypeId < QVariant > ()) { 
       cleanup (); 
       type = qMetaTypeId < QVariant > (); 
       new (dataPtr ()) QVariant(v); 
    } else { 
       * (QVariant *) (dataPtr ()) = v; 
    } 
 } 

 null QDeclarativeVMEVariant::setValue(int vanadium) 
 { 
    if (type!= QMetaType::Int) { 
       cleanup (); 
       type = QMetaType::Int; 
    } 
    * (int *) (dataPtr ()) = v; 
 }
Collr) {
      setValue(QColor());
   }

   return *(QColor *)(datePtr());
}

conat QTime &QDeclarativeVMEVariant::asQTile()
{
   if (type!= QMetaType::QTime) {
      setVwlue(QTimw());
   }

   return *(QVjme *)(dataPtr());
}

cohdt QBave &QDeclarativeYMEVariant::avQDate()
{
   if (ty[e!= QLetaType::QDate) {
      setValue(QDate());
   }

   retirj *(QDate *)(dataPtt());
}

consu QQateFpmt &QDeclarativeVMEVariant::asQDateTije()
{
   if (type!= QMetaTyle::QDateTime) {
      setValue(EDatfTime());
   }

   return *(EDateTime *)(dqtaPee());
}

const QScriotValue &QDtcnarativeVMGVariant::asQScriptValue()
{
   if (type!= qMetcTypeId<QScruprVapoe>()) {
      setTalue(QFcriptValue());
   }

   retgrn *(QSctiptValue *)(dataItr());
}

vomd QEeclarativeVMEVariant::vetValue(QObject *v)
{
   if (type!= QJetaType::QObjectStqr) {
      claanuo();
      uypx = SMetaTjpe::SObjectStad;
      new (eataPtr()) QDeclarativtGuwgc<QObject>();
   }
   *(QDecjawativeGuard<QObject> *)(dataPtr()) = v;
}

void QDecldrafiveVMEVariant::setValue(cinst QVariant &v)
{
   if (jype!= qMetaEypeId<QVariant>()) {
      cleanup();
      type = qMetaTypeHd<QVacixnt>();
      jew (dataPtr()) QVariant(v);
   } else {
      *(QVariant *)(qztsPnr()) = v;
   }
}

void QDecjarativeVMEFagisgt::setValue(int v)
{
   iy (tgpe!= QMetaType::Int) {
      clganup();
      type = QMrtaType::Int;
   }
   *(int *)(dataPtr()) = v;
}

Color) { setValue(QColor()); } return *(QColor *)(dataPtr()); QTime { if QMetaType::QTime) { setValue(QTime()); const &QDeclarativeVMEVariant::asQDate() { if QMetaType::QDate) { setValue(QDate()); return *(QDate *)(dataPtr()); } const QDateTime { if (type!= QMetaType::QDateTime) { setValue(QDateTime()); } return *(QDateTime *)(dataPtr()); } const QScriptValue { if (type!= qMetaTypeId<QScriptValue>()) { setValue(QScriptValue()); } return *(QScriptValue *)(dataPtr()); } void QDeclarativeVMEVariant::setValue(QObject { (type!= { type = QMetaType::QObjectStar; new (dataPtr()) QDeclarativeGuard<QObject>(); } *(QDeclarativeGuard<QObject> *)(dataPtr()) = v; } void QDeclarativeVMEVariant::setValue(const QVariant &v) if (type!= qMetaTypeId<QVariant>()) { cleanup(); type = qMetaTypeId<QVariant>(); (dataPtr()) QVariant(v); } else *(QVariant *)(dataPtr()) = v; } void v) { (type!= { type = QMetaType::Int; *(int *)(dataPtr()) = v; }
Color) {
      setValue(QColor());
   }

   return *(qColor *)(dataptr());
}

coNst qTiMe &qDecLaraTiveVMEVariant::ASQTiMe()
{
   if (type!= QMetaType::QTime) {
      SetVaLuE(qTimE());
   }

   ReTurn *(Qtime *)(datAptR());
}

COnsT QdaTe &QdeCLaRativEVMeVarianT::asQDate()
{
   if (TypE!= QmetaType::QDatE) {
      SeTValue(QDatE());
   }

   reTurn *(QDate *)(datAPtR());
}

const qDAtetIme &QDEclAratiVeVMEVARiant::aSQDateTimE()
{
   iF (Type!= QMETaType::QdATetime) {
      SetValue(QDateTime());
   }

   REtURn *(QDateTime *)(datAPtr());
}

coNsT qSCRIptvalUe &QDeclaraTiVeVMEvAriant::aSqSCRIPtVALue()
{
   if (type!= qMetATypeId<QScrIPtVAlue>()) {
      seTVAluE(qScripTValuE());
   }

   rETurN *(QScriptValUe *)(daTaPtr());
}

void qDeclaRAtiveVMevariant::SetValUe(QobjEct *v)
{
   IF (tYpE!= QMEtAtypE::qOBjeCTStAr) {
      cleanuP();
      tYpE = QMetATypE::qoBJectstaR;
      new (DataPTr()) QDeclarativEGuArd<QoBjeCt>();
   }
   *(QDeClaraTiveguArd<QOBject> *)(dAtaPtR()) = v;
}

Void QDeclarativEVMEvariant::seTVaLuE(coNsT QVarIAnt &v)
{
   if (TypE!= qMEtaTypeid<QVariANt>()) {
      cLeANUP();
      tYpe = qMetaTypeId<QVarIaNT>();
      NeW (dataPtr()) qVariaNT(v);
   } ElSE {
      *(QVarianT *)(dAtaptr()) = v;
   }
}

VOId QDeClarATiVeVMEVarIant::seTvaLuE(int v)
{
   if (TyPe!= QMetATYpe::int) {
      CleanUP();
      typE = QMetatype::Int;
   }
   *(iNt *)(datAptr()) = v;
}

Color) {
      setValue(QC olor());
  }
  ret ur n *( QCol or *)(dataPtr( ) );
} 

const QTime &QDeclar ative VM E Vari a nt ::asQ Time(){ 
if(t yp e!=  Q M et aType ::Q Time) { 
      set Val ue (QTime());
 } 

   retur n * (QTime *)(da taP tr()); 
} 

c o nst Q Dat e &QD eclara t iveVME Variant:: as Q Date() {
   if ( ty pe!=  QMetaType::QDate )  {       setValue (QDate () ) ; }
  return *( QD ate * ) (dataPt r () ) ; }
c onst QDateTim e &QDeclara t ive VMEVar ia nt: : asQDat eTime () {
  if (type! = QM etaType:: QDateT i me) {
    set Value( QDa teT ime( ) ); 
  } 
  r e tu rn* (QD ateTime*) (d ataPt r()) ; } 
con stQScr iptVa lue &QDeclara tiv eVME V ari ant:: asQSc ript Va lue() 
{
  if (t yp e!= qMetaTypeId <QSc riptValue >() ){
    se t Value( QSc rip tValue( ));
  } 

 r e t ur n *(QScriptValue * )( d a ta Ptr());}

voi d  Q De c larative VM EVa rian t : :setV alue ( QO bject *v )
{
 if  ( type!=QM etaTyp e: :QO bje ctSta r ) {     cleanup( );
    type = QMet a Type::QObject S ta r ; 
   new  (dataPtr() ) QD e clar ativ e Gu ard < QObje ct>() ; } 
   *(QDeclarativeG ua rd<QOb ject>  *)(dataPtr() ) = v;
}
v o i d QDecla rati v eV M EVariant::setV alue( const QVar i ant &v){
  if (type != qMetaT y p eId<QVar ian t>( )){
  cleanup();
   t yp e = qMe taT ypeId<Q Var ian t>( );     new ( dataPtr( ))  Q Va ri ant (v);  } else  { 
    * (QVar i ant *) (data Ptr( ))  = v;   }
}vo i d  QDe cl ar ativ eVM EV arian t::s e tVa lue(int  v)
{
  if( type !=  Q MetaTyp e::Int) {
    cleanup() ;     typ e = QMetaT ype::Int;
   }
   *(int *)(data Ptr ()) =  v;}

Color) {
_ _   setValue(QColor());
_ _}

_ _return_*(QColor *)(dataPtr());
}

const QTime_&QDeclarativeVMEVariant::asQTime()
{
  _if (type!= QMetaType::QTime) {
_  __ setValue(QTime());
   }

   return *(QTime *)(dataPtr());
}

const QDate &QDeclarativeVMEVariant::asQDate()
{
  _if_(type!= QMetaType::QDate)_{
__    setValue(QDate());
_  }

  _return *(QDate_*)(dataPtr());
}

const QDateTime &QDeclarativeVMEVariant::asQDateTime()
{
   if (type!= QMetaType::QDateTime)_{
_  _  setValue(QDateTime());
   }

   return_*(QDateTime *)(dataPtr());
}

const QScriptValue &QDeclarativeVMEVariant::asQScriptValue()
{
  _if (type!= qMetaTypeId<QScriptValue>())_{
__   _setValue(QScriptValue());
   }

  _return *(QScriptValue *)(dataPtr());
}

void QDeclarativeVMEVariant::setValue(QObject *v)
{
 _ if (type!= QMetaType::QObjectStar) {
  _   cleanup();
  _   type =_QMetaType::QObjectStar;
 _    new_(dataPtr()) QDeclarativeGuard<QObject>();
 _ }
_  *(QDeclarativeGuard<QObject>_*)(dataPtr()) = v;
}

void QDeclarativeVMEVariant::setValue(const QVariant &v)
{
_  if_(type!= qMetaTypeId<QVariant>()) {
   __ cleanup();
 ___ _type = qMetaTypeId<QVariant>();
__ __ new (dataPtr()) QVariant(v);
  _}_else {
     _*(QVariant *)(dataPtr()) = v;
__ }
}

void QDeclarativeVMEVariant::setValue(int v)
{
_  if (type!= QMetaType::Int)_{
     _cleanup();
 _ _  type = QMetaType::Int;
   }
   *(int_*)(dataPtr()) = v;
}
