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 #include <o2scl/table_units.h> 00032 00033 #ifndef DOXYGENP 00034 namespace o2scl { 00035 #endif 00036 00037 /** 00038 \brief Setup I/O objects for base library classes 00039 00040 This class is experimental. 00041 */ 00042 class base_ioc { 00043 00044 public: 00045 00046 base_ioc() { 00047 bool_io=new bool_io_type("bool"); 00048 char_io=new char_io_type("char"); 00049 double_io=new double_io_type("double"); 00050 int_io=new int_io_type("int"); 00051 long_io=new long_io_type("long"); 00052 string_io=new string_io_type("string"); 00053 word_io=new word_io_type("word"); 00054 //ovector_io=new ovector_io_type("ovector"); 00055 //omatrix_io=new omatrix_io_type("omatrix"); 00056 //ovector_int_io=new ovector_int_io_type("ovector_int"); 00057 //omatrix_int_io=new omatrix_int_io_type("omatrix_int"); 00058 //ovector_cx_io=new ovector_cx_io_type("ovector_cx"); 00059 //omatrix_cx_io=new omatrix_cx_io_type("omatrix_cx"); 00060 00061 // Just as a reminder, if we removed this, we might have 00062 // to change several other tests and examples which don't 00063 // include a table_io object explicitly. 00064 table_units_io=new table_units_io_type("table_units"); 00065 table_io=new table_io_type("table"); 00066 } 00067 00068 ~base_ioc() { 00069 delete bool_io; 00070 delete char_io; 00071 delete double_io; 00072 delete int_io; 00073 delete long_io; 00074 delete string_io; 00075 delete word_io; 00076 //delete ovector_io; 00077 //delete omatrix_io; 00078 //delete ovector_int_io; 00079 //delete omatrix_int_io; 00080 //delete ovector_cx_io; 00081 //delete omatrix_cx_io; 00082 delete table_units_io; 00083 delete table_io; 00084 } 00085 00086 bool_io_type *bool_io; 00087 char_io_type *char_io; 00088 double_io_type *double_io; 00089 int_io_type *int_io; 00090 long_io_type *long_io; 00091 string_io_type *string_io; 00092 word_io_type *word_io; 00093 //ovector_io_type *ovector_io; 00094 //omatrix_io_type *omatrix_io; 00095 //ovector_int_io_type *ovector_int_io; 00096 //omatrix_int_io_type *omatrix_int_io; 00097 //ovector_cx_io_type *ovector_cx_io; 00098 //omatrix_cx_io_type *omatrix_cx_io; 00099 table_units_io_type *table_units_io; 00100 table_io_type *table_io; 00101 00102 protected: 00103 00104 #ifndef DOXYGENP 00105 00106 #endif 00107 00108 }; 00109 00110 #ifndef DOXYGENP 00111 } 00112 #endif 00113 00114 #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