show info about external libs on startup

pull/1/head
Thorsten Liebig 2010-08-25 08:17:45 +02:00
parent 3caa27ab33
commit ee887e7ea1
3 changed files with 19 additions and 1 deletions

View File

@ -37,7 +37,8 @@ int main(int argc, char *argv[])
cout << " -------------------------------------------------------------------- " << endl; cout << " -------------------------------------------------------------------- " << endl;
cout << " | openEMS version " GIT_VERSION << endl; cout << " | openEMS version " GIT_VERSION << endl;
cout << " | (C) 2010 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license" << endl; cout << " | (C) 2010 Thorsten Liebig <thorsten.liebig@gmx.de> GPL license" << endl;
cout << " -------------------------------------------------------------------- " << endl << endl; cout << " -------------------------------------------------------------------- " << endl;
cout << openEMS::GetExtLibsInfo() << endl;
if (argc<=1) if (argc<=1)
{ {

View File

@ -160,6 +160,16 @@ bool openEMS::parseCommandLineArgument( const char *argv )
return false; 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) bool openEMS::SetupBoundaryConditions(TiXmlElement* BC)
{ {
int EC; //error code of tinyxml int EC; //error code of tinyxml

View File

@ -18,6 +18,10 @@
#ifndef OPENEMS_H #ifndef OPENEMS_H
#define OPENEMS_H #define OPENEMS_H
#include <sstream>
using namespace std;
class Operator; class Operator;
class Engine; class Engine;
class ProcessingArray; class ProcessingArray;
@ -44,6 +48,9 @@ public:
void DebugOperator() {DebugOp=true;} void DebugOperator() {DebugOp=true;}
void DebugBox() {m_debugBox=true;} void DebugBox() {m_debugBox=true;}
//! Get informations about external libs used by openEMS
static string GetExtLibsInfo();
protected: protected:
bool CylinderCoords; bool CylinderCoords;