Open
Graph Drawing
Framework

 v.2012.05
 

DinoTools.h
Go to the documentation of this file.
00001 /*
00002  * $Revision: 2299 $
00003  * 
00004  * last checkin:
00005  *   $Author: gutwenger $ 
00006  *   $Date: 2012-05-07 15:57:08 +0200 (Mon, 07 May 2012) $ 
00007  ***************************************************************/
00008  
00042 #ifdef _MSC_VER
00043 #pragma once
00044 #endif
00045 
00046 #ifndef OGDF_DINO_TOOLS_H
00047 #define OGDF_DINO_TOOLS_H
00048 
00049 #include <ogdf/basic/String.h>
00050 #include <ogdf/basic/Array.h>
00051 
00052 
00053 namespace ogdf {
00054 
00055     //---------------------------------------------------------
00056     // D i n o T o o l s
00057     //
00058     // provides some useful tools
00059     //---------------------------------------------------------
00060     class OGDF_EXPORT DinoTools {
00061 
00062     public:
00063 
00064         // Extracts the single values of string str with format 
00065         // "x, y, width, height," and puts them into doubleArray
00066         static void stringToDoubleArray(const String &str, Array<double> &doubleArray);
00067 
00068         // Reports errors to cout
00069         // Value -1 for inputFileLine indicates that this information is 
00070         // not available
00071         static void reportError(const char *functionName, 
00072                                 int sourceLine, 
00073                                 const char *errorMessage, 
00074                                 int inputFileLine = -1,
00075                                 bool abort = true);
00076 
00077     }; // class DinoTools
00078 
00079 
00080 
00081 } // end namespace ogdf
00082 
00083 #endif