helper.h

Go to the documentation of this file.
00001 /* helper.h -- helper functions */
00002 
00003 /* FAU Discrete Event Systems Library (libfaudes)
00004 
00005    Copyright (C) 2006  Bernd Opitz
00006    Exclusive copyright is granted to Klaus Schmidt
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Lesser General Public
00010    License as published by the Free Software Foundation; either
00011    version 2.1 of the License, or (at your option) any later version.
00012 
00013    This library 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 GNU
00016    Lesser General Public License for more details.
00017 
00018    You should have received a copy of the GNU Lesser General Public
00019    License along with this library; if not, write to the Free Software
00020    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00021 
00022 
00023 #ifndef HELPER_H
00024 
00025 #include "definitions.h"
00026 #include "exception.h"
00027 #include <string>
00028 #include <sstream>
00029 #include <limits>
00030 #include <iomanip>
00031 
00032 namespace faudes {
00033 
00043 std::string ToStringInteger(long int number);
00044 
00045 
00055 std::string ToStringInteger16(long int number);
00056 
00066 std::string ToStringFloat(double number);
00067 
00068 
00081 std::string ExpandString(const std::string& rString, unsigned int len);
00082 
00094  std::string CollapsString(const std::string& rString, unsigned int len= FD_MAXCONTAINERNAME);
00095 
00096 
00109 Idx ToIdx(const std::string& rString);
00110 
00117 std::string FDVersionString();
00118 
00125 std::string FDPluginsString();
00126 
00133 std::string FDContributorsString();
00134 
00154 void ProcessDot(const std::string& rDotFile, const std::string& rOutFile, 
00155   const std::string& rOutFormat = "", const std::string& rDotExec = "dot");
00156 
00164 std::string CreateTempFile(void);
00165 
00166 
00173 bool RemoveFile(const std::string& rFileName);
00174 
00175 
00176 } // namespace faudes
00177 
00178 #define HELPER_H
00179 #endif
00180 

Generated on Fri May 9 11:26:47 2008 for libFAUDES 2.09b by  doxygen 1.4.4