/* * CDE - Common Desktop Environment * * Copyright (c) 1993-2012, The Open Group. All rights reserved. * * These libraries and programs are free software; you can * redistribute them and/or modify them under the terms of the GNU * Lesser General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) * any later version. * * These libraries and programs are distributed in the hope that * they 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 along with these librararies and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ /* $XConsortium: graphic_test.cc /main/4 1996/07/18 16:02:34 drk $ */ #ifdef REGRESSION_TEST #include "oliasdb/graphic_test.h" #define LARGE_BUFSIZ 2048 void print_graphic(graphic_smart_ptr& x, ostream& out, Boolean out_misc) { out << "locator=" << x.locator() << "\n"; out << "filename=" << x.file_name() << "\n"; out << "version=" << x.version() << "\n"; const char* title = x.title(); if ( title ) out << "title=" << x.title() << "\n"; else out << "no title" << "\n"; out << "data_size=" << x.data_size() << "\n"; int l = x.data_size(); const char* str = x.data(); for ( int i=0; i get_obj_dict()).get_handler( form("%s.%s", b_ptr -> get_base_name(), "sgml.dict") ); x.random_string_to_be_compressed(out, min_len, max_len, y -> its_oid()); // graphic x.random_string(out, 10, 30); // title } #endif