From ee887e7ea1ae3806cc0e2c47bf08e92a2cba821b Mon Sep 17 00:00:00 2001 From: Thorsten Liebig Date: Wed, 25 Aug 2010 08:17:45 +0200 Subject: [PATCH] show info about external libs on startup --- main.cpp | 3 ++- openems.cpp | 10 ++++++++++ openems.h | 7 +++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 261efad..be4577e 100644 --- a/main.cpp +++ b/main.cpp @@ -37,7 +37,8 @@ int main(int argc, char *argv[]) cout << " -------------------------------------------------------------------- " << endl; cout << " | openEMS version " GIT_VERSION << endl; cout << " | (C) 2010 Thorsten Liebig GPL license" << endl; - cout << " -------------------------------------------------------------------- " << endl << endl; + cout << " -------------------------------------------------------------------- " << endl; + cout << openEMS::GetExtLibsInfo() << endl; if (argc<=1) { diff --git a/openems.cpp b/openems.cpp index 6a07bfb..23e8366 100644 --- a/openems.cpp +++ b/openems.cpp @@ -160,6 +160,16 @@ bool openEMS::parseCommandLineArgument( const char *argv ) return false; } +string openEMS::GetExtLibsInfo() +{ + stringstream str; + + str << "\tUsed external libraries:" << endl; + str << "\t\t" << ContinuousStructure::GetInfoLine(true) << endl; + + return str.str(); +} + bool openEMS::SetupBoundaryConditions(TiXmlElement* BC) { int EC; //error code of tinyxml diff --git a/openems.h b/openems.h index 8f67a0c..53d0faf 100644 --- a/openems.h +++ b/openems.h @@ -18,6 +18,10 @@ #ifndef OPENEMS_H #define OPENEMS_H +#include + +using namespace std; + class Operator; class Engine; class ProcessingArray; @@ -44,6 +48,9 @@ public: void DebugOperator() {DebugOp=true;} void DebugBox() {m_debugBox=true;} + //! Get informations about external libs used by openEMS + static string GetExtLibsInfo(); + protected: bool CylinderCoords;