// C++ : Dump python
-// Copyright (C) 2009-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2019 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
if (fic_dump==NULL)
fic_dump = stdout;
- string buff;
+ std::string buff;
cpchar when = get_time (buff);
fprintf (fic_dump, "\n");
// =================================================== operator << (int)
DumpStudy& DumpStudy::operator << (int val)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
char valeur [20];
// =================================================== operator << (double)
DumpStudy& DumpStudy::operator << (double val)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
char valeur [20];
// =================================================== operator << (cpchar)
DumpStudy& DumpStudy::operator << (cpchar val)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
- string valeur ("'");
+ std::string valeur ("'");
valeur += val;
valeur += "'";
// =================================================== operator << (elt)
DumpStudy& DumpStudy::operator << (EltBase* elt)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
cpchar name = findName (elt);
// =================================================== operator << (Quads)
DumpStudy& DumpStudy::operator << (Quads& tab)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
TabElts& tabelt = (TabElts&) tab;
// =================================================== operator << (Edges)
DumpStudy& DumpStudy::operator << (Edges& tab)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
TabElts& tabelt = (TabElts&) tab;
// =================================================== operator << (Hexas)
DumpStudy& DumpStudy::operator << (Hexas& tab)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
TabElts& tabelt = (TabElts&) tab;
// =================================================== operator << (Reals)
DumpStudy& DumpStudy::operator << (RealVector& tab)
{
- if (not is_open)
+ if (NOT is_open)
return *this;
char name [20], valeur [30];
is_open = false;
}
// =================================================== getBegin
-void DumpStudy::getBegin (string& begin)
+void DumpStudy::getBegin (std::string& begin)
{
begin = right_part;
begin += ")";
cpchar DumpStudy::findName (EltBase* elt)
{
cpchar name = "Unknown";
- map <EltBase*, string> :: iterator iter = map_name.find (elt);
+ std::map <EltBase*, std::string> :: iterator iter = map_name.find (elt);
if (iter != map_name.end())
name = iter->second.c_str();
else