all pvData interfaces and implementration stubs now defined

Most methods are not implemented and throw an exception
This commit is contained in:
Marty Kraimer
2010-09-24 09:52:08 -04:00
parent 2c6a99a6cb
commit dd6ecf9bec
22 changed files with 524 additions and 103 deletions

View File

@@ -19,7 +19,8 @@ namespace epics { namespace pvData {
StructureArrayData *structureArrayData;
PVStructureArrayPtr pvStructureArray;
};
PVStructureArrayPvt::PVStructureArrayPvt(StructureArrayConstPtr structureArray)
PVStructureArrayPvt::PVStructureArrayPvt(
StructureArrayConstPtr structureArray)
: structureArray(structureArray),
structureArrayData(new StructureArrayData()),
pvStructureArray(new PVStructurePtr[0])
@@ -32,8 +33,10 @@ namespace epics { namespace pvData {
}
PVStructureArray::PVStructureArray(PVStructure *parent,StructureArrayConstPtr structureArray)
: PVArray(parent,structureArray),pImpl(new PVStructureArrayPvt(structureArray))
PVStructureArray::PVStructureArray(PVStructure *parent,
StructureArrayConstPtr structureArray)
: PVArray(parent,structureArray),
pImpl(new PVStructureArrayPvt(structureArray))
{
}
@@ -47,48 +50,59 @@ namespace epics { namespace pvData {
return pImpl->structureArray;
}
int PVStructureArray::get(int offset, int length, StructureArrayData *data) const
int PVStructureArray::get(
int offset, int length, StructureArrayData *data) const
{
return 0;
throw std::logic_error(notImplemented);
}
int PVStructureArray::put(int offset,int length, PVStructureArrayPtr from, int fromOffset)
int PVStructureArray::put(int offset,int length,
PVStructureArrayPtr from, int fromOffset)
{
return 0;
throw std::logic_error(notImplemented);
}
void PVStructureArray::shareData(PVStructureArrayPtr from)
{
throw std::logic_error(notImplemented);
}
void PVStructureArray::serialize(ByteBuffer *pbuffer, SerializableControl *pflusher) const
void PVStructureArray::serialize(ByteBuffer *pbuffer,
SerializableControl *pflusher) const
{
throw std::logic_error(notImplemented);
}
void PVStructureArray::deserialize(ByteBuffer *pbuffer, DeserializableControl *pflusher)
void PVStructureArray::deserialize(ByteBuffer *pbuffer,
DeserializableControl *pflusher)
{
throw std::logic_error(notImplemented);
}
void PVStructureArray::serialize(ByteBuffer *pbuffer,
SerializableControl *pflusher, int offset, int count) const
{
throw std::logic_error(notImplemented);
}
void PVStructureArray::toString(StringPtr buf) const {toString(buf,0);}
void PVStructureArray::toString(StringPtr buf,int indentLevel) const
{
throw std::logic_error(notImplemented);
}
class BasePVStructureArray : public PVStructureArray {
public:
BasePVStructureArray(PVStructure *parent,StructureArrayConstPtr structureArray)
BasePVStructureArray(PVStructure *parent,
StructureArrayConstPtr structureArray)
: PVStructureArray(parent,structureArray) {}
~BasePVStructureArray(){}
private:
BasePVStructureArray(); // not implemented
BasePVStructureArray(BasePVStructureArray const & ); // not implemented
BasePVStructureArray & operator=(BasePVStructureArray const &); //not implemented
// following not implemented
BasePVStructureArray();
BasePVStructureArray(BasePVStructureArray const & );
BasePVStructureArray & operator=(BasePVStructureArray const &);
};
}}