00001 /* 00002 ------------------------------------------------------------------- 00003 00004 Copyright (C) 2006, 2007, 2008, 2009, Andrew W. Steiner 00005 00006 This file is part of O2scl. 00007 00008 O2scl is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (at your option) any later version. 00012 00013 O2scl is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 GNU General Public License for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with O2scl. If not, see <http://www.gnu.org/licenses/>. 00020 00021 ------------------------------------------------------------------- 00022 */ 00023 #ifndef O2SCL_BASE_IOC_H 00024 #define O2SCL_BASE_IOC_H 00025 #include <string> 00026 #include <o2scl/collection.h> 00027 #include <o2scl/funct.h> 00028 #include <o2scl/mm_funct.h> 00029 #include <o2scl/multi_funct.h> 00030 #include <o2scl/table.h> 00031 00032 #ifndef DOXYGENP 00033 namespace o2scl { 00034 #endif 00035 00036 /** 00037 \brief Setup I/O objects for base library classes 00038 00039 This class is experimental. 00040 */ 00041 class base_ioc { 00042 00043 public: 00044 00045 base_ioc() { 00046 bool_io=new bool_io_type("bool"); 00047 char_io=new char_io_type("char"); 00048 double_io=new double_io_type("double"); 00049 int_io=new int_io_type("int"); 00050 long_io=new long_io_type("long"); 00051 string_io=new string_io_type("string"); 00052 word_io=new word_io_type("word"); 00053 //ovector_io=new ovector_io_type("ovector"); 00054 //omatrix_io=new omatrix_io_type("omatrix"); 00055 //ovector_int_io=new ovector_int_io_type("ovector_int"); 00056 //omatrix_int_io=new omatrix_int_io_type("omatrix_int"); 00057 //ovector_cx_io=new ovector_cx_io_type("ovector_cx"); 00058 //omatrix_cx_io=new omatrix_cx_io_type("omatrix_cx"); 00059 00060 // Just as a reminder, if we removed this, we might have 00061 // to change several other tests and examples which don't 00062 // include a table_io object explicitly. 00063 table_io=new table_io_type("table"); 00064 } 00065 00066 ~base_ioc() { 00067 delete bool_io; 00068 delete char_io; 00069 delete double_io; 00070 delete int_io; 00071 delete long_io; 00072 delete string_io; 00073 delete word_io; 00074 //delete ovector_io; 00075 //delete omatrix_io; 00076 //delete ovector_int_io; 00077 //delete omatrix_int_io; 00078 //delete ovector_cx_io; 00079 //delete omatrix_cx_io; 00080 delete table_io; 00081 } 00082 00083 bool_io_type *bool_io; 00084 char_io_type *char_io; 00085 double_io_type *double_io; 00086 int_io_type *int_io; 00087 long_io_type *long_io; 00088 string_io_type *string_io; 00089 word_io_type *word_io; 00090 //ovector_io_type *ovector_io; 00091 //omatrix_io_type *omatrix_io; 00092 //ovector_int_io_type *ovector_int_io; 00093 //omatrix_int_io_type *omatrix_int_io; 00094 //ovector_cx_io_type *ovector_cx_io; 00095 //omatrix_cx_io_type *omatrix_cx_io; 00096 table_io_type *table_io; 00097 00098 protected: 00099 00100 #ifndef DOXYGENP 00101 00102 #endif 00103 00104 }; 00105 00106 #ifndef DOXYGENP 00107 } 00108 #endif 00109 00110 #endif
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page