[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help needed
From: |
Chad Yates |
Subject: |
Re: Help needed |
Date: |
Thu, 07 Aug 2003 15:22:58 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 |
I did some work with the persistence engine last winter. You should
take a look at the cppunit tests that I created for it. they serve as a
good "sample" and actually were a part of a sample I had written to be
stand alone before cppunit. they should be in the tests directory and
called Test_Engine.h and Test_Engine.cpp. SampleObject.cpp/.h and
SambleSubObject.cpp/.h are examples of objects that use the persistence
interface and are used in the cppunit tests.
here is a snippet from one of the tests that writes out an example
object made up defined by SampleObject.h and SampleSubObject.h:
// write BaseObject hierarchy
std::fstream outputArchive("EngineComplexObjectTest.dat",
std::ios::out|std::ios::binary);
Engine outputEngine(outputArchive, ost::Engine::modeWrite);
outputEngine << complexObject;
outputArchive.close();
Hope this helps, and good luck,
Chad
PeiYong Zhang wrote:
Hi, there,
Would appreciate it very much if any one can provide the link to
the documentation on how to use
the 'persistence' service in CommonC++ and/or the sample code showing
how to use this, thanks
in advance.
Rgds,
PeiYong
------------------------------------------------------------------------
_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-commoncpp
--
Chad C. Yates - IT Manager
Advancement Services - University of Idaho
- Help needed, PeiYong Zhang, 2003/08/07
- Re: Help needed,
Chad Yates <=