1) implemented noDefaultMethods. See effective C++ Item 6. There it is called Uncopyable
2) implemented Lock. See effective C++ item 14.
This is as easy to use as Java synchronize.
3) wrapper on top of std::string. All usage of string in pvData is one of:
String - Just a std::string
StringBuilder - Used where StringBuilder is used in Java
StringConst - Just a "std::string const". This is used wherever String is used in Java
StringConstArray - Just like a String[] in Java.
4) The reference counting (incReferenceCount and decReferenceCount) are now private. It is completely handled by the implenentaion.
NO code that uses pvData needs even know about reference counting.
This commit is contained in:
@@ -85,9 +85,9 @@ namespace epics { namespace pvData {
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
void PVStructureArray::toString(StringPtr buf) const {toString(buf,0);}
|
||||
void PVStructureArray::toString(StringBuilder buf) const {toString(buf,0);}
|
||||
|
||||
void PVStructureArray::toString(StringPtr buf,int indentLevel) const
|
||||
void PVStructureArray::toString(StringBuilder buf,int indentLevel) const
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
@@ -99,10 +99,6 @@ namespace epics { namespace pvData {
|
||||
: PVStructureArray(parent,structureArray) {}
|
||||
~BasePVStructureArray(){}
|
||||
private:
|
||||
// following not implemented
|
||||
BasePVStructureArray();
|
||||
BasePVStructureArray(BasePVStructureArray const & );
|
||||
BasePVStructureArray & operator=(BasePVStructureArray const &);
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user