EPICS pvData C++
Overview
2010.08.10
CONTENTS
Introduction
This project has the begining of the C++ implementation of pvData. The
following is done:
- introspection interfaces
- The introspection interfaces for clients are described.
- introspection implementation
- The following have been implemented: Type, ScalarType, Field,
Scalar
- test
- A test of Scalar.
- As mentioned below there are problems with the current
implementation.
Building
The project is structured as an epics base client application. Edit
configure/RELEASE so that it references your EPICS base and then just
type:
make
At the top. Then execute the test in the bin directory.
pvDataApp has the following sub directories:
- pv
- pvData.h has the interface descriptions for client code.
- factory
- FieldCreateFactory.cpp has the current implementation
- test
- Has a test for the current implementation.
Questions about Classes
The pure virtual classes defined in pvData.h now work. But there are still
some things that are not so nice. Amoung these are:
- In FieldCreateFactory.cpp look for "WHY DO I". It asks why the derived
class must also define methods defined in the base class. If it does not
then a compilation error occurs. WHY???
- The toString methods have an argument of "std::string &buf" instead
of "std::string *". Does this seem correct?
- Can arguments and return descriptions be defined better?
- Is const present everywhere it should be? Remember that introspection
classes are immutable.
- The code is NOT thread safe. When we decide for sure what thread/lock
support to choose I will fix this.
HELP WILL BE GREATLY APPRECIATED. because I am still coming up to speed
with c++
Garbage Collection
Not yet implemented. Lets get class structure correct first.