00001 /* 00002 * Small but convenient library for use with StarCluster tools. 00003 * Copyright (C) 2003 StarCluster team 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation; either version 2 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 * GNU General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU General Public License 00016 * along with this program; if not, write to the Free Software 00017 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 */ 00019 00020 00021 #ifndef TOOL_HH 00022 #define TOOL_HH 00023 00024 #include <errno.h> 00025 #include "dyn.h" 00026 #include "version.h" 00027 00028 enum range_type { NONE, FRAME, TIME }; 00029 00031 00039 class range { 00040 public: 00042 00071 range(const char [] = "", const range_type = NONE); 00072 00074 friend dyn* get_next_dyn(const range&); 00075 00076 private: 00077 range_type rt; 00078 union { unsigned i[3]; float t[3]; }; 00079 00080 }; 00081 00082 // simple wrapper around the standard fopen(3) used throughout this package 00083 FILE* c_file_ptr(const string, const string); 00084 00085 #endif // TOOL_HH
1.4.3