many changes
This commit is contained in:
@@ -82,7 +82,7 @@ caStatus exPV::update(gdd &valueIn)
|
||||
# endif
|
||||
|
||||
cas = this->updateValue (valueIn);
|
||||
if (cas || this->pValue==NULL) {
|
||||
if ( cas || ( ! this->pValue.valid() ) ) {
|
||||
return cas;
|
||||
}
|
||||
|
||||
@@ -200,7 +200,7 @@ void exPV::interestDelete()
|
||||
void exPV::show(unsigned level) const
|
||||
{
|
||||
if (level>1u) {
|
||||
if (this->pValue!=NULL) {
|
||||
if ( this->pValue.valid () ) {
|
||||
printf("exPV: cond=%d\n", this->pValue->getStat());
|
||||
printf("exPV: sevr=%d\n", this->pValue->getSevr());
|
||||
printf("exPV: value=%f\n", (double) *this->pValue);
|
||||
@@ -321,11 +321,11 @@ caStatus exPV::getValue(gdd &value)
|
||||
{
|
||||
caStatus status;
|
||||
|
||||
if (this->pValue!=NULL) {
|
||||
if ( this->pValue.valid () ) {
|
||||
gddStatus gdds;
|
||||
|
||||
gdds = gddApplicationTypeTable::
|
||||
app_table.smartCopy(&value, this->pValue);
|
||||
app_table.smartCopy (&value, & (*this->pValue) );
|
||||
if (gdds) {
|
||||
status = S_cas_noConvert;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ void exScalarPV::scan()
|
||||
this->currentTime = osiTime::getCurrent();
|
||||
|
||||
pDD = new gddScalar (gddAppType_value, aitEnumFloat32);
|
||||
if (pDD==NULL) {
|
||||
if ( ! pDD.valid () ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ void exScalarPV::scan()
|
||||
assert (!gddStatus);
|
||||
|
||||
radians = (rand () * 2.0 * myPI)/RAND_MAX;
|
||||
if (this->pValue!=NULL) {
|
||||
if ( this->pValue.valid () ) {
|
||||
this->pValue->getConvert(newValue);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -70,7 +70,7 @@ void exVectorPV::scan()
|
||||
|
||||
pDD = new gddAtomic (gddAppType_value, aitEnumFloat32,
|
||||
1u, this->info.getElementCount());
|
||||
if (pDD==NULL) {
|
||||
if ( ! pDD.valid () ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ void exVectorPV::scan()
|
||||
// current value
|
||||
//
|
||||
pCF=NULL;
|
||||
if (this->pValue!=NULL) {
|
||||
if ( this->pValue.valid () ) {
|
||||
if (this->pValue->dimension()==1u) {
|
||||
const gddBounds *pB = this->pValue->getBounds();
|
||||
if (pB[0u].size()==this->info.getElementCount()) {
|
||||
@@ -208,7 +208,7 @@ caStatus exVectorPV::updateValue(gdd &valueIn)
|
||||
//
|
||||
pNewValue = new gddAtomic (gddAppType_value, aitEnumFloat32,
|
||||
1u, this->info.getElementCount());
|
||||
if (pNewValue==NULL) {
|
||||
if ( ! pNewValue.valid () ) {
|
||||
return S_casApp_noMemory;
|
||||
}
|
||||
|
||||
@@ -223,9 +223,9 @@ caStatus exVectorPV::updateValue(gdd &valueIn)
|
||||
// copy over the old values if they exist
|
||||
// (or initialize all elements to zero)
|
||||
//
|
||||
if (this->pValue!=NULL) {
|
||||
gdds = pNewValue->copy(this->pValue);
|
||||
if (gdds) {
|
||||
if ( this->pValue.valid () ) {
|
||||
gdds = pNewValue->copy( &(*this->pValue) );
|
||||
if ( gdds ) {
|
||||
return S_cas_noConvert;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user