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.
11 lines
178 B
C++
11 lines
178 B
C++
/* bitSet.h */
|
|
#ifndef BITSET_H
|
|
#define BITSET_H
|
|
namespace epics { namespace pvData {
|
|
|
|
class BitSet;
|
|
// must be defined and implemented
|
|
|
|
}}
|
|
#endif /* BITSET_H */
|