// Class : Ecriture d'un dump python
-// Copyright (C) 2009-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2009-2022 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
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.salome-platform.org/
-// or email : webmaster.salome@opencascade.com
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
#ifndef __DUMP_STUDY_H_
#define __DUMP_STUDY_H_
-#include "Hex_defines.hxx"
#include "hexa_base.hxx"
#include <map>
#pragma warning ( disable: 4251 )
#endif
-
BEGIN_NAMESPACE_HEXA
-
#define DumpStart0(p) bool actif=el_root->glob->dump.start(this, p)
#define DumpStart(p,args) bool actif=el_root->glob->dump.start(this, p); if (actif) el_root->glob->dump << args
#define DumpEnd el_root->glob->dump.close (actif)
#define DumpRestore el_root->glob->dump.restore (actif)
class Witness;
-class HEXABLOCKENGINE_EXPORT DumpStudy
+class HexaExport DumpStudy
{
public :
DumpStudy ();
bool lock ();
void restore (bool reactive);
- void getBegin (string& begin);
+ void getBegin (std::string& begin);
private :
cpchar findName (EltBase* elt);
void addArgVector (EnumElt type, TabElts& table);
void addArgument (cpchar arg);
- void addArgument (string& arg) { addArgument (arg.c_str()) ; }
+ void addArgument (std::string& arg) { addArgument (arg.c_str()) ; }
void declareVectors ();
void addVector (cpchar name);
void majVector (cpchar value);
std::vector <std::string> tab_declar;
int tab_count [EL_MAXI];
- string curr_vector;
+ std::string curr_vector;
int nbr_values;
FILE* fic_dump;
- string this_name;
- string right_part;
+ std::string this_name;
+ std::string right_part;
bool is_open;
int nbr_nulls;
int nbr_args;