// due to inline use probably.
// See also Units_Token.lxx
-#define PRO8727 //GG_180697
// Mauvaise construction d'un token par copie
// plantatoire sur HP.
#include <TCollection_AsciiString.hxx>
#include <Units_Operators.hxx>
-#define XTRACE 1
-
//=======================================================================
//function : Units_Token
//purpose :
themean=" ";
thevalue=0.;
thedimensions=new Units_Dimensions(0.,0.,0.,0.,0.,0.,0.,0.,0.);
-#ifdef TRACE
- cout << " CREATES Token " << endl;
- Dump(0,0);
-#endif
}
//=======================================================================
themean=" ";
thevalue=0.;
thedimensions=new Units_Dimensions(0.,0.,0.,0.,0.,0.,0.,0.,0.);
-#ifdef TRACE
- cout << " CREATES Token " << endl;
- Dump(0,0);
-#endif
}
//=======================================================================
themean=amean;
thevalue=0.;
thedimensions=new Units_Dimensions(0.,0.,0.,0.,0.,0.,0.,0.,0.);
-#ifdef TRACE
- cout << " CREATES Token " << endl;
- Dump(0,0);
-#endif
}
//=======================================================================
themean=amean;
thevalue=avalue;
thedimensions=new Units_Dimensions(0.,0.,0.,0.,0.,0.,0.,0.,0.);
-#ifdef TRACE
- cout << " CREATES Token " << endl;
- Dump(0,0);
-#endif
}
//=======================================================================
adimensions->LuminousIntensity(),
adimensions->PlaneAngle(),
adimensions->SolidAngle());
-#ifdef TRACE
- cout << " CREATES Token " << endl;
- Dump(0,0);
-#endif
}
//=======================================================================
Handle(Units_Token) Units_Token::Creates() const
{
-#ifdef PRO8727
TCollection_AsciiString word = Word();
TCollection_AsciiString mean = Mean();
return new Units_Token(word.ToCString(),mean.ToCString(),Value(),Dimensions());
-#else
- return new Units_Token(*this);
-#endif
}
//=======================================================================
void Units_Token::Destroy () {
-#ifdef TRACE
- cout << " DESTROIES Token" << endl;
- Dump(0,0);
-#endif
}