Win32 Porting.
Correction of Export/Import defines for Win32 platform. Removed "using namespace std" from header files.
This commit is contained in:
parent
f01eb4a8f1
commit
0fb29d65e9
@ -37,8 +37,6 @@
|
|||||||
// Parameters for work of NETGEN
|
// Parameters for work of NETGEN
|
||||||
//
|
//
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis: public SMESH_Hypothesis
|
class NETGENPLUGIN_EXPORT NETGENPlugin_Hypothesis: public SMESH_Hypothesis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -89,10 +87,10 @@ public:
|
|||||||
static bool GetDefaultOptimize();
|
static bool GetDefaultOptimize();
|
||||||
|
|
||||||
// Persistence
|
// Persistence
|
||||||
virtual ostream & SaveTo(ostream & save);
|
virtual std::ostream & SaveTo(std::ostream & save);
|
||||||
virtual istream & LoadFrom(istream & load);
|
virtual std::istream & LoadFrom(std::istream & load);
|
||||||
friend NETGENPLUGIN_EXPORT ostream & operator <<(ostream & save, NETGENPlugin_Hypothesis & hyp);
|
friend NETGENPLUGIN_EXPORT std::ostream & operator <<(std::ostream & save, NETGENPlugin_Hypothesis & hyp);
|
||||||
friend NETGENPLUGIN_EXPORT istream & operator >>(istream & load, NETGENPlugin_Hypothesis & hyp);
|
friend NETGENPLUGIN_EXPORT std::istream & operator >>(std::istream & load, NETGENPlugin_Hypothesis & hyp);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Does nothing
|
* \brief Does nothing
|
||||||
|
@ -49,8 +49,8 @@ public:
|
|||||||
static bool GetDefaultQuadAllowed();
|
static bool GetDefaultQuadAllowed();
|
||||||
|
|
||||||
// Persistence
|
// Persistence
|
||||||
virtual ostream & SaveTo(ostream & save);
|
virtual std::ostream & SaveTo(std::ostream & save);
|
||||||
virtual istream & LoadFrom(istream & load);
|
virtual std::istream & LoadFrom(std::istream & load);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool _quadAllowed;
|
bool _quadAllowed;
|
||||||
|
@ -62,6 +62,7 @@ namespace nglib {
|
|||||||
#include <nglib.h>
|
#include <nglib.h>
|
||||||
}
|
}
|
||||||
using namespace nglib;
|
using namespace nglib;
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
|
@ -35,8 +35,6 @@
|
|||||||
// Simplified parameters of NETGEN
|
// Simplified parameters of NETGEN
|
||||||
//
|
//
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
class NETGENPLUGIN_EXPORT NETGENPlugin_SimpleHypothesis_2D: public SMESH_Hypothesis
|
class NETGENPLUGIN_EXPORT NETGENPlugin_SimpleHypothesis_2D: public SMESH_Hypothesis
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -80,8 +78,8 @@ public:
|
|||||||
double GetMaxElementArea() const { return _area; }
|
double GetMaxElementArea() const { return _area; }
|
||||||
|
|
||||||
// Persistence
|
// Persistence
|
||||||
virtual ostream & SaveTo(ostream & save);
|
virtual std::ostream & SaveTo(std::ostream & save);
|
||||||
virtual istream & LoadFrom(istream & load);
|
virtual std::istream & LoadFrom(std::istream & load);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Set parameters by mesh
|
* \brief Set parameters by mesh
|
||||||
|
@ -35,8 +35,6 @@
|
|||||||
// Simplified parameters of NETGEN
|
// Simplified parameters of NETGEN
|
||||||
//
|
//
|
||||||
|
|
||||||
using namespace std;
|
|
||||||
|
|
||||||
class NETGENPLUGIN_EXPORT NETGENPlugin_SimpleHypothesis_3D: public NETGENPlugin_SimpleHypothesis_2D
|
class NETGENPLUGIN_EXPORT NETGENPlugin_SimpleHypothesis_3D: public NETGENPlugin_SimpleHypothesis_2D
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -49,8 +47,8 @@ public:
|
|||||||
double GetMaxElementVolume() const { return _volume; }
|
double GetMaxElementVolume() const { return _volume; }
|
||||||
|
|
||||||
// Persistence
|
// Persistence
|
||||||
virtual ostream & SaveTo(ostream & save);
|
virtual std::ostream & SaveTo(std::ostream & save);
|
||||||
virtual istream & LoadFrom(istream & load);
|
virtual std::istream & LoadFrom(std::istream & load);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Set parameters by mesh
|
* \brief Set parameters by mesh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user