00001 /*************************************************************************** 00002 * Copyright (c) 2007 * 00003 * Joachim Zettler <Joachim.Zettler@gmx.de> * 00004 * * 00005 * This file is part of the FreeCAD CAx development system. * 00006 * * 00007 * This library is free software; you can redistribute it and/or * 00008 * modify it under the terms of the GNU Library General Public * 00009 * License as published by the Free Software Foundation; either * 00010 * version 2 of the License, or (at your option) any later version. * 00011 * * 00012 * This library is distributed in the hope that it will be useful, * 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00015 * GNU Library General Public License for more details. * 00016 * * 00017 * You should have received a copy of the GNU Library General Public * 00018 * License along with this library; see the file COPYING.LIB. If not, * 00019 * write to the Free Software Foundation, Inc., 59 Temple Place, * 00020 * Suite 330, Boston, MA 02111-1307, USA * 00021 * * 00022 ***************************************************************************/ 00023 00024 #ifndef CHANGEDYNA_H 00025 #define CHANGEDYNA_H 00026 00027 #include <iostream> 00028 #include <string> 00029 #include <vector> 00030 00031 class CamExport ChangeDyna 00032 { 00033 public: 00034 ChangeDyna(); 00035 bool Read(const std::string &filename); 00036 // ~ChangeDyna(); 00037 private: 00038 bool ReformatStream(const std::stringstream& astream, std::string& astring); 00039 bool ReadCurve(std::ifstream &input,std::ofstream &output); 00040 bool ReadTimes(std::ifstream &input2); 00041 std::vector<std::pair<float,float> > m_ProperTime; 00042 00043 }; 00044 #endif 00045