added operator!=
Convert.cpp almost done
This commit is contained in:
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
bool value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVBoolean::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVBOOLEAN_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
bool *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVBooleanArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVBOOLEANARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt8 value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVByte::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVBYTE_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt8 *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVByteArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVBYTEARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
double value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVDouble::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVDOUBLE_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
double *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVDoubleArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVDOUBLEARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
float value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVFloat::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVFLOAT_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
float *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVFloatArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVFLOATARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt32 value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVInt::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVINT_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt32 *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVIntArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVINTARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt64 value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVLong::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVLONG_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt64 *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVLongArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVLONGARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt16 value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVShort::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVSHORT_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
epicsInt16 *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVShortArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVSHORTARRAY_H */
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
String value;
|
||||
};
|
||||
@@ -66,5 +67,10 @@ namespace epics { namespace pvData {
|
||||
return getConvert()->equals(this,pvField);
|
||||
}
|
||||
|
||||
bool BasePVString::operator!=(PVField *pvField)
|
||||
{
|
||||
return !(getConvert()->equals(this,pvField));
|
||||
}
|
||||
|
||||
}}
|
||||
#endif /* BASEPVSTRING_H */
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf);
|
||||
virtual void toString(StringBuilder buf,int indentLevel);
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
private:
|
||||
String *value;
|
||||
};
|
||||
@@ -149,5 +150,10 @@ namespace epics { namespace pvData {
|
||||
{
|
||||
return getConvert()->equals(this,pv);
|
||||
}
|
||||
|
||||
bool BasePVStringArray::operator!=(PVField *pv)
|
||||
{
|
||||
return !(getConvert()->equals(this,pv));
|
||||
}
|
||||
}}
|
||||
#endif /* BASEPVSTRINGARRAY_H */
|
||||
|
||||
@@ -193,6 +193,11 @@ namespace epics { namespace pvData {
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
bool PVStructure::operator!=(PVField *pv)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
class BasePVStructure : public PVStructure {
|
||||
public:
|
||||
BasePVStructure(PVStructure *parent,StructureConstPtr structure);
|
||||
|
||||
@@ -98,6 +98,11 @@ namespace epics { namespace pvData {
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
bool PVStructureArray::operator!=(PVField *pv)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
class BasePVStructureArray : public PVStructureArray {
|
||||
public:
|
||||
BasePVStructureArray(PVStructure *parent,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,5 @@
|
||||
#include "string.h"
|
||||
#include "stdio.h"
|
||||
#include "bitSet.h"
|
||||
|
||||
namespace epics { namespace pvData {
|
||||
|
||||
@@ -81,6 +81,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf) ;
|
||||
virtual void toString(StringBuilder buf,int indentLevel) ;
|
||||
virtual bool operator==(PVField *pv) = 0;
|
||||
virtual bool operator!=(PVField *pv) = 0;
|
||||
protected:
|
||||
PVField(PVStructure *parent,FieldConstPtr field);
|
||||
void replaceStructure();
|
||||
@@ -170,6 +171,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf) = 0;
|
||||
virtual void toString(StringBuilder buf,int indentLevel) = 0;
|
||||
virtual bool operator==(PVField *pv) = 0;
|
||||
virtual bool operator!=(PVField *pv) = 0;
|
||||
protected:
|
||||
PVStructureArray(PVStructure *parent,
|
||||
StructureArrayConstPtr structureArray);
|
||||
@@ -208,6 +210,7 @@ namespace epics { namespace pvData {
|
||||
virtual void toString(StringBuilder buf) ;
|
||||
virtual void toString(StringBuilder buf,int indentLevel) ;
|
||||
virtual bool operator==(PVField *pv) ;
|
||||
virtual bool operator!=(PVField *pv) ;
|
||||
virtual void serialize(
|
||||
ByteBuffer *pbuffer,SerializableControl *pflusher) ;
|
||||
virtual void deserialize(
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "BitSet.h"
|
||||
#include "bitSet.h"
|
||||
|
||||
|
||||
#include <epicsAssert.h>
|
||||
|
||||
Reference in New Issue
Block a user