From d54893b18ec81b10a8b690b4402cba6e7f042204 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Tue, 10 Aug 2010 13:23:17 -0400 Subject: [PATCH] modify test. update README --- README.html | 41 ++++++++--------------------------------- pvDataApp/test/test.cpp | 5 +++++ 2 files changed, 13 insertions(+), 33 deletions(-) diff --git a/README.html b/README.html index e83279b..29015a0 100644 --- a/README.html +++ b/README.html @@ -10,7 +10,7 @@

EPICS pvData C++
Overview
-2010.08.02

+2010.08.10 CONTENTS
@@ -27,26 +27,9 @@ following is done:

Scalar
test
A test of Scalar.
-
As mentioned below there are major problems with the current +
As mentioned below there are problems with the current implementation.
- -

Since the last version the following are the main changes:

-

Building

@@ -76,14 +59,14 @@ type:

The pure virtual classes defined in pvData.h now work. But there are still some things that are not so nice. Amoung these are:

@@ -94,14 +77,6 @@ with c++

Garbage Collection


- -

boost::shared_ptr is currenly used for implementations of Field, Scalar, -etc. It is also used for all string arguments passed to methods. Since string -values are freely shared by pvData, pvAccess, etc, this is really important. -questions:

-
    -
  1. Is the implementation using shared_ptr correctly?
  2. -
  3. Should other things currently defined use stared_ptr?
  4. -
+

Not yet implemented. Lets get class structure correct first.

diff --git a/pvDataApp/test/test.cpp b/pvDataApp/test/test.cpp index ff0fe63..9b27d8f 100644 --- a/pvDataApp/test/test.cpp +++ b/pvDataApp/test/test.cpp @@ -32,6 +32,11 @@ int main(int argc,char *argv[]) TypeFunc::toString(*myString,type); printf("%s\n",myString->c_str()); myString->clear(); + *myString += "fieldName "; + std::string const & fieldName = scalar.getFieldName(); + *myString += fieldName; + printf("%s\n",myString->c_str()); + myString->clear(); scalar.toString(*myString); printf("%s\n",myString->c_str()); return(0);