From: <de...@us...> - 2004-03-14 12:10:26
|
Update of /cvsroot/rtk/rtk/test/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8941/test/core Added Files: buffer0.cpp Log Message: Very, very simple test for new Buffer class. --- NEW FILE: buffer0.cpp --- /** * * RTK * Fast and easy cross-platform GUI ToolKit. * * Copyright (C) 2001-200x RTK Development Team * * This library is free software; you can redistribute it and/or modify it * under the terms of the slightly modified (see the "EXCEPTION NOTICE" part * of RTK Library License) GNU Lesser General Public License as published * by the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * and along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA . * * Also you should have received a copy of RTK Library License, if not please * write an e-mail to some of RTK authors (listed in file AUTHORS). * * Bug reports: bu...@rt... * Suggestions: rf...@rt... ***************************************************************************/ /** * $Source: /cvsroot/rtk/rtk/test/core/buffer0.cpp,v $ ***** * 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; int main(int argc, char** argv) { Buffer buf; printf("Initial size: %d", buf.GetSize()); buf.SetSize(256); printf("After resizing: %d", buf.GetSize()); getchar(); } // main() /** * $Id: buffer0.cpp,v 1.1 2004/03/14 12:01:30 dejan Exp $ ***************************************************************************/ |