From: Dejan L. <de...@us...> - 2004-06-12 22:47:07
|
Update of /cvsroot/rtk/rtk/test/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24893/test/core Modified Files: buffer0.cpp Log Message: Changed buffer0.cpp to use new Buffer::To() method and added Mikko as author. Index: buffer0.cpp =================================================================== RCS file: /cvsroot/rtk/rtk/test/core/buffer0.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** buffer0.cpp 12 Jun 2004 07:32:12 -0000 1.2 --- buffer0.cpp 12 Jun 2004 22:46:58 -0000 1.3 *************** *** 33,48 **** * Authors (chronological order): * Dejan Lekic, de...@nu... * Contributors (chronological order): * $fname $lname, $email ***** ! * Important note: This file, test_core.cpp shouldn't be EVER overwritten ! * in our CVS. It is actually template for test_* projects in our IDEs. ! * RTK developers should work on this file in their working environments, and ! * when they are satisfied with developed file they should save it with ! * PROPER name to /test/* directory. ***************************************************************************/ #include "../test.h" #include <rtk/Buffer.h> using namespace Rtk; --- 33,47 ---- * Authors (chronological order): * Dejan Lekic, de...@nu... + * Mikko Lahteenmaki, mikko§rtk.cx * Contributors (chronological order): * $fname $lname, $email ***** ! * T0D0: Writte better Buffer test than this... ***************************************************************************/ #include "../test.h" #include <rtk/Buffer.h> + #include <rtk/File.h> + #include <stdio.h> using namespace Rtk; *************** *** 51,54 **** --- 50,54 ---- { Buffer buf; + File f("dump.dat", File::WRITE|File::CREATE|File::BINARY); printf("Initial allocated: %d\n", buf.GetAllocated()); *************** *** 61,67 **** buf.Fill(1); ! #if 0 ! buf.ToFile("C:\\dump"); ! #endif getchar(); --- 61,66 ---- buf.Fill(1); ! buf.To(&f); ! f.Close(); getchar(); |